POST
/
webhooks
/
{id}
/
events
curl --request POST \
  --url https://api.stackone.com/webhooks/{id}/events \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'x-account-id: <x-account-id>' \
  --data '[
  {
    "event": "hris_employees.created",
    "record_id": "<string>"
  }
]'
[
  {
    "event": "hris_employees.created",
    "record_id": "<string>",
    "status": 200,
    "message": "The event was created"
  }
]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

x-account-id
string
required

The account identifier

Path Parameters

id
number
required

Body

application/json · object[]
event
string
required

The event name

Example:

"hris_employees.created"

record_id
string
required

The record id associated with the event

Response

207
application/json
Multiple status returned. Check the response body for details.
event
string
required

The event name

Example:

"hris_employees.created"

record_id
string
required

The record id associated with the event

status
number
required

The response http status code

Example:

200

message
string | null

The message associated with the operation result

Example:

"The event was created"