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/streamAll 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
| Header | Direction | Meaning |
|---|---|---|
| Authorization | request | Bearer shk_live_... / sht_... |
| Idempotency-Key | request | POST /v1/transcriptions: safe retries for 24 hours. |
| X-Request-Id | response | req_ + 26 characters. Quote it to support. |
| X-RateLimit-Limit / -Remaining / -Reset | response | Rate limits |
| Retry-After | response | On 429 and 503. |
Endpoints
POST
/v1/listenTranscribe audio synchronouslyPOST/v1/transcriptionsCreate an async transcription jobGET/v1/transcriptions/{id}Get a jobGET/v1/transcriptionsList jobsDELETE/v1/transcriptions/{id}Delete a stored transcriptWSS/v1/listen/streamReal-time streamingPOST/v1/speakTurn text into speech (text to speech)POST/v1/auth/grantCreate a temporary streaming tokenGET/v1/modelsList modelsGET/v1/usageUsage over timeGET/v1/balanceCurrent balanceOpenAPI 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.