Agent C Credits API
The credits API from Agent C — 5 operation(s) for credits.
The credits API from Agent C — 5 operation(s) for credits.
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/theagentc-io:theagentc-io-credits-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: Agent C Credits API
description: AI COO platform — Jarvis Jr. manages your social media content.
version: 0.1.0
tags:
- name: Credits
paths:
/v1/credits:
get:
tags:
- Credits
summary: Get Credit Balance
description: 'Get current credit balance and usage information.
Returns the user''s credit balance, plan tier, video cap progress,
and strategy session allocation for their workspace.'
operationId: get_credit_balance_v1_credits_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CreditBalance'
security:
- HTTPBearer: []
/v1/credits/history:
get:
tags:
- Credits
summary: Get Credit History
description: 'Get paginated credit ledger history.
Returns past credit transactions with newest first.
Useful for auditing and understanding usage patterns.'
operationId: get_credit_history_v1_credits_history_get
security:
- HTTPBearer: []
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
description: Items per page
default: 50
title: Limit
description: Items per page
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
description: Pagination offset
default: 0
title: Offset
description: Pagination offset
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CreditHistory'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/credits/usage:
get:
tags:
- Credits
summary: Get Usage Summary
description: 'Get aggregate credit usage for the current billing period.
Shows total spent, earned, and breakdown by reason.
Useful for understanding where credits are being consumed.'
operationId: get_usage_summary_v1_credits_usage_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UsageSummary'
security:
- HTTPBearer: []
/v1/credits/check:
post:
tags:
- Credits
summary: Check Credits
description: 'Pre-flight check: do we have enough credits for an operation?
Use this before executing expensive operations to give users
clear feedback about whether they can proceed.
The ''action'' parameter should be one of:
- mode_1_text (1 credit)
- mode_1_video (6 credits)
- mode_2_campaign_text (2 credits)
- mode_2_campaign_video (8 credits)
- mode_3_text (4 credits)
- mode_3_video (15 credits)
- extra_strategy_session (50 credits)'
operationId: check_credits_v1_credits_check_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreditCheckRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CreditCheckResult'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/v1/credits/purchase:
post:
tags:
- Credits
summary: Purchase Overage Pack
description: 'DISABLED. This used to grant credits directly with no payment — a faucet
that, with free accounts now active, would let anyone self-grant unlimited
credits. Credit packs are now retired entirely (POST /v1/billing/credit-pack
410s too). Kept as a 410 so any stale client gets a clear message.'
operationId: purchase_overage_pack_v1_credits_purchase_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/OveragePackPurchaseRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/OveragePackPurchaseResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
components:
schemas:
CreditHistory:
properties:
items:
items:
$ref: '#/components/schemas/CreditDeduction'
type: array
title: Items
description: Ledger entries for this page
total_count:
type: integer
title: Total Count
description: Total ledger entries across all pages
example: 42
has_more:
type: boolean
title: Has More
description: Whether there are more pages
example: false
type: object
required:
- items
- total_count
- has_more
title: CreditHistory
description: Paginated credit ledger history.
example:
has_more: true
items:
- amount: 6
balance_after: 144
created_at: '2026-04-07T10:30:00Z'
description: Brand content for @acme
id: 550e8400-e29b-41d4-a716-446655440000
reason: mode_1_video
total_count: 42
UsageSummary:
properties:
total_spent:
type: integer
title: Total Spent
description: Total credits spent (absolute value)
example: 50
total_earned:
type: integer
title: Total Earned
description: Total credits earned (e.g., from resets)
example: 200
breakdown_by_reason:
additionalProperties:
type: integer
type: object
title: Breakdown By Reason
description: Credit changes grouped by reason
example:
mode_1_text: -1
mode_1_video: -18
monthly_reset: 200
period_start:
type: string
format: date-time
title: Period Start
description: Start of billing period
example: '2026-03-07T08:30:00Z'
period_end:
type: string
format: date-time
title: Period End
description: End of billing period (next reset)
example: '2026-04-07T08:30:00Z'
type: object
required:
- total_spent
- total_earned
- breakdown_by_reason
- period_start
- period_end
title: UsageSummary
description: Aggregate credit usage for current billing period.
example:
breakdown_by_reason:
mode_1_text: -1
mode_1_video: -18
monthly_reset: 200
period_end: '2026-04-07T08:30:00Z'
period_start: '2026-03-07T08:30:00Z'
total_earned: 200
total_spent: 50
CreditBalance:
properties:
balance:
type: integer
title: Balance
description: Credits remaining in current billing period
example: 72
total:
type: integer
title: Total
description: Total credits allocated for this billing period
example: 100
plan:
type: string
title: Plan
description: Current plan tier (free | pro | legacy builder/studio variants)
example: pro
warning_level:
type: string
pattern: ^(normal|low|depleted)$
title: Warning Level
description: Balance warning level
example: normal
video_used:
type: integer
title: Video Used
description: Videos created this month
example: 2
video_cap:
type: integer
title: Video Cap
description: Total videos allowed this month
example: 100
strategy_sessions_used:
type: integer
title: Strategy Sessions Used
description: Strategy sessions used this month
example: 0
strategy_sessions_included:
type: integer
title: Strategy Sessions Included
description: Strategy sessions included in plan
example: 0
next_reset_at:
type: string
format: date-time
title: Next Reset At
description: When credits reset (monthly)
example: '2026-05-07T08:30:00Z'
free_credits:
type: integer
title: Free Credits
description: Free bucket (tops up monthly, no rollover)
default: 0
paid_credits:
type: integer
title: Paid Credits
description: Purchased/sub bucket (rolls over)
default: 0
free_credits_reset_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Free Credits Reset At
description: When the free bucket next tops up
type: object
required:
- balance
- total
- plan
- warning_level
- video_used
- video_cap
- strategy_sessions_used
- strategy_sessions_included
- next_reset_at
title: CreditBalance
description: Current credit balance and tier information.
example:
balance: 72
next_reset_at: '2026-05-07T08:30:00Z'
plan: builder
strategy_sessions_included: 0
strategy_sessions_used: 0
total: 100
video_cap: 100
video_used: 2
warning_level: normal
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
CreditDeduction:
properties:
id:
type: string
title: Id
description: Ledger entry ID
example: 550e8400-e29b-41d4-a716-446655440000
amount:
type: integer
title: Amount
description: Credits deducted (absolute value, positive number)
example: 6
reason:
type: string
title: Reason
description: Reason for deduction
example: mode_1_video
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Additional context
example: Brand content for @acme
balance_after:
type: integer
title: Balance After
description: Balance after this deduction
example: 144
created_at:
type: string
format: date-time
title: Created At
description: When this transaction occurred
example: '2026-04-07T10:30:00Z'
type: object
required:
- id
- amount
- reason
- balance_after
- created_at
title: CreditDeduction
description: A single credit ledger entry (deduction).
example:
amount: 6
balance_after: 144
created_at: '2026-04-07T10:30:00Z'
description: Brand content for @acme
id: 550e8400-e29b-41d4-a716-446655440000
reason: mode_1_video
OveragePackPurchaseResponse:
properties:
success:
type: boolean
title: Success
description: Whether purchase was successful
example: true
new_balance:
type: integer
title: New Balance
description: Updated credit balance
example: 400
credits_added:
type: integer
title: Credits Added
description: Credits added by this pack
example: 300
price_cents:
type: integer
title: Price Cents
description: Price paid in cents
example: 6000
message:
type: string
title: Message
description: Confirmation message
example: Successfully purchased 300 credits for $60.00
type: object
required:
- success
- new_balance
- credits_added
- price_cents
- message
title: OveragePackPurchaseResponse
description: Response after purchasing an overage pack.
example:
credits_added: 300
message: Successfully purchased 300 credits for $60.00
new_balance: 400
price_cents: 6000
success: true
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
OveragePackPurchaseRequest:
properties:
pack:
type: string
pattern: ^(small|medium|large)$
title: Pack
description: Size of overage pack to purchase
examples:
- small
type: object
required:
- pack
title: OveragePackPurchaseRequest
description: Request body for POST /v1/credits/purchase.
example:
pack: medium
CreditCheckRequest:
properties:
action:
type: string
title: Action
description: The action being performed (e.g., 'mode_1_text', 'mode_3_video')
examples:
- mode_1_text
content_type:
anyOf:
- type: string
- type: 'null'
title: Content Type
description: Optional content type for context
examples:
- text
- video
type: object
required:
- action
title: CreditCheckRequest
description: Request body for POST /v1/credits/check.
example:
action: mode_1_video
content_type: video
CreditCheckResult:
properties:
has_sufficient:
type: boolean
title: Has Sufficient
description: Whether workspace has enough credits
example: true
current_balance:
type: integer
title: Current Balance
description: Current credit balance
example: 200
required:
type: integer
title: Required
description: Credits required for operation
example: 6
warning_level:
type: string
pattern: ^(normal|low|depleted)$
title: Warning Level
description: Current balance warning
example: normal
type: object
required:
- has_sufficient
- current_balance
- required
- warning_level
title: CreditCheckResult
description: Result of pre-flight credit check.
example:
current_balance: 200
has_sufficient: true
required: 6
warning_level: normal
securitySchemes:
HTTPBearer:
type: http
scheme: bearer