An HTTPS URL and the events to send. The response has the signing secret, shown once. Events: article.published, article.updated, article.unpublished, article.deleted, edit.proposed, draft.created, changelog_entry.published, task.completed, conversation.escalated, lead.created. Each delivery is signed: usedocs-signature: t=…,v1=HMAC-SHA256(t.body).

Authentication

Bearer token (content:write): A workspace API key: ud_live_…

Parameters

NameInTypeRequiredDescription
bot_idquerystringOnly for a key that covers several bots (see GET /bots). Or send the Usedocs-Bot header.

Request body

Required, application/json.

FieldTypeRequiredDescription
urlstringYes
eventsstring[]Yes

Responses

StatusDescription
201The endpoint, with secret.
400The request is missing something or has a bad value.
401No API key, or the key is revoked.
402The workspace is paused; reads still work.
403A read key on a write, or a key for another bot.
404Not found.
429Rate limited: 120 requests a minute per key, 30 tasks an hour. See Retry-After.

Response fields

FieldTypeDescription
idstring
urlstring
eventsstring[]
enabledboolean
created_atstring
secret_hintstring
secretstringOnly when created or rotated.