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 'Content-Type: application/json' \
5 --header 'authorization: Bearer {{YOUR_ACCESS_TOKEN}}'\
6 --data '
7{
8 "name": "Test for Doc",
9 "url": "https://webhook.site/c8ff7d31-4fd9-40c7-8eca-b2334d996fb0",
10 "events": [
11 {
12 "name": "nutror.lesson_watched"
13 }
14 ],
15 "secretId": "87fce2b9bbbf534fc91fa63fdb697a4e9b7f17205c2577ef2cb1f9757307c180"
16}
17'
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}