{"openapi": "3.1.0", "info": {"title": "Transdoc public API", "version": "1.0.0", "description": "Read-only API about certified (sworn) translation: languages, prices, delivery, accepted files. No key is required. No order is created and no document must be sent."}, "servers": [{"url": "https://transdoc.fr"}], "paths": {"/api/v1/languages": {"get": {"operationId": "listLanguages", "summary": "Language pairs and price per page (EUR, VAT included)", "parameters": [{"name": "lang", "in": "query", "required": false, "schema": {"type": "string", "enum": ["fr", "en"], "default": "fr"}, "description": "Language of the order link."}], "responses": {"200": {"description": "Offered language pairs.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Languages"}}}}, "429": {"description": "Rate limit reached, see the Retry-After header.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/api/v1/quote": {"get": {"operationId": "estimateQuote", "summary": "Estimate price and delivery date", "parameters": [{"name": "source", "in": "query", "required": true, "schema": {"type": "string"}, "description": "Source language code, e.g. en."}, {"name": "target", "in": "query", "required": false, "schema": {"type": "string", "default": "fr"}, "description": "Target language code."}, {"name": "pages", "in": "query", "required": false, "schema": {"type": "integer", "minimum": 1, "maximum": 100, "default": 1}, "description": "Pages of about 250 words."}, {"name": "priority", "in": "query", "required": false, "schema": {"type": "boolean", "default": false}, "description": "Priority delivery."}, {"name": "paper_original", "in": "query", "required": false, "schema": {"type": "boolean", "default": false}, "description": "Paper original by tracked post."}, {"name": "lang", "in": "query", "required": false, "schema": {"type": "string", "enum": ["fr", "en"], "default": "fr"}, "description": "Language of the order link."}], "responses": {"200": {"description": "Estimate.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Quote"}}}}, "400": {"description": "Missing or invalid parameter.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "Language pair not offered.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "Rate limit reached, see the Retry-After header.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/api/v1/documents": {"get": {"operationId": "documentRequirements", "summary": "Accepted files, delivery times and how to order", "parameters": [{"name": "lang", "in": "query", "required": false, "schema": {"type": "string", "enum": ["fr", "en"], "default": "fr"}, "description": "Language of the order link."}], "responses": {"200": {"description": "Requirements.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Documents"}}}}, "429": {"description": "Rate limit reached, see the Retry-After header.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}}, "components": {"schemas": {"Languages": {"type": "object", "required": ["currency", "pairs", "order_url"], "properties": {"currency": {"type": "string"}, "pairs": {"type": "array", "items": {"type": "object", "required": ["source", "source_name_fr", "source_name_en", "target", "target_name_fr", "target_name_en", "price_per_page_incl_vat"], "properties": {"source": {"type": "string"}, "source_name_fr": {"type": "string"}, "source_name_en": {"type": "string"}, "target": {"type": "string"}, "target_name_fr": {"type": "string"}, "target_name_en": {"type": "string"}, "price_per_page_incl_vat": {"type": "number"}}}}, "order_url": {"type": "string", "format": "uri"}}}, "Quote": {"type": "object", "required": ["currency", "source", "target", "pages", "total_incl_vat", "lines_incl_vat", "estimated_delivery", "notes", "order_url"], "properties": {"currency": {"type": "string"}, "source": {"type": "string"}, "target": {"type": "string"}, "pages": {"type": "integer"}, "total_incl_vat": {"type": "number"}, "lines_incl_vat": {"type": "object", "required": ["translation", "priority", "paper_original", "discount"], "properties": {"translation": {"type": "number"}, "priority": {"type": "number"}, "paper_original": {"type": "number"}, "discount": {"type": "number"}}}, "estimated_delivery": {"type": ["string", "null"], "format": "date-time"}, "notes": {"type": "array", "items": {"type": "string"}}, "order_url": {"type": "string", "format": "uri"}}}, "Documents": {"type": "object", "required": ["accepted_formats", "max_file_size_mb", "max_files", "scan_or_photo_accepted", "delivery_standard_business_days", "delivery_priority_hours", "how_to_order", "order_url"], "properties": {"accepted_formats": {"type": "array", "items": {"type": "string"}}, "max_file_size_mb": {"type": "integer"}, "max_files": {"type": "integer"}, "scan_or_photo_accepted": {"type": "boolean"}, "delivery_standard_business_days": {"type": "integer"}, "delivery_priority_hours": {"type": "integer"}, "how_to_order": {"type": "string"}, "order_url": {"type": "string", "format": "uri"}}}, "Error": {"type": "object", "required": ["error", "message"], "properties": {"error": {"type": "string"}, "message": {"type": "string"}}}}}}