Get a challenge for a wallet to sign
curl --request POST \
--url https://api.floprouter.com/v1/auth/challenge \
--header 'Content-Type: application/json' \
--data '
{
"address": "5F29vNoqgKpXxgUyz4DXifLnfAPQUQCq3ZQXGVjVbxp7sWBS"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({address: '5F29vNoqgKpXxgUyz4DXifLnfAPQUQCq3ZQXGVjVbxp7sWBS'})
};
fetch('https://api.floprouter.com/v1/auth/challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/auth/challenge"
payload = { "address": "5F29vNoqgKpXxgUyz4DXifLnfAPQUQCq3ZQXGVjVbxp7sWBS" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"challenge": "floprouter API key request\nAddress: 5F29vNoqgKpXxgUyz4DXifLnfAPQUQCq3ZQXGVjVbxp7sWBS\nNetwork: devnet (0x99c172c095340ace980631f9123544c6bebd4839f3437e463533422d8be2d631)\nNonce: 3b9122934e5dc30eb8c11bee241bf24c\nIssued: 2026-11-24T03:09:16.132Z\nExpires: 2026-11-24T03:19:16.132Z\nSigning this creates an API key for this address. It does not move funds.",
"expires_at": "2026-11-24T03:19:16.132Z"
}{
"error": {
"code": 400,
"message": "each message needs a role of system, developer, user or assistant (tool messages are not supported)",
"metadata": {
"reason": "invalid_message"
}
}
}{
"error": {
"code": 429,
"message": "chat requests for this key: limit 20 per minute; retry in 41 s",
"metadata": {
"reason": "rate_limited"
}
}
}Auth
Get a challenge for a wallet to sign
POST
/
v1
/
auth
/
challenge
Get a challenge for a wallet to sign
curl --request POST \
--url https://api.floprouter.com/v1/auth/challenge \
--header 'Content-Type: application/json' \
--data '
{
"address": "5F29vNoqgKpXxgUyz4DXifLnfAPQUQCq3ZQXGVjVbxp7sWBS"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({address: '5F29vNoqgKpXxgUyz4DXifLnfAPQUQCq3ZQXGVjVbxp7sWBS'})
};
fetch('https://api.floprouter.com/v1/auth/challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/auth/challenge"
payload = { "address": "5F29vNoqgKpXxgUyz4DXifLnfAPQUQCq3ZQXGVjVbxp7sWBS" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"challenge": "floprouter API key request\nAddress: 5F29vNoqgKpXxgUyz4DXifLnfAPQUQCq3ZQXGVjVbxp7sWBS\nNetwork: devnet (0x99c172c095340ace980631f9123544c6bebd4839f3437e463533422d8be2d631)\nNonce: 3b9122934e5dc30eb8c11bee241bf24c\nIssued: 2026-11-24T03:09:16.132Z\nExpires: 2026-11-24T03:19:16.132Z\nSigning this creates an API key for this address. It does not move funds.",
"expires_at": "2026-11-24T03:19:16.132Z"
}{
"error": {
"code": 400,
"message": "each message needs a role of system, developer, user or assistant (tool messages are not supported)",
"metadata": {
"reason": "invalid_message"
}
}
}{
"error": {
"code": 429,
"message": "chat requests for this key: limit 20 per minute; retry in 41 s",
"metadata": {
"reason": "rate_limited"
}
}
}