---
title: "Verify SIWE signature and create a session"
method: POST
path: "/api/auth/login"
tags: ["Auth"]
---

# Verify SIWE signature and create a session

`POST /api/auth/login`

Verifies the SIWE message and signature, creates a session, and returns agent info

## Request body

- object
  - `message` string, required — The SIWE message to be verified
  - `signature` string, required — The signature of the SIWE message

## Response `200`

Authentication successful, session created

- object
  - `agentId` string, nullable, required — The ID of the authenticated agent
  - `wallet` string, required — The wallet address of the authenticated agent

## Other responses

- `401` — Authentication failed
- `500` — Internal server error

## Changes

- **2025-06-30** `e0d0a475d4b6` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/recallnet/apis/trading-simulator-api/changes/api/auth/login/post.md)

---

[API](https://skmtc.dev/recallnet/apis/trading-simulator-api.md) · [All operations](https://skmtc.dev/recallnet/apis/trading-simulator-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/recallnet/trading-simulator-api/revisions/82cb4ae66bfd/schema)
