Skip to main content
POST
/
api
/
v1
/
webhook
Create a new webhook
curl --request POST \
  --url https://api.paylora.org/api/v1/webhook \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://example.com/webhook"
}
'
{
  "success": true,
  "data": {
    "uuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "user_uuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "url": "https://example.com/webhook",
    "secret": "strongsecret"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
url
string
required
Example:

"https://example.com/webhook"

Response

Resource model

success
boolean
required

Indicates if the request was successful

Example:

true

data
object
required

The data returned by the API