Create webhook endpoint
POST
Register a URL to receive webhook events. The signing secret is returned only on creation — store it securely.
apiKeyHeaderheader
x-api-key<token>API key for authentication. Generate from the dashboard or via POST /v1/api-keys.
x-api-key*stringAPI key for authentication
Length
1 <= length- body
url*stringHTTPS endpoint URL that will receive webhook event POST requests
Format
urienabled_events?array<>Event types to subscribe to. Omit or pass an empty array to receive all events. e.g. checkout.completed, invoice.paid, subscription.renewed
Response for status 200
application/json- response
id*stringurl*stringsecret*stringstatus*stringenabled_events*array<string>created_at*stringupdated_at*stringcurl -X POST 'https://api.tryaccess.xyz/api/v1/webhooks/endpoints' \ -H 'x-api-key: string' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://example.com/webhooks/access"}'{ "id": "string", "url": "string", "secret": "string", "status": "string", "enabled_events": [ "string" ], "created_at": "string", "updated_at": "string"}How is this guide?