Skip to main content
POST
Crea un webhook

Authorizations

Authorization
string
header
required

Chiave API dell'organizzazione. Scope: archive:read, archive:write, files:read, files:write, chat:read, chat:write, members:read, members:write, credits:read, webhooks:read, webhooks:write; <area>:write comprende <area>:read.

Scopes

webhooks:write

Headers

Idempotency-Key
string

Una chiave tua (fino a 255 caratteri): la stessa richiesta ripetuta entro 24 ore rende la prima risposta, con Idempotent-Replayed: true.

Maximum string length: 255

Body

application/json
url
string<uri>
required

Un indirizzo https con un nome (niente IP, niente reti private).

Required string length: 9 - 2000
Pattern: ^https:\/\/
events
enum<string>[]
required

I tipi di evento da ricevere; * per tutti.

Required array length: 1 - 20 elements
Available options:
*,
item.created,
item.updated,
item.trashed,
item.restored,
item.deleted,
content.updated,
file.read,
file.failed,
member.joined,
member.updated,
member.removed,
chat.answer.completed
description
string
Maximum string length: 200

Response

Il webhook, con il segreto.

id
string<uuid>
required
url
string
required
Maximum string length: 2000
description
string | null
required
Maximum string length: 200
events
string[]
required
Maximum array length: 20
Maximum string length: 40
active
boolean
required
createdBy
string | null
required
Maximum string length: 200
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
failing
integer
required
secret
string
required
Maximum string length: 100