Skip to main content
POST
/
v1
/
webhooks
/
endpoints
Create a webhook endpoint
curl --request POST \
  --url https://api.whatsapp-use.com/v1/webhooks/endpoints \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>"
}
'
{
  "endpoint": {
    "id": "<string>",
    "user_id": "<string>",
    "url": "<string>",
    "description": "<string>",
    "event_types": [
      "<string>"
    ],
    "secret": "<string>",
    "enabled": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
url
string<uri>
required
description
string
event_types
string[]
enabled
boolean

Response

201 - application/json

Created endpoint. The secret is only returned on creation.

endpoint
object