{
    "basePath": "/",
    "definitions": {
        "dto.ExpiredResultResponse": {
            "properties": {
                "error": {
                    "example": "result_expired",
                    "type": "string"
                },
                "id": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.FileJobResponse": {
            "properties": {
                "characters": {
                    "type": "integer"
                },
                "duration_seconds": {
                    "type": "number"
                },
                "error": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "result": {
                    "type": "object"
                },
                "status": {
                    "enum": [
                        "uploading",
                        "queued",
                        "running",
                        "completed",
                        "failed",
                        "cancelled",
                        "deleted"
                    ],
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.InferenceResponse": {
            "properties": {
                "charged_microcredits": {
                    "type": "string"
                },
                "error": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "kind": {
                    "enum": [
                        "vision",
                        "moderation-audio",
                        "moderation-video",
                        "translation"
                    ],
                    "type": "string"
                },
                "result": {
                    "type": "object"
                },
                "status": {
                    "enum": [
                        "running",
                        "completed",
                        "failed"
                    ],
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.ModerationStreamResponse": {
            "properties": {
                "audio_format": {
                    "type": "string"
                },
                "channels": {
                    "type": "integer"
                },
                "expires_at": {
                    "type": "string"
                },
                "max_audio_seconds": {
                    "type": "integer"
                },
                "max_inflight": {
                    "type": "integer"
                },
                "protocol": {
                    "type": "string"
                },
                "sample_rate": {
                    "type": "integer"
                },
                "token": {
                    "type": "string"
                },
                "websocket_path": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.RejectionResponse": {
            "properties": {
                "detail": {
                    "additionalProperties": {},
                    "type": "object"
                },
                "error": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.STTExtendRequest": {
            "properties": {
                "additional_minutes": {
                    "type": "integer"
                },
                "session_id": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.STTSessionRequest": {
            "properties": {
                "duration_minutes": {
                    "type": "integer"
                },
                "language": {
                    "type": "string"
                },
                "webrtc_session_id": {
                    "description": "WebRTCSessionID links the session to a room, so its cost counts toward that room.",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.SessionChargeResponse": {
            "properties": {
                "characters": {
                    "description": "Characters are the TTS characters used.",
                    "type": "integer"
                },
                "charged_microcredits": {
                    "description": "ChargedMicrocredits is the charge (1,000,000 per dollar), as a string; ChargedUSD the same in dollars.",
                    "example": "1270",
                    "type": "string"
                },
                "charged_usd": {
                    "example": "0.00127",
                    "type": "string"
                },
                "covered_by_addon": {
                    "description": "CoveredByAddon is true when the bandwidth add-on covered this WebRTC session, so it is not charged.",
                    "type": "boolean"
                },
                "created_at": {
                    "type": "string"
                },
                "ended_at": {
                    "type": "string"
                },
                "final": {
                    "description": "Final is true once the session ended or was rejected: the charge no longer changes. Before\nthat the charge is 0, as sessions are settled when they end.",
                    "type": "boolean"
                },
                "identity": {
                    "type": "string"
                },
                "region": {
                    "description": "Region is the node's city, else its country (WebRTC sessions only).",
                    "example": "Frankfurt",
                    "type": "string"
                },
                "room_name": {
                    "description": "RoomName and Identity are the participant's; for a service session, those of the linked WebRTC session.",
                    "type": "string"
                },
                "service": {
                    "enum": [
                        "webrtc",
                        "stt",
                        "tts",
                        "file-stt",
                        "file-tts",
                        "vision",
                        "moderation-audio",
                        "moderation-video",
                        "translation"
                    ],
                    "type": "string"
                },
                "session_id": {
                    "type": "string"
                },
                "started_at": {
                    "type": "string"
                },
                "status": {
                    "enum": [
                        "pending",
                        "active",
                        "completed",
                        "expired",
                        "failed",
                        "rejected"
                    ],
                    "type": "string"
                },
                "webrtc_session_id": {
                    "description": "WebRTCSessionID is the WebRTC session a service session was linked to.",
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.SessionChargesResponse": {
            "properties": {
                "sessions": {
                    "items": {
                        "$ref": "#/definitions/dto.SessionChargeResponse"
                    },
                    "type": "array"
                },
                "total_microcredits": {
                    "description": "TotalMicrocredits and TotalUSD add up the listed sessions.",
                    "type": "string"
                },
                "total_usd": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.SpeechExtendResponse": {
            "properties": {
                "max_characters": {
                    "type": "integer"
                },
                "new_expires_at": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.SpeechSessionResponse": {
            "properties": {
                "expires_at": {
                    "type": "string"
                },
                "server_url": {
                    "description": "ServerURL is the speech server's origin, as signed into the token.",
                    "type": "string"
                },
                "session_id": {
                    "type": "string"
                },
                "stream_url": {
                    "description": "StreamURL is the WebSocket address to connect to: ServerURL plus /v1/stream.",
                    "example": "wss://stt1.example.org/v1/stream",
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.TTSExtendRequest": {
            "properties": {
                "additional_characters": {
                    "type": "integer"
                },
                "session_id": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.TTSSessionRequest": {
            "properties": {
                "language": {
                    "type": "string"
                },
                "max_characters": {
                    "type": "integer"
                },
                "voice": {
                    "description": "Voice is recorded for the dashboard; the client picks it on the speech server.",
                    "type": "string"
                },
                "webrtc_session_id": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.TranslationRequest": {
            "properties": {
                "q": {
                    "type": "string"
                },
                "source": {
                    "type": "string"
                },
                "target": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.WebRTCAdminTokenRequest": {
            "properties": {
                "room_name": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.WebRTCAdminTokenResponse": {
            "properties": {
                "api_urls": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "expires_at": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.WebRTCExtendRequest": {
            "properties": {
                "additional_minutes": {
                    "type": "integer"
                },
                "session_id": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.WebRTCExtendResponse": {
            "properties": {
                "fallback_urls": {
                    "description": "Ranked signaling URLs, starting with ws_url. Reuse the same token for eligible connection failures.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "new_expires_at": {
                    "type": "string"
                },
                "region": {
                    "description": "Region is the session's node location, as in the token response.",
                    "example": "Frankfurt",
                    "type": "string"
                },
                "token": {
                    "type": "string"
                },
                "ws_url": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "dto.WebRTCGrants": {
            "properties": {
                "can_publish": {
                    "type": "boolean"
                },
                "can_publish_data": {
                    "type": "boolean"
                },
                "can_subscribe": {
                    "type": "boolean"
                },
                "room_admin": {
                    "type": "boolean"
                }
            },
            "type": "object"
        },
        "dto.WebRTCTokenRequest": {
            "properties": {
                "client_ip": {
                    "type": "string"
                },
                "duration_minutes": {
                    "type": "integer"
                },
                "grants": {
                    "allOf": [
                        {
                            "$ref": "#/definitions/dto.WebRTCGrants"
                        }
                    ],
                    "description": "Grants narrows the participant's permissions. Absent fields keep their defaults."
                },
                "identity": {
                    "type": "string"
                },
                "metadata": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "participant_identity": {
                    "description": "ParticipantIdentity is the x402 name of Identity.",
                    "type": "string"
                },
                "room_name": {
                    "type": "string"
                },
                "webhook_urls": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "type": "object"
        },
        "dto.WebRTCTokenResponse": {
            "properties": {
                "expires_at": {
                    "type": "string"
                },
                "fallback_urls": {
                    "description": "Ranked signaling URLs, starting with ws_url. Reuse the same token for eligible connection failures.",
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "region": {
                    "description": "Region is where the chosen node is: its city, else its country; empty when unknown.",
                    "example": "Frankfurt",
                    "type": "string"
                },
                "session_id": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                },
                "ws_url": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "responses.ErrorBody": {
            "properties": {
                "error": {
                    "type": "string"
                }
            },
            "type": "object"
        }
    },
    "info": {
        "contact": {},
        "description": "dTelecom Cloud hosted services: WebRTC tokens, live speech-to-text and text-to-speech sessions, file transcription, WAV synthesis, translation, vision and moderation. Authenticate with an API key: `Authorization: Bearer \u003ckey\u003e:\u003csecret\u003e`. Every call can also answer 429 `rate_limited` (with `Retry-After: 1`) and 500 `internal_error`.",
        "title": "dTelecom Cloud API",
        "version": "2.0"
    },
    "paths": {
        "/v1/moderation/audio": {
            "post": {
                "consumes": [
                    "multipart/form-data"
                ],
                "parameters": [
                    {
                        "description": "1-128 letters, digits, underscores or hyphens",
                        "in": "header",
                        "name": "Idempotency-Key",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "description": "PCM16 mono 16 kHz, up to 30 s",
                        "in": "formData",
                        "name": "audio",
                        "required": true,
                        "type": "file"
                    },
                    {
                        "description": "Language; en by default",
                        "in": "formData",
                        "name": "language",
                        "type": "string"
                    },
                    {
                        "description": "WebRTC session to link this to a room",
                        "in": "formData",
                        "name": "session_id",
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "202": {
                        "description": "still running; retry with the same key",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_idempotency_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: idempotency_conflict",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "410": {
                        "description": "error: result_expired",
                        "schema": {
                            "$ref": "#/definitions/dto.ExpiredResultResponse"
                        }
                    },
                    "413": {
                        "description": "error: body_too_large",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "415": {
                        "description": "error: unsupported_media_type",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "422": {
                        "description": "error: invalid_fields",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "429": {
                        "description": "error: inference_capacity, workload_busy, rate_limited",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "502": {
                        "description": "failed: inference_rejected or inference_backend_failure; a retry with the same key runs again",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "503": {
                        "description": "error: service_unavailable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "504": {
                        "description": "failed: inference_backend_timeout or inference_deadline_exceeded; a retry with the same key runs again",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Moderate an audio chunk",
                "tags": [
                    "moderation"
                ]
            }
        },
        "/v1/moderation/requests/{id}": {
            "get": {
                "parameters": [
                    {
                        "description": "Request id",
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: request_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "410": {
                        "description": "error: result_expired",
                        "schema": {
                            "$ref": "#/definitions/dto.ExpiredResultResponse"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Get a moderation request",
                "tags": [
                    "moderation"
                ]
            }
        },
        "/v1/moderation/stream": {
            "get": {
                "responses": {
                    "101": {
                        "description": "Switching Protocols"
                    },
                    "503": {
                        "description": "Service Unavailable"
                    }
                },
                "summary": "Moderation stream (WebSocket)",
                "tags": [
                    "moderation"
                ]
            }
        },
        "/v1/moderation/streams": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.ModerationStreamResponse"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "503": {
                        "description": "error: service_unavailable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Open a moderation stream",
                "tags": [
                    "moderation"
                ]
            }
        },
        "/v1/moderation/video-frame": {
            "post": {
                "consumes": [
                    "multipart/form-data"
                ],
                "parameters": [
                    {
                        "description": "1-128 letters, digits, underscores or hyphens",
                        "in": "header",
                        "name": "Idempotency-Key",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "description": "Image, up to 6 MiB",
                        "in": "formData",
                        "name": "image",
                        "required": true,
                        "type": "file"
                    },
                    {
                        "description": "WebRTC session to link this to a room",
                        "in": "formData",
                        "name": "session_id",
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "202": {
                        "description": "still running; retry with the same key",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_idempotency_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: idempotency_conflict",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "410": {
                        "description": "error: result_expired",
                        "schema": {
                            "$ref": "#/definitions/dto.ExpiredResultResponse"
                        }
                    },
                    "413": {
                        "description": "error: body_too_large",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "415": {
                        "description": "error: unsupported_media_type",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "422": {
                        "description": "error: invalid_fields",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "429": {
                        "description": "error: inference_capacity, workload_busy, rate_limited",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "502": {
                        "description": "failed: inference_rejected or inference_backend_failure; a retry with the same key runs again",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "503": {
                        "description": "error: service_unavailable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "504": {
                        "description": "failed: inference_backend_timeout or inference_deadline_exceeded; a retry with the same key runs again",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Moderate a video frame",
                "tags": [
                    "moderation"
                ]
            }
        },
        "/v1/sessions": {
            "get": {
                "description": "The room's WebRTC sessions and the service sessions linked to them with `webrtc_session_id` (speech, vision, moderation, translation), newest first. A room name can be reused; pass `since` to read one call.",
                "parameters": [
                    {
                        "description": "Room name",
                        "in": "query",
                        "name": "room",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "description": "Only sessions created at or after this time (RFC 3339)",
                        "in": "query",
                        "name": "since",
                        "type": "string"
                    },
                    {
                        "description": "Maximum sessions, default 100, at most 500",
                        "in": "query",
                        "name": "limit",
                        "type": "integer"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.SessionChargesResponse"
                        }
                    },
                    "400": {
                        "description": "error: room_required, invalid_query",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "List a room's sessions and charges",
                "tags": [
                    "webrtc"
                ]
            }
        },
        "/v1/sessions/{id}": {
            "get": {
                "description": "Any key of the project can read the project's sessions. The charge is final once `final` is true; sessions are settled when they end.",
                "parameters": [
                    {
                        "description": "Session ID from a token or service session response",
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.SessionChargeResponse"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: session_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Get a session and its charge",
                "tags": [
                    "webrtc"
                ]
            }
        },
        "/v1/stt/session": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "description": "Session",
                        "in": "body",
                        "name": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/dto.STTSessionRequest"
                        }
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.SpeechSessionResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_body",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: session_not_found (webrtc_session_id)",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "429": {
                        "description": "error: rate_limited",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "503": {
                        "description": "error: no_servers_available",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Create a streaming STT session",
                "tags": [
                    "stt"
                ]
            }
        },
        "/v1/stt/session/extend": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "description": "Extension",
                        "in": "body",
                        "name": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/dto.STTExtendRequest"
                        }
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.SpeechExtendResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_body",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: session_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: session_not_extendable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Extend a streaming STT session",
                "tags": [
                    "stt"
                ]
            }
        },
        "/v1/transcriptions/jobs": {
            "post": {
                "consumes": [
                    "multipart/form-data"
                ],
                "parameters": [
                    {
                        "description": "1-128 printable ASCII characters",
                        "in": "header",
                        "name": "Idempotency-Key",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "description": "Audio or video, up to 256 MiB",
                        "in": "formData",
                        "name": "file",
                        "required": true,
                        "type": "file"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/dto.FileJobResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_idempotency_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: idempotency_conflict (the key was used for another file or fields)",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "413": {
                        "description": "error: body_too_large",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "415": {
                        "description": "error: unsupported_media_type, upload_rejected",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "422": {
                        "description": "error: upload_rejected",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "429": {
                        "description": "error: inference_capacity, rate_limited",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "502": {
                        "description": "error: backend_unavailable, upload_rejected",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "503": {
                        "description": "error: service_unavailable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Create a file transcription job",
                "tags": [
                    "transcriptions"
                ]
            }
        },
        "/v1/transcriptions/jobs/{id}": {
            "delete": {
                "description": "An open job (uploading, queued or running) is cancelled: its hold is released and it\nstays readable with status cancelled. A completed job's result is deleted: status\ndeleted, and reading it afterwards answers 404 request_not_found. A failed job stays failed.",
                "parameters": [
                    {
                        "description": "Job id",
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.FileJobResponse"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: request_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Cancel or delete a file transcription job",
                "tags": [
                    "transcriptions"
                ]
            },
            "get": {
                "parameters": [
                    {
                        "description": "Job id",
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.FileJobResponse"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: request_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Get a file transcription job",
                "tags": [
                    "transcriptions"
                ]
            }
        },
        "/v1/translation": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "description": "1-128 letters, digits, underscores or hyphens",
                        "in": "header",
                        "name": "Idempotency-Key",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "description": "Text and languages",
                        "in": "body",
                        "name": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/dto.TranslationRequest"
                        }
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "202": {
                        "description": "still running; retry with the same key",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_idempotency_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: idempotency_conflict",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "410": {
                        "description": "error: result_expired",
                        "schema": {
                            "$ref": "#/definitions/dto.ExpiredResultResponse"
                        }
                    },
                    "413": {
                        "description": "error: body_too_large",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "415": {
                        "description": "error: unsupported_media_type",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "422": {
                        "description": "error: invalid_fields",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "429": {
                        "description": "error: inference_capacity, rate_limited",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "502": {
                        "description": "failed: inference_rejected or inference_backend_failure; a retry with the same key runs again",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "503": {
                        "description": "error: service_unavailable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "504": {
                        "description": "failed: inference_backend_timeout or inference_deadline_exceeded; a retry with the same key runs again",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Translate text",
                "tags": [
                    "translation"
                ]
            }
        },
        "/v1/translation/requests/{id}": {
            "get": {
                "parameters": [
                    {
                        "description": "Request id",
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: request_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "410": {
                        "description": "error: result_expired",
                        "schema": {
                            "$ref": "#/definitions/dto.ExpiredResultResponse"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Get a translation request",
                "tags": [
                    "translation"
                ]
            }
        },
        "/v1/tts/jobs": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "description": "1-128 printable ASCII characters",
                        "in": "header",
                        "name": "Idempotency-Key",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "description": "text, voice, language, speed, input_format, watermark, dictionary",
                        "in": "body",
                        "name": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/dto.FileJobResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_idempotency_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: idempotency_conflict",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "413": {
                        "description": "error: body_too_large",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "415": {
                        "description": "error: unsupported_media_type",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "422": {
                        "description": "error: invalid_fields; or backend_rejected with detail {code, message, position} (e.g. unsupported SSML)",
                        "schema": {
                            "$ref": "#/definitions/dto.RejectionResponse"
                        }
                    },
                    "429": {
                        "description": "error: inference_capacity, rate_limited",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "502": {
                        "description": "error: backend_unavailable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "503": {
                        "description": "error: service_unavailable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Create a text or SSML to WAV job",
                "tags": [
                    "tts"
                ]
            }
        },
        "/v1/tts/jobs/{id}": {
            "delete": {
                "description": "An open job (uploading, queued or running) is cancelled: its hold is released and it\nstays readable with status cancelled. A completed job's result is deleted: status\ndeleted, and reading it afterwards answers 404 request_not_found. A failed job stays failed.",
                "parameters": [
                    {
                        "description": "Job id",
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.FileJobResponse"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: request_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Cancel or delete a WAV job",
                "tags": [
                    "tts"
                ]
            },
            "get": {
                "parameters": [
                    {
                        "description": "Job id",
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.FileJobResponse"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: request_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Get a WAV job",
                "tags": [
                    "tts"
                ]
            }
        },
        "/v1/tts/jobs/{id}/audio": {
            "get": {
                "parameters": [
                    {
                        "description": "Job id",
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "string"
                    }
                ],
                "produces": [
                    "audio/wav"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: request_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: job_not_complete",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "429": {
                        "description": "error: inference_capacity",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "502": {
                        "description": "error: backend_unavailable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Download a completed WAV",
                "tags": [
                    "tts"
                ]
            }
        },
        "/v1/tts/session": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "description": "Session",
                        "in": "body",
                        "name": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/dto.TTSSessionRequest"
                        }
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.SpeechSessionResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_body",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: session_not_found (webrtc_session_id)",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "429": {
                        "description": "error: rate_limited",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "503": {
                        "description": "error: no_servers_available",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Create a streaming TTS session",
                "tags": [
                    "tts"
                ]
            }
        },
        "/v1/tts/session/extend": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "description": "Extension",
                        "in": "body",
                        "name": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/dto.TTSExtendRequest"
                        }
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.SpeechExtendResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_body",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: session_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: session_not_extendable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Extend a streaming TTS session",
                "tags": [
                    "tts"
                ]
            }
        },
        "/v1/vision/requests/{id}": {
            "get": {
                "parameters": [
                    {
                        "description": "Request id",
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: request_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "410": {
                        "description": "error: result_expired",
                        "schema": {
                            "$ref": "#/definitions/dto.ExpiredResultResponse"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Get a vision request",
                "tags": [
                    "vision"
                ]
            }
        },
        "/v1/vision/snapshot": {
            "post": {
                "consumes": [
                    "multipart/form-data"
                ],
                "parameters": [
                    {
                        "description": "1-128 letters, digits, underscores or hyphens",
                        "in": "header",
                        "name": "Idempotency-Key",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "description": "Image, up to 6 MiB",
                        "in": "formData",
                        "name": "image",
                        "required": true,
                        "type": "file"
                    },
                    {
                        "description": "Question",
                        "in": "formData",
                        "name": "question",
                        "type": "string"
                    },
                    {
                        "description": "camera or screen; camera by default",
                        "in": "formData",
                        "name": "source",
                        "type": "string"
                    },
                    {
                        "description": "WebRTC session to link this to a room",
                        "in": "formData",
                        "name": "session_id",
                        "type": "string"
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "202": {
                        "description": "still running; retry with the same key",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_idempotency_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: idempotency_conflict",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "410": {
                        "description": "error: result_expired",
                        "schema": {
                            "$ref": "#/definitions/dto.ExpiredResultResponse"
                        }
                    },
                    "413": {
                        "description": "error: body_too_large",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "415": {
                        "description": "error: unsupported_media_type",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "422": {
                        "description": "error: invalid_fields",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "429": {
                        "description": "error: inference_capacity, workload_busy, rate_limited",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "502": {
                        "description": "failed: inference_rejected or inference_backend_failure; a retry with the same key runs again",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    },
                    "503": {
                        "description": "error: service_unavailable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "504": {
                        "description": "failed: inference_backend_timeout or inference_deadline_exceeded; a retry with the same key runs again",
                        "schema": {
                            "$ref": "#/definitions/dto.InferenceResponse"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Analyse an image snapshot",
                "tags": [
                    "vision"
                ]
            }
        },
        "/v1/webrtc/admin-token": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "description": "Signed with the project key and valid for 10 minutes: roomAdmin on the room, roomCreate and roomList. api_urls lists the nodes with a joined participant of the room; call RoomService there directly.",
                "parameters": [
                    {
                        "description": "Room",
                        "in": "body",
                        "name": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/dto.WebRTCAdminTokenRequest"
                        }
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.WebRTCAdminTokenResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_body",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: project_archived",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "503": {
                        "description": "error: registry_sync_pending (retry later)",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Room admin token",
                "tags": [
                    "webrtc"
                ]
            }
        },
        "/v1/webrtc/token": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "description": "grants narrows the participant: can_publish, can_subscribe and can_publish_data default to true, room_admin to false. An extended token keeps them.",
                "parameters": [
                    {
                        "description": "Room and participant",
                        "in": "body",
                        "name": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/dto.WebRTCTokenRequest"
                        }
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.WebRTCTokenResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_body, invalid_webhook_url",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "403": {
                        "description": "error: room_participant_limit",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: project_archived",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "429": {
                        "description": "error: concurrency_limit",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "503": {
                        "description": "error: registry_sync_pending, nodes_unavailable (retry later)",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Create a WebRTC token",
                "tags": [
                    "webrtc"
                ]
            }
        },
        "/v1/webrtc/token/extend": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "description": "A participant whose token expired is removed from the room one minute after the\nexpiry; extend before then. Later extensions answer 409 session_not_extendable.",
                "parameters": [
                    {
                        "description": "Session and minutes",
                        "in": "body",
                        "name": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/dto.WebRTCExtendRequest"
                        }
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.WebRTCExtendResponse"
                        }
                    },
                    "400": {
                        "description": "error: invalid_body",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "401": {
                        "description": "error: invalid_api_key",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "402": {
                        "description": "error: insufficient_balance",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "404": {
                        "description": "error: session_not_found",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    },
                    "409": {
                        "description": "error: session_not_extendable",
                        "schema": {
                            "$ref": "#/definitions/responses.ErrorBody"
                        }
                    }
                },
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "summary": "Extend a WebRTC token",
                "tags": [
                    "webrtc"
                ]
            }
        }
    },
    "securityDefinitions": {
        "ApiKeyAuth": {
            "description": "Hosted API key in `Authorization: Bearer \u003ckey\u003e:\u003csecret\u003e`",
            "in": "header",
            "name": "Authorization",
            "type": "apiKey"
        }
    },
    "swagger": "2.0"
}