Skip to main content
POST
/
organizations
/
api-webhooks
cURL
curl --request POST \
  --url https://sandbox.dollarpe.xyz/org/api/v1/organizations/api-webhooks \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-SIGNATURE: <api-key>' \
  --header 'X-TIMESTAMP: <api-key>' \
  --data '
{
  "webhook_url": "www.testwh1fromapi.com/w1"
}
'
{
  "status": true,
  "message": "Success",
  "data": "www.testwh1fromapi.com/w1"
}
API Status CodeResponseReason
400Webhook URL is requiredWebhook URL is required
500Internal Server ErrorInternal Server Error

Authorizations

X-API-KEY
string
header
required

API Key for authentication

X-TIMESTAMP
string
header
required

Current timestamp in seconds since epoch

X-SIGNATURE
string
header
required

HMAC SHA256 signature of the request encoded in Base64

Body

application/json
webhook_url
string<uri>
required

The HTTPS URL where webhook events will be sent

Example:

"www.testwh1fromapi.com/w1"

Response

Webhook URL configured successfully

status
boolean
Example:

true

message
string
Example:

"Success"

data
string
Example:

"www.testwh1fromapi.com/w1"