---
title: "Get SIWE Login Challenge"
method: POST
path: "/v1/auth/erc-4361/login/get_challenge"
tags: ["Auth"]
---

# Get SIWE Login Challenge

`POST /v1/auth/erc-4361/login/get_challenge`

Get a Sign-In with Ethereum (ERC-4361) challenge for login.

## Request body

- LoginGetChallengeRequest
  - `walletAddress` string, required — The wallet address requesting to sign in
  - `chainId` '1' | '43114', required — EVM chain ID (1=Ethereum, 43114=Avalanche)

## Response `200`

Challenge message for signing

- object
  - `success` boolean, required — Whether the request was successful
  - `error` string — Error message, present only on failure
  - `error_code` string — Semantic error code. See each endpoint's error responses for the specific codes it can return.
  - `deprecated` string — Deprecation notice, if applicable
  - `result` AuthChallengeResult
    - `id` string, required — Challenge ID
    - `message` string, required — Message to be signed by the wallet

## Other responses

- `400` — Bad request. The request was malformed or failed validation.
- `429` — Rate limit exceeded. Slow down request frequency.
- `500` — Internal server error.

---

[API](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api.md) · [All operations](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ondoperps/ondo-perps-rest-api/revisions/39df6b2fa672/schema)
