Webhooks

Use Webhooks to connect Yardstik with your application. You can configure them to notify you of various events when they occur in your account.

See the Using Webhooks section.

List all webhooks

Retrieve a list of webhooks for the given account ID.

SecurityApiKey
Request
query Parameters
order
string

Order listing results in ascending or descending order, when using order_by.
Accepted values are asc or desc. If not passed, defaults to ascending asc.

Examples:
order=desc
order_by
string

Order listing results by a specific property.

Examples:
order_by=created_at
page
integer

The page number to retrieve.

per_page
integer

The maximum number of results per page.

query
string

Filter listing results by a specific property.

Examples:
query[created_at_gteq]=2022-01-01T00:00:00.000Z
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

get/webhooks
Request samples
Response samples
application/json
[
  • {
    }
]

Create a webhook

Create a webhook

SecurityApiKey
Request
Request Body schema: application/json
url
string
webhook_type_id
string
Responses
201

Created

401

Unauthorized

403

Forbidden

404

Not Found

422

Unprocessable Entity

post/webhooks
Request samples
application/json
{}
Response samples
application/json
{}

Show a webhook

Show a specific webhook for a given ID.

SecurityApiKey
Request
path Parameters
webhook_id
required
string
Responses
200

OK

401

Unauthorized

403

Forbidden

404

Not Found

get/webhooks/{webhook_id}
Request samples
Response samples
application/json
[
  • {
    }
]

Update a webhook

Update a webhook for a given ID.

SecurityApiKey
Request
path Parameters
webhook_id
required
string
Request Body schema: application/json
enabled
boolean

True if enabled. False if disabled.

url
string

Update the webhook URL.

Responses
201

Created

401

Unauthorized

403

Forbidden

404

Not Found

422

Unprocessable Entity

patch/webhooks/{webhook_id}
Request samples
application/json
{}
Response samples
application/json
{
  • "id": "e8b57b13-0038-4c69-99ee-1dae304afd80",
  • "webhook_type": "candidate.created",
}

Delete a webhook

Delete a webhook given an Id

SecurityApiKey
Request
path Parameters
webhook_id
required
string
Responses
204

No Content

401

Unauthorized

403

Forbidden

404

Not Found

422

Unprocessable Entity

delete/webhooks/{webhook_id}
Request samples
Response samples
application/json
{
  • "errors": [
    ]
}

List all webhook types

List all webhook types enabled for your account.
For a list of available types, see Listen for Webhook Events

SecurityApiKey
Responses
200

OK

401

Unauthorized

403

Forbidden

404

Not Found

get/webhook_types
Request samples
Response samples
application/json
[
  • {
    }
]