All webhook management endpoints require admin permission unless noted. Read-only endpoints (list, get, deliveries) require read permission.
Authentication
https://platform-api.anyspend.com/api/v1
Endpoints
List Webhooks
read
Returns all webhook endpoints configured for your account.
- cURL
- SDK
Create Webhook
admin
Create a new webhook endpoint. The response includes a
secret field used to verify webhook signatures. Store this securely — it is only returned once at creation time.string
required
The HTTPS URL that will receive webhook POST requests.
string[]
required
Array of event types to subscribe to. See Supported Events below.
- cURL
- SDK
Get Webhook
read
Retrieve a single webhook endpoint by ID.
- cURL
- SDK
Update Webhook
admin
Update an existing webhook endpoint. All fields are optional.
string
Updated HTTPS endpoint URL.
string[]
Updated list of subscribed event types. Replaces the existing list entirely.
boolean
Set to
false to pause delivery without deleting the endpoint.- cURL
- SDK
Delete Webhook
admin
Permanently remove a webhook endpoint. Pending deliveries will be cancelled.
- cURL
- SDK
Send Test Webhook
admin
Sends a test event to the webhook URL so you can verify your endpoint is receiving and processing events correctly. The test payload uses a
test.ping event type.- cURL
- SDK
List Delivery History
read
View the delivery log for a webhook endpoint. Returns recent delivery attempts with status codes and response times.
- cURL
- SDK
Retry a Failed Delivery
admin
Manually retry a failed webhook delivery. The delivery must have a
failed status.- cURL
- SDK
Webhook Object
Supported Events
Verifying Webhook Signatures
Each webhook request includes a signature in theX-AnySpend-Signature header. Verify it using your webhook secret to ensure the request is authentic.
Always return a
2xx status code within 30 seconds. Failed deliveries are retried up to 3 times with exponential backoff.
HypeDuel