---
title: "Create Agency Billing Plan"
method: POST
path: "/api/v1/agency/billing/{agency_id}/billing_plan"
tags: ["Agency Billing"]
---

# Create Agency Billing Plan

`POST /api/v1/agency/billing/{agency_id}/billing_plan`

## Request

- Base URL: `https://api.insighto.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.insighto.ai/api/v1/agency/billing/{agency_id}/billing_plan`
- Auth: one of:
  - API key in query parameter `api_key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/insighto/apis/ragify/docs/api/v1/agency/billing/:agency_id/billing_plan/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new billing plan for the agency

## Path parameters

- `agency_id` string, uuid, required

## Request body

- IBillingPlanCreate
  - `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, nullable
  - `remove_branding` boolean, nullable
  - `advanced_intents` boolean, nullable
  - `auto_intents` boolean, nullable
  - `billing_plan_group` string, nullable
  - `credits` object
  - `attributes` object
  - `agency_id` string, uuid, nullable
  - `plan_lookup_key` string, nullable

## Response `201`

Successful Response

- IPostResponseBaseIBillingPlanCreate
  - `message` string, nullable
  - `meta` union
    - object
    - unknown
  - `data` IBillingPlanCreate
    - `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, nullable
    - `remove_branding` boolean, nullable
    - `advanced_intents` boolean, nullable
    - `auto_intents` boolean, nullable
    - `billing_plan_group` string, nullable
    - `credits` object
    - `attributes` object
    - `agency_id` string, uuid, nullable
    - `plan_lookup_key` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/insighto/apis/ragify.md) - [All operations](https://skmtc.dev/insighto/apis/ragify/llms.txt) - [OpenAPI document](https://skmtc.dev/insighto/apis/ragify/revisions/cdca56191be9?raw)
