Skip to content
API reference/Authentication

Exchange a signature

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

A challenge is used once. Send the token as Authorization: Bearer <accessToken> to api.cadmospay.com only.

Jump to request body

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.

challengeIdstringRequired
format uuid
messagestringRequired

The challenge's message, unchanged.

length at most 2000
signaturestringRequired

Your EIP-191 signature of the message.

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

Responses

The access token.

Response schema · Token

accessTokenstringRequired
tokenTypestringRequired
one of Bearer
expiresInintegerRequired

Seconds: 900.

identityIdstringRequired
format uuid
Next in api referenceCreate a link

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