Skip to content
RedirHub/API
Sign inGet API key
Getting started

The RedirHub API

Everything RedirHub serves on the edge — redirects, short links, hostnames, and the workspace around them — is available over a JSON API. 31 operations across 21 paths, one bearer token, and predictable payloads.

Base URL
https://api.redirhub.com/v1
Auth
Bearer token
Format
JSON
Spec
OpenAPI 3.1.0

Your first call

Every endpoint lives under the same base URL and expects the same Authorization header. GET /test is the cheapest way to confirm a token works before you build anything on top of it.

# Verify your API token
curl "https://api.redirhub.com/v1/test" \
  -H "Authorization: Bearer $REDIRHUB_TOKEN"
Keep tokens server-side. A RedirHub token carries full workspace access. Call the API from your backend, never from a browser bundle.

How the API is shaped

Collection endpoints answer with a data array; single-record endpoints answer with the record itself. The same record shape comes back from create, read, and update, so one parser covers all three.

Reference groups


Where to go next

Start with Authentication to get a working token, then create something with POST /link. Errors, Pagination, Rate limits, and Filtering & sorting cover the things every integration hits next.