---
title: "Verify SIWE signature"
method: POST
path: "/api/v1/auth/challenge"
tags: ["Authentication"]
---

# Verify SIWE signature

`POST /api/v1/auth/challenge`

## Request body

- object
  - `message` string, required — SIWE message containing the nonce
  - `signature` string, required — EOA signature or EIP-1271 contract signature
  - `ttlInSeconds` number — Represents the duration of the token in seconds. If not provided, defaults to 1 hour. Maximum 24 hours.

## Response `200`

Signature verified successfully

- object
  - `token` string — JWT token for API authentication

## Other responses

- `401` — Invalid signature
- `500` — Internal Server Error

---

[API](https://skmtc.net/gnosispay/apis/gnosispay-api.md) · [All operations](https://skmtc.net/gnosispay/apis/gnosispay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gnosispay/gnosispay-api/versions/e0a09962c187/schema)
