Authentication
Operations for generating and managing API tokens
Generate a JWT token for SDK authentication.
Authentication
This endpoint uses client credentials (not HMAC signature). You must provide:
x-client-id: Your project's client IDx-client-secret: Your project's client secret
Important Notes:
Tokens expire after the specified duration (default: 1 hour)
Use this endpoint from your backend to obtain tokens for frontend SDK usage
Never expose your client secret in client-side code
Your project client ID from orda dashboard
HMAC-SHA256 signature of canonical request body using your client secret
Unix timestamp in milliseconds for replay protection (recommended)
Your project's client ID
prj_abc123def456ghi789Your project's client secret
sec_xyz789abc123def456Token expiration time in seconds (default 3600 = 1 hour)
3600Example: 3600Token generated successfully
JWT token for SDK authentication
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...ISO 8601 timestamp when the token expires
2025-01-15T11:00:00.000ZUnauthorized - Invalid or missing credentials
Too Many Requests - Rate limit exceeded
Internal Server Error
POST /v1/tokens HTTP/1.1
Host: api.orda.network
x-client-id: prj_abc123def456ghi789
x-signature: YOUR_API_KEY
x-timestamp: YOUR_API_KEY
x-client-secret: sec_xyz789abc123def456
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresAt": "2025-01-15T11:00:00.000Z"
}Last updated