{"openapi": "3.1.0", "info": {"title": "IPN MAX \u00b7 Worker API", "version": "v1", "description": "\u0412\u044b\u0434\u0430\u0447\u0430 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 MAX \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443, \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 SMS-\u043a\u043e\u0434\u0430, \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430."}, "servers": [{"url": "/"}], "security": [{"BearerAuth": []}, {"ApiKeyAuth": []}], "x-ipn": {"api_rate_limit": 120, "code_timeout": 180, "lease_timeout": 900, "max_body_bytes": 16384}, "paths": {"/v1/health": {"get": {"summary": "\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c API", "responses": {"200": {"description": "\u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442", "content": {"application/json": {"schema": {"type": "object", "properties": {"ok": {"const": true}, "service": {"const": "ipn-max"}, "time": {"type": "integer"}}}}}}, "500": {"description": "\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "security": []}}, "/v1/numbers/next": {"post": {"summary": "\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u043e\u043c\u0435\u0440", "responses": {"200": {"description": "\u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NumberResult"}}}}, "400": {"description": "\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u043e\u0442\u043e\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "\u041d\u043e\u043c\u0435\u0440 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0438\u043b\u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "409": {"description": "\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434, \u043f\u0430\u0443\u0437\u0430 \u0438\u043b\u0438 \u0438\u0441\u0442\u0451\u043a\u0448\u0438\u0439 \u0441\u0440\u043e\u043a", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "413": {"description": "\u0422\u0435\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 16 KiB", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "415": {"description": "\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f application/json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043b\u0438\u043c\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "500": {"description": "\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["request_id"], "properties": {"request_id": {"type": "string", "minLength": 1, "maxLength": 100, "pattern": "^[a-zA-Z0-9_.:-]+$"}, "service": {"type": "string", "enum": ["max"], "default": "max"}}}}}}}}, "/v1/numbers": {"get": {"summary": "\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u0432\u043e\u0438\u0445 \u0432\u044b\u0434\u0430\u0447", "responses": {"200": {"description": "\u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442", "content": {"application/json": {"schema": {"type": "object", "properties": {"ok": {"const": true}, "numbers": {"type": "array", "items": {"$ref": "#/components/schemas/Number"}}, "next_offset": {"type": "integer"}}}}}}, "400": {"description": "\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u043e\u0442\u043e\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "\u041d\u043e\u043c\u0435\u0440 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0438\u043b\u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "409": {"description": "\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434, \u043f\u0430\u0443\u0437\u0430 \u0438\u043b\u0438 \u0438\u0441\u0442\u0451\u043a\u0448\u0438\u0439 \u0441\u0440\u043e\u043a", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "413": {"description": "\u0422\u0435\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 16 KiB", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "415": {"description": "\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f application/json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043b\u0438\u043c\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "500": {"description": "\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "parameters": [{"name": "after", "in": "query", "schema": {"type": "integer", "minimum": 0, "maximum": 9223372036854775807, "default": 0}}]}}, "/v1/numbers/{id}": {"get": {"summary": "\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u043e\u043c\u0435\u0440\u0430", "responses": {"200": {"description": "\u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NumberResult"}}}}, "400": {"description": "\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u043e\u0442\u043e\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "\u041d\u043e\u043c\u0435\u0440 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0438\u043b\u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "409": {"description": "\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434, \u043f\u0430\u0443\u0437\u0430 \u0438\u043b\u0438 \u0438\u0441\u0442\u0451\u043a\u0448\u0438\u0439 \u0441\u0440\u043e\u043a", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "413": {"description": "\u0422\u0435\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 16 KiB", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "415": {"description": "\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f application/json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043b\u0438\u043c\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "500": {"description": "\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "minimum": 1, "maximum": 999999999999}}]}}, "/v1/numbers/{id}/code": {"get": {"summary": "\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 SMS-\u043a\u043e\u0434", "responses": {"200": {"description": "\u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NumberResult"}}}}, "400": {"description": "\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u043e\u0442\u043e\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "\u041d\u043e\u043c\u0435\u0440 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0438\u043b\u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "409": {"description": "\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434, \u043f\u0430\u0443\u0437\u0430 \u0438\u043b\u0438 \u0438\u0441\u0442\u0451\u043a\u0448\u0438\u0439 \u0441\u0440\u043e\u043a", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "413": {"description": "\u0422\u0435\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 16 KiB", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "415": {"description": "\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f application/json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043b\u0438\u043c\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "500": {"description": "\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "minimum": 1, "maximum": 999999999999}}]}}, "/v1/numbers/{id}/request-code": {"post": {"summary": "\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c SMS-\u043a\u043e\u0434 \u0443 \u0441\u0434\u0430\u0442\u0447\u0438\u043a\u0430", "responses": {"200": {"description": "\u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NumberResult"}}}}, "400": {"description": "\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u043e\u0442\u043e\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "\u041d\u043e\u043c\u0435\u0440 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0438\u043b\u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "409": {"description": "\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434, \u043f\u0430\u0443\u0437\u0430 \u0438\u043b\u0438 \u0438\u0441\u0442\u0451\u043a\u0448\u0438\u0439 \u0441\u0440\u043e\u043a", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "413": {"description": "\u0422\u0435\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 16 KiB", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "415": {"description": "\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f application/json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043b\u0438\u043c\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "500": {"description": "\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["version"], "properties": {"version": {"type": "integer", "minimum": 1, "maximum": 5}}}}}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "minimum": 1, "maximum": 999999999999}}]}}, "/v1/numbers/{id}/status": {"post": {"summary": "\u041f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438", "responses": {"200": {"description": "\u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NumberResult"}}}}, "400": {"description": "\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u043e\u0442\u043e\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "\u041d\u043e\u043c\u0435\u0440 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0438\u043b\u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "409": {"description": "\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434, \u043f\u0430\u0443\u0437\u0430 \u0438\u043b\u0438 \u0438\u0441\u0442\u0451\u043a\u0448\u0438\u0439 \u0441\u0440\u043e\u043a", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "413": {"description": "\u0422\u0435\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 16 KiB", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "415": {"description": "\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f application/json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043b\u0438\u043c\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "500": {"description": "\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "additionalProperties": false, "required": ["status"], "properties": {"status": {"type": "string", "enum": ["blocked", "busy", "cancelled", "fraud", "invalid_code", "rereg", "reregister", "success", "timeout"], "description": "reregister \u2014 \u043f\u0435\u0440\u0435\u0440\u0435\u0433; rereg \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0435\u0433\u043e \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c. \u0412\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 Telegram-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435."}, "version": {"type": "integer", "minimum": 1, "maximum": 5}}, "allOf": [{"if": {"properties": {"status": {"enum": ["success", "invalid_code"]}}}, "then": {"required": ["version"]}}]}}}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "minimum": 1, "maximum": 999999999999}}]}}, "/v1/actions": {"get": {"summary": "\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430", "responses": {"200": {"description": "\u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442", "content": {"application/json": {"schema": {"type": "object", "properties": {"ok": {"const": true}, "events": {"type": "array", "items": {"$ref": "#/components/schemas/Event"}}, "next_offset": {"type": "integer"}}}}}}, "400": {"description": "\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "401": {"description": "\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u043e\u0442\u043e\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "\u041d\u043e\u043c\u0435\u0440 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u0438\u043b\u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "409": {"description": "\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434, \u043f\u0430\u0443\u0437\u0430 \u0438\u043b\u0438 \u0438\u0441\u0442\u0451\u043a\u0448\u0438\u0439 \u0441\u0440\u043e\u043a", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "413": {"description": "\u0422\u0435\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 16 KiB", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "415": {"description": "\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f application/json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "429": {"description": "\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u043b\u0438\u043c\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "500": {"description": "\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}, "parameters": [{"name": "after", "in": "query", "schema": {"type": "integer", "minimum": 0, "maximum": 9223372036854775807, "default": 0}}, {"name": "limit", "in": "query", "schema": {"type": "integer", "minimum": 1, "maximum": 200, "default": 100}}]}}}, "components": {"securitySchemes": {"BearerAuth": {"type": "http", "scheme": "bearer"}, "ApiKeyAuth": {"type": "apiKey", "in": "header", "name": "X-API-Key"}}, "schemas": {"Number": {"type": "object", "required": ["id", "phone", "operator", "operator_source", "region", "status", "code_version", "code_deadline", "lease_until", "created_at", "updated_at", "service", "needs_action", "code"], "properties": {"id": {"type": "integer", "minimum": 1}, "phone": {"type": "string", "pattern": "^79[0-9]{9}$"}, "operator": {"type": "string"}, "operator_source": {"type": "string", "enum": ["def_registry", "mnp"]}, "region": {"type": "string"}, "status": {"type": "string", "enum": ["queued", "reserved", "awaiting_code", "code_received", "invalid_code", "success", "fraud", "reregister", "busy", "blocked", "cancelled", "timeout"]}, "code_version": {"type": "integer", "minimum": 0, "maximum": 5}, "code_deadline": {"type": ["integer", "null"]}, "lease_until": {"type": ["integer", "null"]}, "created_at": {"type": "integer"}, "updated_at": {"type": "integer"}, "service": {"type": "string", "const": "max"}, "needs_action": {"type": ["string", "null"], "enum": ["code", null]}, "code": {"type": ["string", "null"], "pattern": "^[0-9]{6}$", "minLength": 6, "maxLength": 6, "description": "SMS-\u043a\u043e\u0434: \u0441\u0442\u0440\u043e\u043a\u0430 \u0440\u043e\u0432\u043d\u043e \u0438\u0437 6 \u0446\u0438\u0444\u0440 \u0441 \u0432\u0435\u0434\u0443\u0449\u0438\u043c\u0438 \u043d\u0443\u043b\u044f\u043c\u0438. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 number.code \u0431\u0435\u0437 JSON-\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0447\u0438\u0441\u043b\u043e; \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0443 \u0432\u044b\u0434\u0430\u0447\u0438"}}, "example": {"id": 123, "phone": "79141234567", "operator": "\u041c\u0422\u0421", "operator_source": "def_registry", "region": "\u042f\u043a\u0443\u0442\u0438\u044f", "status": "reserved", "code_version": 0, "code_deadline": null, "lease_until": 1800000900, "created_at": 1800000000, "updated_at": 1800000000, "service": "max", "needs_action": null, "code": null}}, "NumberResult": {"type": "object", "required": ["ok", "number"], "properties": {"ok": {"const": true}, "number": {"anyOf": [{"$ref": "#/components/schemas/Number"}, {"type": "null"}]}}}, "Error": {"type": "object", "required": ["ok", "error"], "properties": {"ok": {"const": false}, "error": {"type": "object", "required": ["code", "message"], "properties": {"code": {"type": "string"}, "message": {"type": "string"}}}}}, "Event": {"type": "object", "properties": {"id": {"type": "integer"}, "number_id": {"type": "integer"}, "type": {"type": "string", "enum": ["number_reserved", "code_required", "code_received", "status_changed"]}, "payload": {"type": "object"}, "created_at": {"type": "integer"}}}}}}