Skip to main content
POST
/
webhooks
Register a webhook
curl --request POST \
  --url https://api.market.iventou.com.br/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Purchase approval",
  "url": "https://webhook.example.com/v1"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Token from partner authetnication

Body

application/json
name
string
required
Minimum length: 3
Example:

"Purchase approval"

url
string<url>
required
Example:

"https://webhook.example.com/v1"

Response

201 - application/json

Webhook registered successful

id
string<uuid>
required