API reference/Authentication
Request a challenge
POST
https://auth.cadmos.finance/v1/external-auth/challengeAnswers 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.
Authentication
This endpoint accepts requests without a bearer token.
Request body
application/json · ChallengeRequest
Only the listed properties are accepted.
identityIdstringRequiredThe 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}$addressstringRequiredYour signing key's address, as registered with Cadmos.
pattern ^0x[0-9a-fA-F]{40}$
Responses
The challenge.
Response schema · Challenge
challengeIdstringRequiredformat uuididentityIdstringRequiredformat uuidmessagestringRequiredThe sign-in message (SIWE). Sign it unchanged.
length at most 2000expiresAtstringRequiredformat date-time
Next in api referenceExchange a signature