Skip to main content
POST
/
agent
/
v2
/
auth
/
callback
Complete agent authentication callback
curl --request POST \
  --url https://public-api-v2.bags.fm/api/v1/agent/v2/auth/callback \
  --header 'Content-Type: application/json' \
  --data '
{
  "signature": "<string>",
  "address": "<string>",
  "nonce": "<string>",
  "keyName": "<string>"
}
'
{
  "success": true,
  "response": {
    "apiKey": "<string>",
    "keyId": "<string>",
    "isSignup": true
  }
}

Body

application/json
signature
string
required

Base58-encoded Ed25519 signature of the decoded challenge message bytes

address
string
required

Solana wallet public key (base58) used to create the signature

nonce
string
required

Nonce returned by /agent/v2/auth/init

keyName
string
required

Human-readable label for the API key to be created

Response

Successfully completed callback

success
boolean
required
Example:

true

response
object