Skip to content

Voxbi Cockpit API

OpenAPI 3.2.0 v0.1.0

REST API for the Voxbi Cockpit PBX platform. Use it to manage users, extensions, SIP devices, phone numbers, call flows, IVRs, queues, schedules, and related telephony resources.

All resources are scoped to a PBX tenant. The authenticated identity determines which PBX(es) you can access.

Every request must be authenticated. See Authentication for the available schemes.

Principal-conditional fields

Most resources are reachable by two kinds of token: a user-owned token (the cockpit/mobile Bearer token) and a PBX-owned API key (created on the Integrations page). A few response fields are per-user and therefore depend on which kind of token you use: they are returned for user-owned tokens and omitted entirely for PBX API-key tokens (a PBX has no per-user state). Such fields are flagged PRINCIPAL-CONDITIONAL in their description - examples: is_favorite on extensions and contacts, and editable on contacts.

Embedding related resources

List and detail endpoints accept an ?include= query parameter: a comma-separated list of related resources to embed. Each endpoint documents its own allowed values; anything not in that allow-list is rejected, and nothing is embedded unless you ask for it.

Some relations are dot-nested, which lets you choose how deep to go. For example, on an extension you can request user to embed just the user, or user.groups to embed the user and its groups (you do not have to load the parent separately). Combine several with commas, e.g. ?include=user.groups,sipDevice.

Rate limiting

Requests are rate limited per API key (per PBX). The default budget is 120 requests per minute; it may be higher depending on your plan. Every response reports your current budget so you do not have to hard-code the number:

  • X-RateLimit-Limit - the limit applied to this request
  • X-RateLimit-Remaining - requests left in the current window

When you exceed the limit the API responds with 429 Too Many Requests and a Retry-After header (seconds to wait before retrying). Always read these headers rather than assuming a fixed rate: the budget can change per plan, and a few endpoints have their own stricter limit. The clearest example is Push the PBX configuration, which is capped at 1 request per minute - that endpoint documents its own limit and 429 response.

Servers
  • The production API server https://cockpit.voxbi.com/api/v1
  • The staging API server https://staging-cockpit.voxbi.com/api/v1
  • The development API server https://dev-cockpit.voxbi.com/api/v1
Authentication
  • bearerAuth Bearer token
  • ApiKeyAuth API key in header "Authorization"
  • PbxServerAuth Bearer token
  • PbxApiKey Bearer token
  • IntegrationApiKey Bearer token
  • PartnerApiKey Bearer token

Telephony

Authentication

Every endpoint uses bearer token authentication: send your token in the Authorization header on every request:

Authorization: Bearer <token>

There are two kinds of token:

  • User token - obtained by calling POST /login with a user's credentials. It inherits that user's permissions and is scoped to their PBX(es). There is no separate "global" token; broader access comes from logging in as a user with broader role assignments (e.g. a super-admin).
  • PBX API key - created by the customer on the Cockpit Integrations page (an "API key" integration). It is owned by the PBX and limited to the scopes selected when the key was created.

Both kinds authenticate against the same endpoints. Which fields a response contains can depend on the token type: a few per-user fields are returned for user tokens and omitted for PBX API keys (see Principal-conditional fields above, and the PRINCIPAL-CONDITIONAL note on the affected fields).

Per-operation auth requirements are listed under each endpoint's Security section.

AI configuration

Read-only aggregated AI setup for a PBX (global prompt, labels, keyword tree, per-extension and per-group prompts, AI profile and feature flags). Read with a PBX API key carrying the ai-configuration scope.

Calendar

The calendar assistant's REST surface: an ordinary user token calling the client-app calendar directly, no LLM or MCP transport involved. Writes live only under /me/calendar/*, always on the caller's own mailbox; colleague reads live under /users/{user}/calendar/* and register GET only, ever.

Every endpoint requires the caller to have opted in (PUT /me/calendar/preferences after enablement; enablement itself has no endpoint yet, see the ticket's follow-ups). Colleague reads additionally require the ListUsers permission.

get /me/calendar/status Get the caller's calendar assistant status (user) get /me/calendar/calendars List the caller's own calendars (user) put /me/calendar/preferences Save the caller's calendar assistant preferences (user) get /me/calendar/agenda Get the caller's own agenda (user) get /me/calendar/next Get the caller's next meeting (user) post /me/calendar/events Book an event on the caller's own calendar (user) get /me/calendar/events/{event} Get one of the caller's own events (user) patch /me/calendar/events/{event} Reschedule one of the caller's own events (user) post /me/calendar/events/{event}/cancel Cancel one of the caller's own events (user) post /me/calendar/events/{event}/respond Respond to one of the caller's own event invitations (user) post /me/calendar/availability Suggest open meeting slots across the caller and colleagues (user) get /users/{user}/calendar/agenda Get a colleague's agenda (user) get /users/{user}/calendar/next Get a colleague's next meeting (user) get /calendar-subscriptions List the current user's calendar subscriptions post /calendar-subscriptions Subscribe to a read-only calendar feed post /calendar-subscriptions/validate Validate a read-only calendar feed get /calendar-subscriptions/events List cached calendar occurrences patch /calendar-subscriptions/{id} Update a calendar subscription delete /calendar-subscriptions/{id} Delete a calendar subscription post /calendar-subscriptions/{id}/refresh Refresh a calendar subscription

Calls

Endpoints for initiating and managing outbound calls.

Call Flows

Define how inbound calls are routed through your PBX. A call flow chains ordered steps (transfer, IVR, voicemail, queue, schedule) that the system evaluates per call.

Call Flow Steps

Individual steps belonging to a call flow. Each step has a type and a target (extension, queue, sound file, IVR, etc.) and is executed in order.

IVR

Interactive Voice Response menus that play a prompt and route the caller based on the key they press.

IVR Steps

Individual menu options inside an IVR. Each step maps a digit (or timeout) to a destination.

Queues

Call queues that hold callers until an agent is available, with configurable strategies and music on hold.

Schedules

Time-of-day rule sets used by call flows to route differently inside vs outside business hours.

Phone Numbers

External DIDs owned by the PBX. Numbers are linked to call flows, users, or queues for inbound routing.

Caller Identities

Caller identities represent the outbound phone numbers (and optional suffixes) available to the authenticated user when placing calls. Each identity is linked to a phone number and a target entity (User, PBX, Group, or SIP device).

SIP Carriers

Upstream SIP trunks used for outbound calls and number termination.

SIP Devices

Physical or soft SIP endpoints (deskphones, softphones, ATAs) registered against the PBX.

Extensions

Internal dial numbers assigned to users, devices, queues, and other PBX entities.

Twinning

Ring an external number in parallel with the user's extension.

Do Not Disturb

Manage Do Not Disturb rules for users and extensions.

Users

PBX users. Each user owns an extension, devices, presence status, and forwarding rules.

post /register-device Register a device for push notifications post /unregister-device Unregister a device from push notifications post /cleanup-old-tokens Clean up old push notification tokens post /notify-device Send a push notification to a user's devices get /layout Get the active Status Changer layout (user) get /users List user get /users/{id} Get an User get /users/{email}/webrtc Get an user WebRTC configuration by Email get /qr-code Get QR code for authenticated user get /soop-status Get SOOP status for authenticated user post /favorites Toggle favorite user get /in-call Read the authenticated user's in-call flag (user) post /in-call Set the authenticated user's in-call flag (user) get /user/devices List devices for authenticated user post /user/devices Register a device for authenticated user patch /user/devices/{deviceIdOrToken} Update a device for authenticated user delete /user/devices/{deviceIdOrToken} Delete a device for authenticated user post /dnd Set User DND get /users/{user}/forwards List forwards for a user post /users/{user}/forwards Create a forward for a user put /users/{user}/forwards/{forward} Update a forward for a user delete /users/{user}/forwards/{forward} Delete a forward for a user post /users/{user}/favorite-users Add a favorite user (user) delete /users/{user}/favorite-users/{favorite_user} Remove a favorite user (user) get /users/{user}/phone-buttons/resolved Get resolved phone buttons for a user get /users/{user}/phone-buttons/resolved-detailed Get resolved detailed phone buttons for a user get /users/{user}/phone-buttons/preview-config Get phone buttons preview config for a user get /users/{user}/phone-buttons List phone buttons for a user post /users/{user}/phone-buttons Create a phone button for a user get /users/{user}/phone-buttons/{phoneButtonId} Get a phone button for a user put /users/{user}/phone-buttons/{phoneButtonId} Replace a phone button for a user patch /users/{user}/phone-buttons/{phoneButtonId} Partially update a phone button for a user delete /users/{user}/phone-buttons/{phoneButtonId} Delete a phone button for a user get /users/{user}/user-settings List settings for a user post /users/{user}/user-settings Create a setting for a user get /users/{user}/user-settings/{type} Get a setting for a user by type put /users/{user}/user-settings/{type} Replace a setting for a user by type patch /users/{user}/user-settings/{type} Partially update a setting for a user by type delete /users/{user}/user-settings/{type} Delete a setting for a user by type get /users/{user}/user-groups List user-groups for a user post /users/{user}/user-groups Add a user-group to a user get /users/{user}/user-groups/{userGroup} Get a user-group for a user patch /users/{user}/user-groups/{userGroup} Partially update a user-group for a user delete /users/{user}/user-groups/{userGroup} Remove a user-group from a user get /users/{user}/right-to-disconnect Get right-to-disconnect settings for a user put /users/{user}/right-to-disconnect Update right-to-disconnect settings for a user post /change-status Change presence status for the authenticated user (user) get /timepoints List presence timepoints for the authenticated user (user) get /workTimes Get accumulated work times for the authenticated user (user)

User Groups

Manage user groups for organizing users within a PBX.

Groups

Ring groups that dial multiple destinations simultaneously or in sequence.

Pools

Extension pools and their user assignments.

Tags

Free-form labels attached to users, devices, or numbers for filtering and reporting.

Statuses

Top-level presence values (e.g. Available, Busy, Away) that users can broadcast.

Substatuses

Refinements under a parent status (e.g. Away > Lunch, Away > Meeting).

Voxbi Group Tabs

Custom tab configurations for Voxbi group views.

Pbxes

The tenant container. Every other resource is scoped to a PBX.

Locations

Physical offices or sites associated with the PBX, used for emergency call routing and reporting.

Languages

Languages available for sound files, voice prompts, and user preferences.

Sound Files

Audio files used for greetings, prompts, music on hold, and voicemail.

Contacts

Shared address book entries available across the PBX.

Contact Imports

Import personal contacts from a CSV or Excel file via a guided upload, map, and confirm flow. Each import and every contact it creates is private to the authenticated user.

Images

Retrieve images (avatars, logos) associated with models.

Webhooks

Inbound webhooks from third-party services (e.g. Famulor post-call events).

Phone Number Orders

Customer-facing endpoints for the Nexus number-order proxy. Use these to check whether a phone number can be provisioned at a given address, place an order (with KYC documents attached), retrieve an order's status, edit and retry an order that failed submission, list the phone numbers already owned by the PBX, and attach a call flow to a specific number.

Authentication is the PBX API key (one token per PBX); every response is scoped to that PBX.

France: the SIRET is required at order time

A French order (country FR) must carry the company's SIRET as the identifier-only KYC document kyc[business_registration_number] on POST /numbers/orders itself (or on the edit-and-retry call), even when kyc_required_at_order is false. It cannot follow the order on POST /numbers/orders/{id}/documents: an order without it is refused with 422. Spaces are stripped, so 812 345 678 00019 and 81234567800019 are the same value. POST /numbers/orders/check does not need it.

Webhooks

When you pass a webhook URL on POST /numbers/orders, we send one signed POST per event about that order:

Event When
order.fulfilled The numbers are provisioned. status is success, or success_kyc_required while the KYC is not validated yet.
order.failed The carrier rejected the order. error_message carries the reason.
order.canceled The carrier canceled the order, including one already fulfilled (its numbers are withdrawn).
kyc.document_accepted A KYC document was accepted. kyc_document is that document.
kyc.document_rejected A KYC document was rejected. kyc_document.rejection_reason says why.
kyc.validated The order's KYC is fully validated.

Body. The order exactly as GET /numbers/orders/{id} returns it (as it was when the event happened), plus event, delivery_id and, on document events, kyc_document. See the NumberOrderWebhookPayload schema.

Headers.

Header Value
X-Voxbi-Event The event, same as event in the body. Route on it before parsing.
X-Voxbi-Delivery The delivery id (UUID), same as delivery_id. Identical on every retry of one delivery.
X-Voxbi-Signature t=<unix timestamp>,v1=<hex>[,v1=<hex>]. See Verifying the signature.

Delivery and retries.

  • Answer with any 2xx status to confirm. The response body is ignored.
  • Anything else, or no answer within 10 seconds, is retried: up to 6 attempts in total (the first, then retries after 3 minutes, 10 minutes, 1 hour, 6 hours and 24 hours). After that the delivery is marked failed; it can be retried from Cockpit.
  • Redirects are not followed.
  • Delivery is at-least-once: dedupe on X-Voxbi-Delivery.
  • Events can arrive out of order (a retry of an older event can land after a newer one). Use updated_at and the body status, or fetch GET /numbers/orders/{id}, when order matters.

Verifying the signature. <hex> is the lowercase hex HMAC-SHA256 of <t>.<raw body> (the timestamp, a dot, then the exact bytes of the request body), keyed with your webhook signing secret (it starts with whsec_). The secret is managed in Cockpit under Settings, API keys and secrets, Webhook signing secret, where you can reveal and rotate it. For 24 hours after a rotation the header carries two v1 values, one per valid secret: accept the request if any of them matches.

  1. Read the raw request body before parsing the JSON.
  2. Split the header on ,; take t and every v1.
  3. Compute hex(hmac_sha256(secret, t + "." + raw_body)).
  4. Compare it to each v1 with a constant-time comparison. No match: reject with 401.
  5. Optionally reject when t is more than 5 minutes from your clock, to stop replays.

Push configuration

Push the PBX configuration so pending changes take effect - the programmatic equivalent of the "Push configuration" button in Cockpit. PBX API key auth; rate limited to 1 request/minute per PBX.

Odoo Installer

Endpoints consumed by the Voxbi Installer module running inside a customer's Odoo. Register the Odoo integration, poll the install status, read it back, and update or re-run it. Authenticated with a customer API key carrying the odoo-installer ability; the PBX is resolved from the key.

Tempus

Absences

Employee absence requests, absence records, and validator decisions on them.

Home office

Home office requests, home office calendars, and validator decisions on them.

Corrections

Time point correction requests and validator decisions on them.

Overtime

Overtime calculation periods and per-employee overtime decisions.

Work times

Weekly and required work times and compiled workshifts.

Schedules

Managed work schedules, slots, and entry assignments.

get /{pbx_id}/schedules List schedules for the tenant (user) get /{pbx_id}/schedule-management List managed schedules for the tenant (user) post /{pbx_id}/schedule-management Create a schedule (user) get /{pbx_id}/schedule-management/{schedule} Get a managed schedule (user) put /{pbx_id}/schedule-management/{schedule} Update a schedule (user) patch /{pbx_id}/schedule-management/{schedule} Partially update a schedule (user) delete /{pbx_id}/schedule-management/{schedule} Delete a schedule (user) get /{pbx_id}/schedule-management/{schedule}/employees List the employees a schedule may assign (user) get /{pbx_id}/schedule-management/{schedule}/calendar Get the weekly calendar for a schedule (user) get /{pbx_id}/schedule-management/{schedule}/colors List employee colors for a schedule (user) put /{pbx_id}/schedule-management/{schedule}/colors/{employee} Set an employee color for a schedule (user) post /{pbx_id}/schedule-management/{schedule}/slots Create a slot in a schedule (user) put /{pbx_id}/schedule-management/{schedule}/slots/{slot} Update a schedule slot (user) delete /{pbx_id}/schedule-management/{schedule}/slots/{slot} Delete a schedule slot (user) post /{pbx_id}/schedule-management/slots/{slot}/entries Create an entry in a slot (user) post /{pbx_id}/schedule-management/slots/{slot}/auto-assign Auto-assign the best employee to a slot (user) put /{pbx_id}/schedule-management/entries/{entry} Update a schedule entry (user) delete /{pbx_id}/schedule-management/entries/{entry} Delete a schedule entry (user) patch /{pbx_id}/schedule-management/entries/{entry}/move Move a schedule entry to a new time (user)

Calendar

Company and per-employee absence, home office, and personal calendars.

Profile

Employee profile, holidays reports, associated companies, next availability, and the account-wide Tempus settings a client renders from.

Employees

Tempus employees, departments, and their time points.

Validators

Validator scope and validator-facing pending requests and corrections.

get /{pbx_id}/validators List all validators in the tenant get /{pbx_id}/validator/employees Employees the logged-in validator can validate get /{pbx_id}/validator/{employee_id} Validator-scoped employee profile get /{pbx_id}/validator/pending-requests List employees with pending absence and home office requests (user) get /{pbx_id}/validator/pending-corrections List pending time point corrections in the validator scope (user) get /{pbx_id}/validator/pending-corrections/{correction_id}/details Get the time points behind a pending correction (user) get /{pbx_id}/user/{employee_id}/validator-permissions Get the validator permissions for an employee (user) Deprecated get /{pbx_id}/validator/scope Get the validator scope (employees the authenticated user can validate) Deprecated post /{pbx_id}/validator/change-employee-status Change a scoped employee's current status as a validator (user) get /v2/{pbx}/employee/{employee}/validator Get an employee's validator role and queue counts (user) get /v2/{pbx}/employee/{employee}/requests List your own requests and where each one has got to (user) post /v2/{pbx}/employee/{employee}/requests/absences Request legal leave for yourself (user) get /v2/{pbx}/employee/{employee}/approval-routing Preview where your next request would go (user) get /v2/{pbx}/employee/{employee}/validator/queue List everything waiting on you to decide (user) get /v2/{pbx}/requests/{kind}/{id} Read one request by its id (user) get /v2/{pbx}/requests/{kind}/{id}/trail Read one request's approval trail (user) post /v2/{pbx}/requests/{kind}/{id}/decision Record your decision on one request (user) post /v2/{pbx}/requests/{kind}/{id}/cancel Withdraw a request you raised (user)

Tempus terminals and recurring transactions

Tempus endpoints for badge readers and NFC terminals (authenticated with a PBX API-key token carrying the terminals ability) and for managing recurring transactions (PBX API key).

Partner

Odoo Catalogue (public)

The ONE Odoo endpoint outside the cockpit partner interface: a distributor reads their own Odoo products, and optionally their subscriptions, from their own system.

Authenticated with a Partner-owned bearer token carrying the odoo-catalogue ability. "Public" means "not the cockpit UI session", not unauthenticated. The partner in the path is readability only: the token decides which Odoo is read and a mismatch answers 404.

Subscriptions additionally require the odoo-subscriptions ability, because that block is a commercial ledger rather than a price list. When it is withheld the three subscription keys still appear, carrying the reason.

Separate from the OdooCrm tag on purpose: everything there is session-scoped and internal, and this is the surface a third party writes code against.

Partner Scope APIs

Partner Scope APIs

Access to your own customers, PBXes, leads and dashboard figures as a reseller partner, from your own system (CRM, billing, provisioning, reporting). Customers and PBXes are read-only; leads can also be worked (status, notes, contacted, convert). Every response is limited to the partner the API key belongs to. The id of a customer or PBX that belongs to another partner, or that does not exist, answers 404.

Get a key from the cockpit

  1. Sign in to the partner portal.
  2. Open Settings and select the API keys tab. Only Reseller Admins see this tab, and only reseller partners can have keys.
  3. Click Generate API key.
  4. Enter a name, tick the scopes the key needs, optionally set an expiry date, and save.
  5. The key appears in the list. Click Reveal to view and copy it.

Revoke deletes a key immediately: the next request that uses it answers 401. A key cannot be edited: revoke it and generate a new one. Keep the key secret, store it on your server and never ship it in a browser or mobile app.

Call the API

Send the key as a bearer token. The base URL is https://partner.voxbi.com/api/v1.

curl https://partner.voxbi.com/api/v1/me \
  -H "Authorization: Bearer <key>" \
  -H "Accept: application/json"

Scopes

Every key carries the base ability partner-api. The other scopes are chosen when the key is generated.

Scope Grants
partner-api (every key) GET /me
partner-customers GET /customers, GET /customers/{customer}
partner-pbxes GET /pbxes, GET /pbxes/{pbx}
partner-customers and partner-pbxes GET /customers/{customer}/pbxes (needs both)
partner-leads GET /leads, GET /leads/{lead}
partner-leads-write PATCH /leads/{lead}, POST /leads/{lead}/contacted, PUT /leads/{lead}/notes, POST /leads/{lead}/convert
partner-overview GET /overview
partner-plans GET /plans, GET /plans/countries, GET /plans/{plan}
partner-plans-write POST /plans, PUT and PATCH /plans/{plan}, DELETE /plans/{plan}

Keys created before these scopes existed do not have them: generate a new key to use leads or the overview.

Pagination and search

List endpoints accept page, per_page (1 to 5000, default 100) and search, and answer with { "data": [...], "links": {...}, "meta": {...} }. Detail endpoints answer with { "data": {...} }. Lists are ordered by name, then id; leads are listed newest first and also accept a status filter.

Errors

Status When
401 Token missing, invalid, revoked or expired: {"message": "Unauthenticated."}
403 Not a partner API key (This endpoint requires a partner API key.), partner not an active reseller (Partner API keys are available to active reseller accounts only.), or missing scope (This API key is missing a required scope. with required_scopes)
404 Customer, PBX, lead or plan not found for your partner (Customer not found. / PBX not found. / Lead not found. / Plan not found.), or the leads endpoints while the signup funnel is off (Leads are not available.)
422 Invalid query parameter or body, for example per_page above 5000; a lead that is already converted, or a plan name already used in one of the chosen countries. 409: deleting a plan a customer is on
429 More than 120 requests per minute for the key, or 600 per minute across all of the partner's keys

CDRs

CDR Utility

CDR Utility Proxy

Forwards authenticated requests to the internal CDRs API. Rate-limited to 120 requests/minute per user.

Base URL: /api/v1/cdrs-utility/

Live calls

GET /api/v1/calls/live covers the other half of the same picture: the calls that are up right now, rather than the ones that have finished. It takes the same call-history scope, so a key that can read CDRs can read it with no change.

Voxbi AI Chat

Voxbi AI Chat

The hosted AI assistant, server-orchestrated: two calls give a client app conversational access to Cockpit data and actions, scoped to whatever the signed-in user is themselves allowed to do, with no OpenAI key, tool loop, or MCP transport knowledge required client-side.

The two-call flow

  1. POST /api/v1/chat/session, with the caller's ordinary app token (the one POST /login returns), mints a short-lived chat session token.
  2. POST /api/v1/chat/message, with that chat token, sends the conversation so far and gets the assistant's reply, having run whatever tool calls were needed on the caller's behalf.

Both calls are required for every conversation; the chat token is not a permanent replacement for the app token; and the app token is not accepted on the message endpoint. See below.

The two token types are mutually exclusive by design

This is the single most common integration mistake. The ordinary app token and the chat session token are deliberately not interchangeable:

  • POST /api/v1/chat/message requires the chat token and refuses the app token with 403 (its guard chain rejects any token carrying the * wildcard ability that Sanctum gives an ordinary app token).
  • Every other /api/v1/* route refuses the chat token in turn: EnsureUserToken treats the chat token's mcp:use ability as NEGATIVE, so a chat token cannot be used to call the rest of the REST API, even by accident.

An integrator therefore holds both tokens at once for the life of a chat session: the app token to mint (and re-mint) the chat token, and the chat token, only, to send messages.

Token lifetime: about 15 minutes

The chat token expires around 15 minutes after minting (config('api.mcp.session_ttl_minutes')). A conversation that runs longer must re-mint: call POST /api/v1/chat/session again with the still-valid app token, then resend the conversation (the client's own messages history, which the client already holds) to POST /api/v1/chat/message with the new chat token. A 403 from the message endpoint mid-conversation is the signal to do this; it is not a conversation-ending error.

The client holds the conversation history

The server does not persist messages. Every call to POST /api/v1/chat/message must include the full transcript so far; the server does not remember previous turns. Conversation persistence is a tracked follow-up, not yet built.

What the client cannot control

  • Model choice is server-owned, for cost control. A model field in the request body, if sent, is ignored rather than honored.
  • The system prompt is server-owned, for prompt integrity. The client cannot send a role: "system" message; doing so is a 422.

Tool trace

Every reply's trace has one entry per tool call the assistant made: the tool name, its arguments, the raw result, how long it took, and whether it errored. A tool the caller's permissions, role, or active modules do not allow is a NORMAL outcome, not a failure: it appears in the trace like any other call, and the assistant explains the refusal in its prose reply rather than the caller seeing an HTTP error.

Per-caller tool catalog

The set of tools available to the assistant is built per caller from their permissions, roles, and active modules. The identical question can succeed for one user and be declined for another, in the same conversation shape, because the tool simply is not in that user's catalog. This is correct behavior; integrators should not treat a declined action as a bug to report.

Cost is an estimate

cost on each reply is computed from a server-side price table, not from OpenAI's own billing API, and is null (never 0.00) when the configured model has no entry in that table. Token usage separates out cached_tokens, since the tool catalog is resent on every turn and is priced far below a fresh prompt token.