MARS documentation
API reference

Siws verify

Contract and client context

Operation: siws_verify · HTTP: POST /v1/auth/siws/verify

Use an operator-supplied registry base URL. Request execution is disabled in this documentation explorer. Generated request snippets are templates, not signed or authorized submissions.

Exact operation definition
{
  "operationId": "siws_verify",
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/SiwsVerifyRequest"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/SiwsVerifyResponse"
          }
        }
      },
      "description": "Verified identity and opaque MARS session"
    },
    "401": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "SIWS verification failed"
    },
    "502": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "GAL lookup failed"
    }
  },
  "tags": [
    "auth"
  ]
}

Resolve schema references against the complete OpenAPI document. Standalone schemas and hashes are generated from the same checked-in source.

POST/v1/auth/siws/verify

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for POST /v1/auth/siws/verify.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/auth/siws/verify" \  -H "Content-Type: application/json" \  -d '{    "audience": "string",    "challenge": {      "audience": "string",      "chainId": "string",      "expiresAtMs": 0,      "hmrDid": "string",      "issuedAtMs": 0,      "kind": "string",      "nonce": "string",      "origin": "string",      "requestId": "string",      "version": 0    },    "response": {      "chainId": "string",      "digest": "string",      "kind": "string",      "message": "string",      "origin": "string",      "signature": "string",      "signerDid": "string",      "signerPublicKey": "string",      "transcript": "string"    }  }'
{  "expiresAtMs": 0,  "hmrDid": "string",  "rootDid": "string",  "rootKind": "string",  "sessionExpiresAtMs": 0,  "sessionToken": "string",  "signerPublicKey": "string"}