Skip to content

API reference

API reference

Base URL, authentication, request IDs, headers and every endpoint.

Base URL

URL
https://api.shihab.co.uk/v1
wss://api.shihab.co.uk/v1/listen/stream

All requests use HTTPS (WSS for streaming) and an API key: Authorization: Bearer shk_live_... (Authentication). Request and response bodies are JSON unless you send audio. CORS is open on /v1 for temporary-token streaming, but never put a secret key in a browser.

Headers

HeaderDirectionMeaning
AuthorizationrequestBearer shk_live_... / sht_...
Idempotency-KeyrequestPOST /v1/transcriptions: safe retries for 24 hours.
X-Request-Idresponsereq_ + 26 characters. Quote it to support.
X-RateLimit-Limit / -Remaining / -ResetresponseRate limits
Retry-AfterresponseOn 429 and 503.

Endpoints

OpenAPI and Postman

Machine-readable spec: https://api.shihab.co.uk/v1/openapi.json (OpenAPI 3.1). Postman collection: shihab-asr.postman_collection.json (set the apiKey variable).

Need help? Email [email protected] or message us on WhatsApp.