Skip to main content
POST
/
api
/
v1
/
agency
/
billing
/
{agency_id}
/
billing_plan
Create Agency Billing Plan
curl --request POST \
  --url 'https://api.example.com/api/v1/agency/billing/{agency_id}/billing_plan?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "bots_count": 123,
  "queries_count": 123,
  "words_count": 123,
  "voice_seconds": 123,
  "premium_support": true,
  "default_plan": false,
  "remove_branding": false,
  "advanced_intents": false,
  "auto_intents": false,
  "billing_plan_group": "<string>",
  "credits": {},
  "attributes": {},
  "agency_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "plan_lookup_key": "<string>"
}
'
{
  "message": "Data created successfully",
  "meta": {},
  "data": {
    "name": "<string>",
    "description": "<string>",
    "bots_count": 123,
    "queries_count": 123,
    "words_count": 123,
    "voice_seconds": 123,
    "premium_support": true,
    "default_plan": false,
    "remove_branding": false,
    "advanced_intents": false,
    "auto_intents": false,
    "billing_plan_group": "<string>",
    "credits": {},
    "attributes": {},
    "agency_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "plan_lookup_key": "<string>"
  }
}

Authorizations

api_key
string
query
required

Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.

Path Parameters

agency_id
string<uuid>
required

Body

application/json
name
string
required
description
string
required
bots_count
integer
required
queries_count
integer
required
words_count
integer
required
voice_seconds
integer
required
premium_support
boolean
required
default_plan
boolean | null
default:false
remove_branding
boolean | null
default:false
advanced_intents
boolean | null
default:false
auto_intents
boolean | null
default:false
billing_plan_group
string | null
credits
Credits · object
attributes
Attributes · object
agency_id
string<uuid> | null
plan_lookup_key
string | null

Response

Successful Response

message
string | null
default:Data created successfully
meta
Meta · object
data
IBillingPlanCreate · object