# Challenge

A single-use message for the registered signing key.

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

## JSON schema

```json
{
  "type": "object",
  "required": [
    "challengeId",
    "identityId",
    "message",
    "expiresAt"
  ],
  "properties": {
    "challengeId": {
      "type": "string",
      "format": "uuid"
    },
    "identityId": {
      "type": "string",
      "format": "uuid"
    },
    "message": {
      "type": "string",
      "maxLength": 2000,
      "description": "The sign-in message (SIWE). Sign it unchanged."
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}
```

## Example

```json
{
  "identityId": "a08cccbc-f085-4289-bd48-9b2fb55acd14",
  "challengeId": "509ae372-5c3e-45f2-a848-b311680b4da3",
  "message": "<exact sign-in message returned by Cadmos>",
  "expiresAt": "2026-11-17T09:02:00.000Z"
}
```
