{ "operationId": "requestToken", "summary": "Request a new access token from credentials", "tags": ["tokens"], "requestBody": { "description": "Credentials Payload", "required": true, "content": { "application/json": { "schema": { "additionalProperties": false, "properties": { "identity": { "minLength": 1, "type": "string", "example": "me@example.com" }, "scope": { "minLength": 1, "type": "string", "enum": ["user"], "example": "user" }, "secret": { "minLength": 1, "type": "string", "example": "bigredhorsebanana" } }, "required": ["identity", "secret"], "type": "object" }, "example": { "identity": "me@example.com", "secret": "bigredhorsebanana" } } } }, "responses": { "200": { "content": { "application/json": { "examples": { "default": { "value": { "expires": "2025-02-04T20:40:46.340Z", "token": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.ey...xaHKYr3Kk6MvkUjcC4" } } }, "schema": { "$ref": "../../components/token-object.json" } } }, "description": "200 response" } } }