Subscription Actions
Retrieve a paginated list of actions configured on a subscription.
Authorization
ApiKeyAuth API key authentication using Bearer token. Format: sk_live_ followed by a secure random string.
In: header
Path Parameters
The subscription whose actions to list
uuidQuery Parameters
Maximum number of actions to return
1 <= value <= 10020Number of actions to skip for pagination
0 <= value0Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/companies/signals/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions"{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f", "type": "webhook", "webhook": { "destination": "http://example.com" }, "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "total": 0, "limit": 0, "offset": 0, "hasMore": true}Create an action on a subscription. Actions define what happens when the subscription triggers (e.g., deliver results via webhook). A maximum of 10 actions per subscription is allowed.
Authorization
ApiKeyAuth API key authentication using Bearer token. Format: sk_live_ followed by a secure random string.
In: header
Path Parameters
The subscription to add the action to
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Create a new action on a subscription. The type field determines which
configuration object is required.
The action type discriminator
Value in
- "webhook"
Configuration for a webhook action.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/companies/signals/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions" \ -H "Content-Type: application/json" \ -d '{ "type": "webhook" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f", "type": "webhook", "webhook": { "destination": "http://example.com" }, "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Retrieve a single action by its ID.
Authorization
ApiKeyAuth API key authentication using Bearer token. Format: sk_live_ followed by a secure random string.
In: header
Path Parameters
The subscription that owns the action
uuidThe action ID
uuidResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/companies/signals/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f", "type": "webhook", "webhook": { "destination": "http://example.com" }, "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Permanently delete an action from a subscription.
Authorization
ApiKeyAuth API key authentication using Bearer token. Format: sk_live_ followed by a secure random string.
In: header
Path Parameters
The subscription that owns the action
uuidThe action ID to delete
uuidResponse Body
application/json
application/json
curl -X DELETE "https://example.com/v1/companies/signals/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions/497f6eca-6276-4993-bfeb-53cbbbba6f08"Replace the configuration of an existing action. The action type is immutable; only the type-specific configuration can be updated.
Authorization
ApiKeyAuth API key authentication using Bearer token. Format: sk_live_ followed by a secure random string.
In: header
Path Parameters
The subscription that owns the action
uuidThe action ID to update
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Update the configuration of an existing action. The action type is immutable; only the type-specific configuration can be changed.
Configuration for a webhook action.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/companies/signals/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f", "type": "webhook", "webhook": { "destination": "http://example.com" }, "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Disable an action so it is skipped during dispatch. The action configuration is preserved and can be re-enabled with unpause.
Authorization
ApiKeyAuth API key authentication using Bearer token. Format: sk_live_ followed by a secure random string.
In: header
Path Parameters
The subscription that owns the action
uuidThe action ID to pause
uuidResponse Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/companies/signals/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions/497f6eca-6276-4993-bfeb-53cbbbba6f08/pause"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f", "type": "webhook", "webhook": { "destination": "http://example.com" }, "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Re-enable a paused action so it resumes being dispatched when the subscription triggers.
Authorization
ApiKeyAuth API key authentication using Bearer token. Format: sk_live_ followed by a secure random string.
In: header
Path Parameters
The subscription that owns the action
uuidThe action ID to unpause
uuidResponse Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/companies/signals/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions/497f6eca-6276-4993-bfeb-53cbbbba6f08/unpause"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f", "type": "webhook", "webhook": { "destination": "http://example.com" }, "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}