Krobar.ai Admin Plans API
The Admin Plans API from Krobar.ai — 4 operation(s) for admin plans.
The Admin Plans API from Krobar.ai — 4 operation(s) for admin plans.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/krobar-ai:krobar-ai-admin-plans-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Krobar AI Admin Plans API
description: '# API Krobar AI
Welcome to the Krobar AI API! A FastAPI-based service that is the backend for Krobar.ai
## Authentication
**IMPORTANT**: This API requires an API key for all endpoints except for /health. The API key must be provided in the `X-API-Key` header.
```bash
curl -H "X-API-Key: your-api-key" https://api.krobar.ai/endpoint
```'
contact:
name: API Support
email: tristan@kromatic.com
version: 1.0.0
tags:
- name: Admin Plans
paths:
/admin/plans:
get:
tags:
- Admin Plans
summary: List all subscription plans
description: Get all subscription plans for admin management
operationId: list_plans_admin_plans_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/src__api__routes__routes_admin_plans__PlansListResponse'
'401':
description: Unauthorized
'403':
description: Forbidden
post:
tags:
- Admin Plans
summary: Create new plan
description: Create a new subscription plan
operationId: create_plan_admin_plans_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PlanCreateRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/src__api__routes__routes_admin_plans__PlanResponse'
'401':
description: Unauthorized
'403':
description: Forbidden
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/plans/{plan_id}:
get:
tags:
- Admin Plans
summary: Get plan details
description: Get detailed information about a specific plan
operationId: get_plan_admin_plans__plan_id__get
parameters:
- name: plan_id
in: path
required: true
schema:
type: string
format: uuid
title: Plan Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/src__api__routes__routes_admin_plans__PlanResponse'
'401':
description: Unauthorized
'403':
description: Forbidden
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- Admin Plans
summary: Update plan
description: Update an existing subscription plan
operationId: update_plan_admin_plans__plan_id__put
parameters:
- name: plan_id
in: path
required: true
schema:
type: string
format: uuid
title: Plan Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PlanUpdateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/src__api__routes__routes_admin_plans__PlanResponse'
'401':
description: Unauthorized
'403':
description: Forbidden
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Admin Plans
summary: Delete plan
description: Delete a subscription plan (only if no teams are using it)
operationId: delete_plan_admin_plans__plan_id__delete
parameters:
- name: plan_id
in: path
required: true
schema:
type: string
format: uuid
title: Plan Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'401':
description: Unauthorized
'403':
description: Forbidden
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/plans/{plan_id}/usage:
get:
tags:
- Admin Plans
summary: Get plan usage
description: Get usage statistics for a plan
operationId: get_plan_usage_admin_plans__plan_id__usage_get
parameters:
- name: plan_id
in: path
required: true
schema:
type: string
format: uuid
title: Plan Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'401':
description: Unauthorized
'403':
description: Forbidden
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/plans/assign-to-team:
post:
tags:
- Admin Plans
summary: Assign plan to team
description: Assign a subscription plan to a team
operationId: assign_plan_to_team_admin_plans_assign_to_team_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AssignPlanRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'401':
description: Unauthorized
'403':
description: Forbidden
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
PlanUpdateRequest:
properties:
display_name:
anyOf:
- type: string
- type: 'null'
title: Display Name
description: Display name for the plan
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Plan description
limits:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Limits
description: Plan limits
is_active:
anyOf:
- type: boolean
- type: 'null'
title: Is Active
description: Whether the plan is active
sort_order:
anyOf:
- type: integer
- type: 'null'
title: Sort Order
description: Sort order for display
type: object
title: PlanUpdateRequest
description: Request model for updating a plan.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
PlanCreateRequest:
properties:
name:
type: string
title: Name
description: Unique plan name
display_name:
type: string
title: Display Name
description: Display name for the plan
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Plan description
limits:
additionalProperties: true
type: object
title: Limits
description: Plan limits
is_active:
type: boolean
title: Is Active
description: Whether the plan is active
default: true
sort_order:
type: integer
title: Sort Order
description: Sort order for display
default: 0
type: object
required:
- name
- display_name
- limits
title: PlanCreateRequest
description: Request model for creating a new plan.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
src__api__routes__routes_admin_plans__PlansListResponse:
properties:
plans:
items:
$ref: '#/components/schemas/src__api__routes__routes_admin_plans__PlanResponse'
type: array
title: Plans
total:
type: integer
title: Total
type: object
required:
- plans
- total
title: PlansListResponse
description: Response model for list of plans.
src__api__routes__routes_admin_plans__PlanResponse:
properties:
id:
type: string
title: Id
name:
type: string
title: Name
display_name:
type: string
title: Display Name
description:
anyOf:
- type: string
- type: 'null'
title: Description
limits:
additionalProperties: true
type: object
title: Limits
is_active:
type: boolean
title: Is Active
sort_order:
type: integer
title: Sort Order
created_at:
type: string
title: Created At
updated_at:
type: string
title: Updated At
type: object
required:
- id
- name
- display_name
- limits
- is_active
- sort_order
- created_at
- updated_at
title: PlanResponse
description: Response model for plan data.
AssignPlanRequest:
properties:
team_id:
type: string
title: Team Id
description: ID of the team to assign the plan to
plan_id:
anyOf:
- type: string
- type: 'null'
title: Plan Id
description: ID of the plan to assign, or null to clear it
type: object
required:
- team_id
title: AssignPlanRequest
description: Request model for assigning a plan to a team.
securitySchemes:
APIKeyCookie:
type: apiKey
in: cookie
name: access_token
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key