Create a subscription
POST/webhooks/subscriptions
Subscribes a URL to one or more events. Event names accept a trailing wildcard, such as deal_registration.*. The response is the only time the signing secret is shown. The subscription stays pending_verification until the endpoint answers the challenge.
Headers
Airstride-Versionstring- The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is
2026-12-01. Idempotency-KeystringRequired- A unique value per logical write, such as a UUID. Required on every write. Retry with the same key and the same body after a timeout or network error; you get the original response, never a second registration or a second claim.
Request body
urlstring (uri)Required- Must use HTTPS.
eventsarray of stringRequired- Event names. A trailing
*matches every event in a family. descriptionstring
Responses
- 201
- The subscription, with its secret.
- 400
- Invalid parameters, or a version we do not recognise.
- 401
- Missing or invalid API key.
- 422
- The request parsed but failed validation. Codes include
VALIDATION_FAILED,CAPABILITY_NOT_SUPPORTED,REGISTRATION_NOT_APPROVEDandCLAIM_WINDOW_CLOSED. - 429
- Rate limited. Wait until
X-RateLimit-Resetbefore retrying. - 500
- Something broke on our side.
curl -X POST "https://app.airstride.ai/api/open-partnerships/webhooks/subscriptions" \
-H "X-API-Key: $AIRSTRIDE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"url": "https://crm.example.com/hooks/airstride",
"events": [
"deal_registration.*",
"quote.priced",
"connection.needs_reauth"
],
"description": "CRM write-back"
}'