Skip to main content

Base URL

All API requests use the following base URL:

Authentication

Authenticate all requests with your API key in the x-api-key header:
There are two types of API keys:
  • Profile-scoped keys — Tied to a Wallet Profile. Can read and write (register wallets, plan operations, submit transactions) within that profile.
  • Admin keys — Organization-wide, read-only. Can list wallets and view aggregate data across all profiles. Cannot create wallets or operations.
See Authentication for details on generating each type.
Keep your API key secure. Never expose it in client-side code or commit it to version control.

Response Format

Success Responses

Successful responses return data directly (no envelope):
HTTP status codes:
  • 200 OK - Request succeeded
  • 201 Created - Resource created
  • 202 Accepted - Request accepted for processing

Error Responses

Error responses include a message and error code:
HTTP status codes:
  • 400 Bad Request - Invalid parameters (VALIDATION_FAILED)
  • 401 Unauthorized - Invalid or missing API key
  • 403 Forbidden - API key disabled, expired, or used from an address outside its allowlist; organization pending approval or suspended; or not allowed
  • 404 Not Found - Resource not found
  • 429 Too Many Requests - Rate limit exceeded (Retry-After is the seconds to wait)
  • 409 Conflict - The request conflicts with the resource’s state (for example, OPERATION_ALREADY_SUBMITTED from submit signed)
  • 500 Internal Server Error - Server error
  • 503 Service Unavailable - Temporarily unable to complete the request (INTERNAL_ERROR); retry

Error Codes

Client account codes

For organizations that open client accounts. Other organizations get CLIENT_ACCOUNTS_NOT_ENABLED from Create Account and from a register with accountId, and ACCOUNT_NOT_FOUND from the other account calls.

Rate Limits

API requests are rate limited per API key, per minute. A separate ceiling applies to the whole organization. When rate limited, the response is 429 with code RATE_LIMIT_EXCEEDED. The Retry-After header is the number of seconds to wait before retrying. Implement exponential backoff, and do not retry sooner than Retry-After.

Amount Convention

All monetary amounts in the API are represented as strings in base units (smallest denomination). Amounts are always strings, never numbers, to preserve precision.

Transaction Submission

After signing a transaction, you have two options: Most integrations should use submit-signed for simplicity. Use submit-hash if you need control over the broadcast (e.g., priority fees, custom RPC endpoints).

Sandbox Environment

For testing, use the sandbox base URL:
Sandbox API keys have the prefix rfk_sandbox_. See the Sandbox guide for details.

Supported Blockchains

Request Examples

cURL

JavaScript (fetch)

Python (requests)

Available Resources

SDK Recommendation

For TypeScript/JavaScript projects, we recommend using the official SDK:
The SDK provides:
  • Full TypeScript types
  • Wallet registration and management
  • Automatic error handling with RebelfiError
  • Flexible wallet identification (walletId, walletAddress, or userId)
See the SDK documentation for details.