Workspace · workspaceSubscription.subscription
GET/workspace/subscription/{product}workspaceSubscription.subscription
Get one subscription
Fetches the workspace subscription for a single product.
- Base URL
- https://api.redirhub.com/v1
- Auth
- Bearer token
- Idempotent
- Yes
- Returns
- application/json
The request
Call GET /workspace/subscription/{product} with your bearer token. The product path segment identifies the record.
# Get one subscription
curl "https://api.redirhub.com/v1/workspace/subscription/links" \
-H "Authorization: Bearer $REDIRHUB_TOKEN"Path parameters
| Parameter | Description |
|---|---|
| productRequiredstring |
The response
A 200 returns the record as JSON.
"string"Status codes
200
SuccessThe workspace subscription for the given product. A product without a subscription still answers
200, with an empty JSON array ([]) rather than an empty body.401
UnauthenticatedUnauthenticated
429
Too many requestsToo many requests
What usually comes next
One call is rarely the whole job. These are the endpoints most integrations reach for around this one.
