Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Vicem Upgrade API
version: 7c4384d
description: 'The HTTP API behind the Vicem owner app, the public profile pages and provider webhooks.
Generated at runtime from the zod route table in `packages/api-contract` (the same schemas the
server validates requests and responses with), so this document cannot drift from the code.
**Auth.** Owner routes take an Identity Platform ID token: `Authorization: Bearer `.
Personal API keys (`vk_…`, Settings › More › Connect other apps) use the same header on their routes.
Public routes need nothing and are rate limited per IP (429 when over). Webhooks are verified by provider signature.
**Errors.** Every error uses one envelope: `{"error": {"code", "message", "lang?", "details?"}}`.
`lang` names the language `message` is written in for people; with no `lang`, `message` is a log line:
branch on `code`, never on `message`. Validation failures are 400 with `details` listing each failing path.
**Health.** `GET /healthz` reports version, active fakes and the voice heartbeat age; `GET /readyz` is 200 while the instance can serve, else 503.'
servers:
- url: https://api.vicem.ai
tags:
- name: Upgrade
description: Plans, billing self-serve and upgrade offers.
paths:
/v1/upgrade/offers:
get:
operationId: upgradeOffers
summary: Upgrade offers
tags:
- Upgrade
security:
- ownerBearer: []
x-vicem-auth: owner
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/UpgradeOffers'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalError'
components:
schemas:
UpgradeOffers:
type: object
properties:
items:
maxItems: 1
type: array
items:
$ref: '#/components/schemas/UpgradeOffer'
required:
- items
additionalProperties: false
UpgradeOffer:
type: object
properties:
id:
type: string
pattern: ^plus_[a-z0-9_]+$
reason:
$ref: '#/components/schemas/UpgradeReason'
headline:
type: string
minLength: 1
maxLength: 40
body:
type: string
minLength: 1
maxLength: 280
cta:
type: string
minLength: 1
maxLength: 30
plan:
type: string
enum:
- vicem_plus
- vicem_plus_byo
required:
- id
- reason
- headline
- body
- cta
- plan
additionalProperties: false
UpgradeReason:
type: string
enum:
- act_level
- cloned_voice
- link_negotiation
- outbound_task
- minutes_80
- minutes_100
ApiError:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
lang:
type: string
details: {}
required:
- code
- message
additionalProperties: false
required:
- error
additionalProperties: false
responses:
Unauthorized:
description: Missing, expired or invalid bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
InternalError:
description: Unexpected server error (reported to Sentry).
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
securitySchemes:
ownerBearer:
type: http
scheme: bearer
bearerFormat: JWT
description: Identity Platform (Firebase Auth) ID token of the signed-in owner.
personalApiKey:
type: http
scheme: bearer
description: 'Personal API key (vk_…) made in Settings › More › Connect other apps. Read scope: inbox, contacts, bookings. Write scope: notes, disposed by the Mandate engine.'