Authentication Flow
Request a nonce
Call
GET /gnosispay/auth/nonce to retrieve a one-time nonce. No authentication is required for this endpoint.Sign the SIWE message
Construct a SIWE message using the nonce and sign it with the customer’s wallet. The message must use chain ID 100 (Gnosis Chain).
Verify the signature
Call
POST /gnosispay/auth/challenge with the signed message and signature. The API returns a token on successful verification.Step 1: Get a nonce
Step 2: Sign the SIWE message
Construct and sign the SIWE message on the client side. The message must target Gnosis Chain (chain ID100).
Step 3: Verify the signature
message— the full SIWE message stringsignature— the wallet signaturettlInSeconds(optional) — token time-to-live in seconds
Step 4: Exchange for a GnosisRamp JWT
Use the token from Step 3 as thesubject_token when creating a customer:
access_token JWT that you use for all customer-scoped API calls, identical to the OIDC flow.