Subscriptions

Create trigger for subscription.

Changed on

Creates a trigger for the given subscription.

This object represents the trigger where the subscription owner has subscribed to.

post/v1/subscriptions/{id}/triggers

Request

  • Base URL: https://api.openfort.io
  • URL: https://api.openfort.io/v1/subscriptions/{id}/triggers
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring required

Specifies the unique subscription ID (starts with sub_).

Request body

targetstring required

Specifies the target of the trigger

type'webhook' | 'email' required
subscriptionstring

Specifies the subscription ID

Example request

{
  "target": "https://example.com",
  "subscription": "sub_6f6c9067-89fa-4fc8-ac72-c242a268c584"
}

Response

Successful response.

idstring required
object'trigger' required
createdAtinteger required
targetstring required
type'webhook' | 'email' required
subscriptionstring required
activeboolean required

Whether the trigger is active. Webhook triggers are automatically deactivated after repeated delivery failures and can be re-enabled.

updatedAtnumber double

Changes