---
title: "Get a SIWE nonce"
method: GET
path: "/siwe/nonce"
tags: ["auth", "siwe"]
---

# Get a SIWE nonce

`GET /siwe/nonce`

## Request

- Base URL: `https://api.namefi.io/v-next`
- URL: `https://api.namefi.io/v-next/siwe/nonce`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Generate and store a replay-protected nonce for a wallet address before signing a SIWE message.

## Query parameters

- `signerAddress` string, required: Wallet address that will sign the SIWE message.

## Headers

- `x-namefi-eip7702-account` string
- `x-namefi-eip1271-account` string
- `x-namefi-erc1271-account` string

## Response `200`

OK

- union: Result of requesting a nonce for a SIWE sign-in flow.
  - object: Successful SIWE nonce response.
    - `valid` unknown, required
    - `nonce` string, required: Generated nonce to embed in the SIWE message.
  - object: Failed SIWE nonce response.
    - `valid` unknown, required
    - `error` string, required: Reason the nonce could not be issued.

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `406`: 406
- `408`: 408
- `409`: 409
- `412`: 412
- `429`: 429
- `500`: 500

---

[API](https://skmtc.dev/namefi/apis/namefi-api.md) · [All operations](https://skmtc.dev/namefi/apis/namefi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/namefi/apis/namefi-api/revisions/3c7c3ade95c9?raw)
