API reference/Authentication
Exchange a signature
POST
https://auth.cadmos.finance/v1/external-auth/tokenA challenge is used once. Send the token as Authorization: Bearer <accessToken> to api.cadmospay.com only.
Authentication
This endpoint accepts requests without a bearer token.
Save the signed challenge in signed-challenge.json. Follow the sign-in guide to generate it.
Request body
application/json · TokenRequest
Only the listed properties are accepted.
challengeIdstringRequiredformat uuidmessagestringRequiredThe challenge's message, unchanged.
length at most 2000signaturestringRequiredYour EIP-191 signature of the message.
pattern ^0x[0-9a-fA-F]{130}$
Responses
The access token.
Response schema · Token
accessTokenstringRequiredtokenTypestringRequiredone of BearerexpiresInintegerRequiredSeconds: 900.
identityIdstringRequiredformat uuid
Next in api referenceCreate a link