# Create wallet sign-in message

Builds a Sign In With Solana message with a single-use nonce for the owner's wallet to sign. Console session or API key with wallet:connect.

`POST /v1/wallets/connect/challenge`

Builds a Sign In With Solana message with a single-use nonce for the owner's wallet to sign. Console session or API key with wallet:connect.

Requires permission `wallet:connect`.

## Request body

```json
{
  "address": "string"
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.

Example 200 response:

```json
{
  "message": "app.52-28-238-205.sslip.io wants you to sign in with your Solana account:\n7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU\n\nConnect your wallet to Acme Research. This does not move funds.\n\nURI: https://app.52-28-238-205.sslip.io\nVersion: 1\nChain ID: devnet\nNonce: 866616b78d...(truncated)",
  "nonce": "866616b78d4a44e26af8af5ab0d1a1367958a868",
  "statement": "Connect your wallet to Acme Research. This does not move funds.",
  "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
}
```
