curl -X POST https://oro-tradebook-devnet.up.railway.app/api/auth/api-key \ -H "Content-Type: application/json" \ -d '{ "challengeId": "abc123-def456", "signature": "base58EncodedSignature", "keyName": "My Trading Key" }'
{ "success": true, "data": { "apiKey": "uuid-api-key-value", "id": "uuid-api-key-value", "scope": ["PARTNER_EXECUTIVE_AUTHORITY"], "name": "My Trading Key", "walletAddress": "YourSolanaWalletAddress", "createdAt": "2024-01-15T10:30:00.000Z" } }
Creates a new API key after successful challenge verification.
/api/auth/challenge
Show properties