Skip to content
API reference/Authentication

Request a challenge

POSThttps://auth.cadmos.finance/v1/external-auth/challenge

Answers a sign-in message that expires in two minutes. Sign it unchanged with EIP-191 (signMessage) using your key. Check before signing that it names auth.cadmos.finance, your identity and the audience cadmos-pay-be.

Jump to request body

Authentication

This endpoint accepts requests without a bearer token.

Request body

application/json · ChallengeRequest

Only the listed properties are accepted.

identityIdstringRequired

The identity id Cadmos gave you.

pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
addressstringRequired

Your signing key's address, as registered with Cadmos.

pattern ^0x[0-9a-fA-F]{40}$

Responses

The challenge.

Response schema · Challenge

challengeIdstringRequired
format uuid
identityIdstringRequired
format uuid
messagestringRequired

The sign-in message (SIWE). Sign it unchanged.

length at most 2000
expiresAtstringRequired
format date-time
Next in api referenceExchange a signature

We use necessary cookies to run this site. With your permission, we also use analytics and advertising technologies to measure visits and downloads.