Skip to main content
POST
Create API key

Authorizations

X-Api-Key
string
header
required

Management token from the RouteMesh dashboard (Settings → Management Tokens). Required for customer API endpoints (/api-keys, /usage). Tokens are prefixed rmtm_ and scoped to your account. Authenticate by passing the token in the X-Api-Key header. Separate from RPC service keys (rm_), which authenticate dApp traffic to the routing layer.

Body

application/json
allowed_domains
string[]
required

List of allowed origins/domains. Requests from other domains are rejected with 403.

Minimum array length: 1
routing_strategy
enum<string>
required

economy — most competitive prices; performance — fastest routes.

Available options:
economy,
performance
name
string | null

Friendly name for this key (e.g. "Production", "Staging").

Response

API key created (secret returned once)

id
integer
required
customer_id
integer
required
allowed_domains
string[]
required
api_key
string
required

The secret API key. Save this — it is returned only once.

created_at
string<date-time>
required
updated_at
string<date-time>
required
name
string | null
required
routing_strategy
enum<string>
required
Available options:
economy,
performance
active
boolean
required
bypass_credit_check
boolean
required