{ "info": { "title": "OpenAPI Endpoints", "version": "v1.0" }, "paths": { "/token": { "post": { "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OpenApiAuthenticationResponse" } } }, "description": "Success" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResultEntity" } } }, "description": "Invalid client secret" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResultEntity" } } }, "description": "Invalid client id" } }, "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "required": [ "client_id", "client_secret" ], "properties": { "client_id": { "type": "string" }, "client_secret": { "type": "string" } } } } } } } } }, "openapi": "3.0.1", "components": { "schemas": { "ErrorResultEntity": { "type": "object", "properties": { "error": { "type": "string" }, "trace_id": { "type": "string" }, "error_uri": { "type": "string" }, "timestamp": { "type": "string" }, "error_codes": { "type": "array", "items": { "type": "integer" } }, "correlation_id": { "type": "string" }, "error_description": { "type": "string" } } }, "OpenApiAuthenticationResponse": { "type": "object", "properties": { "expires_in": { "type": "integer", "format": "int32" }, "token_type": { "type": "string" }, "access_token": { "type": "string" }, "ext_expires_in": { "type": "integer", "format": "int32" } } } } } }