Use this endpoint to fetch a single subscription by its ID. The response includes up to 200 address filters inlined in theDocumentation Index
Fetch the complete documentation index at: https://docs.offthehook.dev/llms.txt
Use this file to discover all available pages before exploring further.
filters.addresses array. If you have attached more than 200 addresses to the subscription, filters.hasMore will be true and you should paginate the full list using the dedicated addresses endpoint.
Request
GET /v1/subscriptions/:id
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer oth_YOUR_API_KEY |
Path parameters
The subscription ID to retrieve. Always starts with
sub_.Example request
Response
200 OK
When
filters.hasMore is true, there are more than 200 addresses attached to this subscription. Use GET /v1/subscriptions/:id/filters/addresses to paginate the full list.Response fields
Unique subscription identifier, prefixed with
sub_.Webhook delivery target.
destination.secret is never returned by this endpoint. To retrieve a new secret, use POST /v1/subscriptions/:id/secrets/rotate.Event kinds this subscription is subscribed to.
Address filters attached to this subscription.
"enabled" or "disabled".Human-readable label. Empty string if none was set.
ISO 8601 timestamp of when the subscription was created.
ISO 8601 timestamp of the most recent update.
Errors
| Code | Description |
|---|---|
not_found | No subscription with the given ID exists under your API key. |
unauthorized | The Authorization header is missing or the API key is invalid. |