Skip to main content
POST
/
v1
/
webhooks
/
{webhookId}
/
subscriptions
Crear suscripción de evento para un webhook
curl --request POST \
  --url https://agents.studio.getsupervisor.ai/v1/webhooks/{webhookId}/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "eventKey": "<string>",
  "isActive": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "webhookId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "eventKey": "<string>",
  "isActive": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Headers

x-workspace-id
string<uuid>
required

Identificador del workspace multi-tenant.

Path Parameters

webhookId
string<uuid>
required

Identificador del webhook (UUID v4)

Body

application/json
eventKey
string
required
isActive
boolean
default:true

Response

Created

Detalle de suscripción (mismos campos que el resumen por ahora).

id
string<uuid>
required
webhookId
string<uuid>
required
eventKey
string
required

Clave del evento (p. ej. agent.created, agent.version.published).

isActive
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required