Subscriptions
Create a webhook subscription
Creates a webhook subscription for the authenticated account and mints its signing secret. The secret is returned once, in this response, and is never retrievable again — store it now.
post/subscriptions
Request
- Base URLhttps://api.textla.com/v1
- AuthHTTP bearer
Request body
Example request
{
"$schema": "/v1/schemas/CreateSubscriptionBody.json",
"target_url": "https://example.com/hooks/sms",
"types": [
"campaign.sent"
]
}Response
Created
Example response
{
"$schema": "/v1/schemas/CreatedSubscription.json",
"account_id": "Ab2c3d4f5g6",
"id": "sub_2c8f...b1",
"secret": "whsec_A1B2...",
"target_url": "https://example.com/hooks/sms",
"types": [
"campaign.sent"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.