POST
/
webhooks
Create a webhook
curl --request POST \
  --url https://api.cloudglue.dev/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "endpoint": "<string>",
  "subscribed_events": [
    "describe.job.processing"
  ]
}'
{
  "id": "<string>",
  "object": "webhook",
  "created_at": 123,
  "webhook_secret": "<string>",
  "endpoint": "<string>",
  "active": true,
  "description": "<string>",
  "subscribed_events": [
    "describe.job.processing"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Webhook creation parameters

description
string

Description of the webhook

endpoint
string

URL of the webhook endpoint

subscribed_events
enum<string>[]

Events that the webhook is subscribed to

Response

Webhook created successfully

id
string
required

Unique identifier for the webhook

object
enum<string>
required

Object type, always 'webhook'

Available options:
webhook
created_at
integer
required

Unix timestamp of when the webhook was created

webhook_secret
string
required

Secret used to verify the webhook request

endpoint
string
required

URL of the webhook endpoint

active
boolean
required

Whether the webhook is active

subscribed_events
enum<string>[]
required

Events that the webhook is subscribed to

description
string

Description of the webhook