Criar Configuração
POST
https://api.eduzz.com/webhook/v1/subscription
Required scopes:webhook_write
Create WebHook Subscription
Body params
name
string
Nome da Inscrição
url
string
URL do WebHook
events
array of string
Eventos que o WebHook receberá
secretId
string
Id do Secret de WebHook
Response params (201)
id
string
ID da Inscrição
name
string
Nome da Inscrição Criado
secretId
string
Id do Secret de WebHook
events
array of string
Events registrados
url
string
URL do WebHook
status
string
Status da Incrição
Status codes
Status | Descrição |
201 | Success |
400 | Bad Request |
Exemplos
1curl --request POST \
2 --url https://api.eduzz.com/webhook/v1/subscription \
3 --header 'accept: application/json' \
4 --header 'authorization: Bearer qzrUZcm4dISz/ayXgq7g9+GmusYbXHmIpJ7fbLYDIjUPtNwAN1rrsRZbeJ6e6tAlSUSy3w=='\
5 --data '
6{
7 "name": "Test for Doc",
8 "url": "https://webhook.site/c8ff7d31-4fd9-40c7-8eca-b2334d996fb0",
9 "events": [
10 {
11 "name": "nutror.lesson_watched"
12 }
13 ],
14 "secretId": "87fce2b9bbbf534fc91fa63fdb697a4e9b7f17205c2577ef2cb1f9757307c180"
15}
16'
Response
1{
2 "name": "Test for Doc",
3 "url": "https://webhook.site/c8ff7d31-4fd9-40c7-8eca-b2334d996fb0",
4 "secretId": "87fce2b9bbbf534fc91fa63fdb697a4e9b7f17205c2577ef2cb1f9757307c180",
5 "events": [
6 {
7 "name": "nutror.lesson_watched",
8 "conditions": []
9 }
10 ],
11 "status": "disabled",
12 "id": "yaeung4oaxt25pi0bzzycoezf"
13}