Skip to main content

Testnet (No Auth Required)

For testnet, make requests without authentication:
curl https://api-testnet.mayybee.com/health

Mainnet (API Key Required)

Include your API key in the X-API-Key header:
curl -H "X-API-Key: may_your_api_key_here" \
     https://api.mayybee.com/api/orders

JWT Authentication

For admin operations, use JWT authentication:
1

Get Auth Message

curl "https://api-testnet.mayybee.com/api/auth/message?wallet=0xYourWallet"
Response:
{
  "message": "Sign this message to authenticate...",
  "nonce": "0x..."
}
2

Sign and Login

Sign the message with your wallet, then:
curl -X POST https://api-testnet.mayybee.com/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "wallet": "0xYourWallet",
    "signature": "0xSignedMessage",
    "message": "The message you signed"
  }'
Response:
{
  "token": "eyJhb...",
  "expiresIn": "24h"
}
3

Use JWT Token

curl -H "Authorization: Bearer eyJhb..." \
     https://api-testnet.mayybee.com/api/auth/me