FaxTerra Billing API
Buy pages, a plan or the one-time number.
Buy pages, a plan or the one-time number.
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/faxterra-com:faxterra-com-billing-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: FaxTerra Billing API
version: '1'
description: 'Send faxes from code or an agent, on the same account, prices and free pages as the website. Sign in with an emailed code and the person’s acceptance of the Terms, upload, send, then poll each fax at its nextCheckAfter. The same calls are MCP tools at /api/v1/mcp (streamable HTTP), for an AI assistant connected with OAuth or any v1 credential. A body field or query parameter an operation doesn’t take is refused with VALIDATION_ERROR and its name in error.field, on every operation that takes a token or key; the three public reads (the guide, this document and the price list) ignore one. Each operation lists the error codes it can answer. Calls from a web page to the REST endpoints are not supported. They send no CORS headers, and an OPTIONS preflight gets 204 with an Allow header and no Access-Control headers, which a browser refuses. A token or API key is a secret that a web page would show to anyone who opens it, so call from a server, or from an app or agent that keeps the credential to itself. The MCP endpoint is the one exception: it answers a browser’s preflight, for assistants that connect from a browser with OAuth. A fax to a test number is never dialled and uses no pages: +12015550100 (echo), +12015550101 (delivered), +12015550102 (busy then delivered), +12015550103 (no answer), +12015550104 (voice line). POST /webhooks/{id}/test sends an endpoint a signed test event of any type. During early access, any change to v1, breaking or not, can take effect the day the changelog lists it. Changes to v1, and what counts as breaking: https://faxterra.com/developers/changes.'
servers:
- url: https://faxterra.com/api/v1
security:
- bearerAuth: []
tags:
- name: Billing
description: Buy pages, a plan or the one-time number.
paths:
/checkout:
post:
operationId: createCheckout
tags:
- Billing
summary: A Stripe Checkout URL for a credit pack, a new plan or the one-time number
description: Open checkoutUrl to pay, or give it to the person who will pay. Payment adds the pages, the plan or the number to this account, as a website purchase does. Confirm the product and its price with the person before paying; a plan renews every month or year until it is cancelled.
requestBody:
required: true
content:
application/json:
schema:
oneOf:
- type: object
properties:
product:
const: credit_pack
description: A pack of credits
pack:
enum:
- lite
- standard
- plus
description: Which pack, from GET /pricing
required:
- product
- pack
additionalProperties: false
- type: object
properties:
product:
const: subscription
description: A plan
plan:
enum:
- starter
- business
- pro
description: Which plan, from GET /pricing
interval:
enum:
- monthly
- annual
default: monthly
description: Billed monthly or annual; monthly when left out
required:
- product
- plan
additionalProperties: false
- type: object
properties:
product:
const: one_time_number
description: The one-time number
numberProduct:
enum:
- ein_number
description: Which one-time number product, from GET /pricing
required:
- product
additionalProperties: false
example:
product: credit_pack
pack: lite
responses:
'200':
description: A checkout to complete
content:
application/json:
schema:
type: object
properties:
success:
const: true
data:
type: object
properties:
product:
type: string
checkoutUrl:
type: string
format: uri
expiresAt:
anyOf:
- type: string
format: date-time
- type: 'null'
required:
- product
- checkoutUrl
- expiresAt
required:
- success
- data
'400':
description: '`VALIDATION_ERROR` with `error.field`: an unknown product, pack or plan, or a field this product does not take.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- VALIDATION_ERROR
required:
- code
required:
- error
'401':
description: '`UNAUTHORIZED`: no valid token or key (missing, wrong or expired). `TOKEN_REVOKED`: the person’s API sign-ins were signed out. `SESSION_INVALID`: the person this sign-in names no longer exists. In each case, sign in again with a new code; the same token will not work again. If POST /auth/token then answers `ACCOUNT_DELETED`, the account was deleted.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- UNAUTHORIZED
- TOKEN_REVOKED
- SESSION_INVALID
- ACCOUNT_DELETED
required:
- code
required:
- error
'403':
description: 'This person or account can’t buy this here (`ACCOUNT_SUSPENDED`, `CREDIT_SCOPE_FORBIDDEN`, `BILLING_SCOPE_MISMATCH`); `error.message` says why. `HIPAA_ACCOUNT`: the account gained the HIPAA add-on after this sign-in, and apps and AI assistants can’t sign in to it; signing in again will not help. On a received fax’s document, it means the account held that fax while it had the add-on, and apps and AI assistants can’t open it even after the add-on ends. `KEY_ATTESTATION_REQUIRED`: this API key predates the account’s HIPAA add-on and is paused until an owner or admin confirms it in Settings. `INSUFFICIENT_SCOPE`: the call is outside what the assistant was connected to do. One connected read only asked to send, change or delete something, or one connected send only asked to open, mark or delete a received fax, or to open a sent document.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- ACCOUNT_SUSPENDED
- CREDIT_SCOPE_FORBIDDEN
- BILLING_SCOPE_MISMATCH
- HIPAA_ACCOUNT
- KEY_ATTESTATION_REQUIRED
- INSUFFICIENT_SCOPE
required:
- code
required:
- error
'409':
description: '`SUBSCRIPTION_EXISTS`: the account has a plan; change it on the website. `USE_STORE_BILLING`: the plan is billed by the App Store or Google Play. `SUBSCRIPTION_NOT_ACTIVE`: the account’s plan isn’t active, for example after a failed payment; fix it on the website rather than start a second plan. `ONE_TIME_NOT_ELIGIBLE`: the account has a plan, already has a one-time number, or already has a fax number; `error.message` says which, or asks you to try again when the account could not be read. GET /account → purchase says beforehand what can be bought. `ACCOUNT_UNAVAILABLE`: this person can no longer act in the account the credential names (they were removed from it); `error.message` says what to do.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- SUBSCRIPTION_EXISTS
- USE_STORE_BILLING
- SUBSCRIPTION_NOT_ACTIVE
- ONE_TIME_NOT_ELIGIBLE
- ACCOUNT_UNAVAILABLE
required:
- code
required:
- error
'429':
description: '`RATE_LIMITED`: too many requests on this sign-in. It always carries `Retry-After` (also `error.retryAfter`). Wait that many seconds, then try again. A 429 with no JSON body is the limit on calls from one IP address. Wait 1 minute, then try again.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- RATE_LIMITED
required:
- code
required:
- error
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait before trying again
'500':
description: '`INTERNAL_ERROR`: something went wrong on our side. Try again.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- INTERNAL_ERROR
required:
- code
required:
- error
components:
schemas:
Error:
type: object
properties:
success:
const: false
error:
type: object
properties:
code:
type: string
description: 'What went wrong, stable: act on this'
message:
type: string
description: The same, written for a person
field:
type: string
description: The request field at fault, dotted (`files.0.fileKey`), when one is
reason:
type: string
description: 'With `field`: the check it failed (`unrecognized_keys`, `invalid_format`, `invalid_number`, …)'
retryAfter:
type: integer
description: 'On a request-limit 429: seconds to wait, as in Retry-After. Absent on a sending limit or TOO_MANY_ATTEMPTS.'
version:
type: string
description: 'On `TOS_REQUIRED` at sign-in: the Terms version to send as acceptTerms'
termsUrl:
type: string
format: uri
description: 'On `TOS_REQUIRED` at sign-in: where the Terms are'
required:
- code
- message
required:
- success
- error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A token from POST /auth/token, or an API key (ftk_…), as "Authorization: Bearer <token>". A token the FaxTerra app holds does not work here. A token acts in the person’s default account: their own signup account when they are an active member of it, otherwise their first active membership. An API key is bound to the one account it was created in and acts in that one, as the person who created it. No cookie or header on the request changes which account. Keep a token or key secret, like a password: never in a URL or a log.'