API reference
Siws challenge
Contract and client context
Operation: siws_challenge · HTTP: POST /v1/auth/siws/challenge
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_challenge",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiwsChallengeRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SiwsChallengeResponse"
}
}
},
"description": "Single-use SIWS challenge"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Invalid challenge request"
}
},
"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/challengeRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request body for POST /v1/auth/siws/challenge.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/auth/siws/challenge" \ -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", "rootDid": "string", "version": 0 }}