Skip to main content
GET
/
v1
/
webhooks
Get webhook config
curl --request GET \
  --url https://api.production.xtrace.ai/v1/webhooks \
  --header 'X-Org-Id: <api-key>' \
  --header 'x-api-key: <api-key>'
{
  "url": "<string>",
  "events": [],
  "enabled": true,
  "secret": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "object": "webhook",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Long-lived org API key. Alternative: Authorization: Bearer <key>.

X-Org-Id
string
header
required

Required alongside the API key (no key→org reverse index).

Response

Successful Response

Wire shape of the org's webhook config.

url
string
required

Configured subscriber URL.

events
enum<string>[]
required

Event types currently subscribed.

Available options:
memory.learning.completed,
memory.learning.failed
enabled
boolean
required

Whether deliveries are active.

secret
string
required

Signing secret used to verify X-Webhook-Signature. Returned in full only when freshly minted — a first PUT (create) or PUT?rotate_secret=true. Store it then; every other response (a plain edit, or GET) masks it.

created_at
string<date-time>
required

ISO-8601 timestamp the config was first created.

object
string
default:webhook

Constant discriminator for the resource type.

Allowed value: "webhook"
updated_at
string<date-time>

ISO-8601 timestamp of the most recent edit.