---
title: "Nonce"
method: GET
path: "/api/v2/{portalId}/auth/nonce"
tags: ["Auth"]
---

# Nonce

`GET /api/v2/{portalId}/auth/nonce`

## Request

- Base URL: `https://portal-api.magna.so`
- URL: `https://portal-api.magna.so/api/v2/{portalId}/auth/nonce`
- Auth: none declared

Generates a nonce for the given wallet address to be used in the authentication process. The nonce should be included in the signed message (CAIP-122)

## Path parameters

- `portalId` string, uuid, required

## Query parameters

- `wallet` string, required

## Response `200`

Ok

- object: Ok
  - `nonce` string, required: nonce to be signed by the wallet owner

## Other responses

- `400`: Client Error
- `500`: Server Error
- `502`: Upstream Error — the portal configuration service could not be reached. Safe to retry.

---

[API](https://skmtc.dev/magna/apis/magna-portal-api.md) - [All operations](https://skmtc.dev/magna/apis/magna-portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/magna/apis/magna-portal-api/revisions/50f736d73198?raw)
