Skip to main content
POST
/
v1
/
webhooks
Create webhook
curl --request POST \
  --url https://api.quentli.com/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "url": "<string>",
    "enabledEvents": [],
    "description": "<string>",
    "secret": "<string>"
  }
}
'
{
  "id": "w_1234567890abcdefghij",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "url": "<string>",
  "status": "ENABLED",
  "organizationId": "org_1234567890abcdefghij",
  "description": null,
  "enabledEvents": [
    {
      "id": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "webhookId": "w_1234567890abcdefghij"
    }
  ],
  "deletedAt": null,
  "deletedById": null
}

Authorizations

Authorization
string
header
required

Organization API key using Authorization: Bearer sk_....

Body

application/json

Request body for creating a webhook.

input
object
required

Response

Webhook created

Webhook endpoint configured by the organization.

id
string
required

Unique identifier of the webhook.

Example:

"w_1234567890abcdefghij"

createdAt
required

When the webhook was created.

updatedAt
required

When the webhook was last updated.

url
string
required

Destination URL.

status
enum<string>
required

Current webhook status.

Available options:
ENABLED,
DISABLED,
BROKEN,
DELETED
Example:

"ENABLED"

organizationId
string
required

Owning organization identifier.

Example:

"org_1234567890abcdefghij"

description
string | null

Optional user-defined description.

Example:

null

enabledEvents
object[]

Event types currently enabled for this webhook.

deletedAt

When this webhook was deleted, if any.

Example:

null

deletedById
string | null

User who deleted this webhook.

Example:

null