Account & Reference · record.types
GET/shared/typesrecord.types
List record types
The values accepted by the type field on redirects and short links.
- Base URL
- https://api.redirhub.com/v1
- Auth
- Bearer token
- Idempotent
- Yes
- Returns
- application/json
The request
Call GET /shared/types with your bearer token.
# List record types
curl "https://api.redirhub.com/v1/shared/types" \
-H "Authorization: Bearer $REDIRHUB_TOKEN"The response
A 200 carries the payload inside a data array — the same shape the list endpoints return, so one parser handles both.
{
"data": [
{
"id": "9f2a7c31-4b8e-4a02-9d1f-0c6b7e5a1d44",
"label": "string",
"short": "string",
"description": "Landing page for the spring campaign",
"as_paid_feature": "string"
}
],
"distributes": [
{
"id": "9f2a7c31-4b8e-4a02-9d1f-0c6b7e5a1d44",
"label": "string",
"description": "Landing page for the spring campaign",
"as_paid_feature": "string"
}
]
}Status codes
200
SuccessRecord types (
data) and multi-destination routing strategies (distributes). as_paid_feature names the plan feature a paid option requires.401
UnauthenticatedUnauthenticated
429
Too many requestsToo many requests
