# TokenRequest

The signed challenge submitted for authentication.

[Definition in OpenAPI](https://api.cadmospay.com/static/api/gateway-machine-api.json#/components/schemas/TokenRequest)

## JSON schema

```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "challengeId",
    "message",
    "signature"
  ],
  "properties": {
    "challengeId": {
      "type": "string",
      "format": "uuid"
    },
    "message": {
      "type": "string",
      "maxLength": 2000,
      "description": "The challenge's message, unchanged."
    },
    "signature": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{130}$",
      "description": "Your EIP-191 signature of the message."
    }
  }
}
```
