VocalDocscontracts 1.65.0

Read a Trigger subscription

GET /v1/trigger-subscriptions/{subscription_id}

PropertyValue
Operationget_trigger_subscription
GroupTriggers
Scopeintegrations:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: A configuration read; a subscription and a stored Trigger event hold identifiers only.
Released in1.60.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers the subscription with subscription_token null: the token is answered once, by the create (1.60.0).

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the integrations:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/trigger-subscriptions/trs_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
subscription_idpathTriggerSubscriptionIdyesThe id of a Trigger subscription: trs_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.

Responses

StatusContent typeShapeError codes
200application/jsonTriggerSubscription
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is TriggerSubscription.

FieldTypeRequiredDescription
actionTriggerActionyes
connection_idConnectionIdyes
connector_idConnectorIdyes
created_atTimestampyes
enabledbooleanyes
event_typeTriggerEventTypeNameyes
filterZenExpression or nullyesA ZEN expression over the event's typed fields; null acts on every event.
idTriggerSubscriptionIdyes
namestringyes
object"trigger_subscription"yes
organization_idOrganizationIdyes
previous_token_expires_atTimestamp or nullnoAfter a token rotation (1.61.0), when the previous token stops verifying, 24 hours later (a target); null otherwise, absent from an api before 1.61.0.
rate_limit_per_minuteintegeryes
revisionintegeryes
statusTriggerSubscriptionStatusyes
subscription_tokenstring (password) or null (password)yesThe token of the edge path /v1/triggers/{connector_id}/{subscription_token}, 32 random bytes in base64url: answered once by the create, null in every other answer.
token_hintstringyesThe last characters of the subscription token.
updated_atTimestampyes