{"openapi":"3.1.0","info":{"title":"CodeIn Numbers API","version":"1.0.0"},"paths":{"/":{"get":{"summary":"Docs Home","description":"Human-readable API documentation (RU/EN).","operationId":"docs_home__get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"ru","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/docs":{"get":{"summary":"Docs Alias","description":"Same page as `/` — old Swagger path redirected in content.","operationId":"docs_alias_docs_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"ru","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/get_services":{"get":{"summary":"Get Services","description":"Public catalog with global markup (no personal loyalty).","operationId":"get_services_api_get_services_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Get Services Api Get Services Get"}}}}}}},"/api/get_balance":{"post":{"summary":"Get Balance","operationId":"get_balance_api_get_balance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Balance Api Get Balance Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/get_number":{"post":{"summary":"Get Number","operationId":"get_number_api_get_number_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetNumberBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Number Api Get Number Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/get_order":{"post":{"summary":"Get Order","operationId":"get_order_api_get_order_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrderBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Order Api Get Order Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"GetNumberBody":{"properties":{"token":{"type":"string","minLength":8,"title":"Token"},"service_id":{"type":"string","minLength":1,"title":"Service Id"}},"type":"object","required":["token","service_id"],"title":"GetNumberBody"},"GetOrderBody":{"properties":{"token":{"type":"string","minLength":8,"title":"Token"},"order_id":{"type":"string","minLength":1,"title":"Order Id"}},"type":"object","required":["token","order_id"],"title":"GetOrderBody"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"TokenBody":{"properties":{"token":{"type":"string","minLength":8,"title":"Token"}},"type":"object","required":["token"],"title":"TokenBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}