POST
/
v1
/
auth
/
verify
Verify
curl --request POST \
  --url https://api.amm.flashnet.xyz/v1/auth/verify \
  --header 'Content-Type: application/json' \
  --data '{
  "publicKey": "021eec911553028dded1ec644144cd3afee9d9bfe7846af3cf8e6d84f4b3102389",
  "signature": "304402203a7e5d4f8b2c9a1e6f0d5b8c4a9e7f2d1c8b5a4e9f0d6c5b3a2e1d0c9b8a7f02201f2e3d4c5b6a7980e9f0a1b2c3d4e5f67889a0b1c2d3e4f5a6b7c8d9e0f1a2b3"
}'
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwMjFlZWM5MTE1NTMwMjhkZGVkMWVjNjQ0MTQ0Y2QzYWZlZTlkOWJmZTc4NDZhZjNjZjhlNmQ4NGY0YjMxMDIzODkiLCJleHAiOjE3MDUzNDUyMDB9.dGhlc2VhcmVub3RyZWFsdG9rZW5zYnV0anVzdGV4YW1wbGVz"
}

Body

application/json

The public key and signature to verify ownership

Request body for verifying a signed authentication challenge.

Contains the public key and signature proving ownership of the corresponding private key. The signature must be created by signing the challenge string received from the /v1/auth/challenge endpoint.

publicKey
string
required

The public key used to sign the challenge. Must match the public key used in the challenge request.

Example:

"021eec911553028dded1ec644144cd3afee9d9bfe7846af3cf8e6d84f4b3102389"

signature
string
required

Signature of the challenge string, encoded as hex. Must be a valid ECDSA signature created with the private key corresponding to the public key.

Example:

"304402203a7e5d4f8b2c9a1e6f0d5b8c4a9e7f2d1c8b5a4e9f0d6c5b3a2e1d0c9b8a7f02201f2e3d4c5b6a7980e9f0a1b2c3d4e5f67889a0b1c2d3e4f5a6b7c8d9e0f1a2b3"

Response

Challenge verified successfully and JWT token issued

Response containing the JWT access token for authenticated API calls.

accessToken
string
required

JWT access token for making authenticated API calls. This token should be included in the Authorization header as "Bearer <token>". The token has a limited lifetime and will need to be renewed.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwMjFlZWM5MTE1NTMwMjhkZGVkMWVjNjQ0MTQ0Y2QzYWZlZTlkOWJmZTc4NDZhZjNjZjhlNmQ4NGY0YjMxMDIzODkiLCJleHAiOjE3MDUzNDUyMDB9.dGhlc2VhcmVub3RyZWFsdG9rZW5zYnV0anVzdGV4YW1wbGVz"