Skip to main content
POST
/
v1
/
plans
Create/upsert plan definition
curl --request POST \
  --url https://api.usenaive.ai/v1/plans \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "name": "<string>",
  "accountKitId": "<string>",
  "stripePriceId": "<string>",
  "quotas": {},
  "period": "month"
}
'
{}

Authorizations

Authorization
string
header
required

Workspace API key. Create one via the dashboard or POST /v1/auth/keys.

Body

application/json
key
string
required
name
string
required
accountKitId
string
stripePriceId
string
quotas
object
period
enum<string>
default:month
Available options:
month,
day

Response

Created.

The response is of type object.