Skip to main content
POST
Order plans

Authorizations

Authorization
string
header
required

A Custral API key, created in Settings → Developers → Applications, sent as Authorization: Bearer sk_…. The X-Api-Key header is also accepted and takes precedence. Use a secret key (sk_…) from your server; a publishable key (pk_…) may hold only objects:read and usage:write. Never expose a secret key in a browser.

Body

application/json
keys
string[]
required

Every plan's key, once, in the order customers see them.

Required array length: 1 - 50 elements

A slug: lowercase letters, digits and dashes, up to 40 characters.

Pattern: ^[a-z0-9][a-z0-9-]{0,39}$

Response

200 - application/json

The plans in their new order.

data
object[]
reqId
string

A per-request id (req_…). Quote it to support when reporting a problem.

Example:

"req_2a1f9c8e7b6d5"