FaxTerra Sign In API
A person signs in with an emailed code, accepting the Terms. An API key (below) needs no sign-in.
A person signs in with an emailed code, accepting the Terms. An API key (below) needs no sign-in.
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-sign-in-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 Sign In 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: Sign In
description: A person signs in with an emailed code, accepting the Terms. An API key (below) needs no sign-in.
paths:
/auth/email-code:
post:
operationId: requestEmailCode
tags:
- Sign In
summary: Email a sign-in code
description: Emails a 6-digit code to the address. A new address gets an account when the code is exchanged. The answer is the same whether or not the address has an account, and names the Terms of Service the person accepts at POST /auth/token, so they can be shown while the code is on its way.
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
format: email
description: The person’s email address, where the code is sent
client:
type: string
maxLength: 100
description: Your app’s name, kept with the sign-in. It is never shown in the email.
required:
- email
additionalProperties: false
example:
email: jamie@halvenridgefamilymed.example
client: Practice assistant
responses:
'200':
description: Code sent
content:
application/json:
schema:
type: object
properties:
success:
const: true
data:
type: object
properties:
sent:
const: true
deliverability:
enum:
- ok
- undeliverable
- undeliverable_domain
termsVersion:
type: string
description: The Terms version to send as acceptTerms
examples:
- '2026-11-25'
termsUrl:
type: string
format: uri
required:
- sent
- deliverability
- termsVersion
- termsUrl
required:
- success
- data
'400':
description: '`INVALID_EMAIL`: not an email address. `VALIDATION_ERROR`: a field this call does not take.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- INVALID_EMAIL
- VALIDATION_ERROR
required:
- code
required:
- error
'429':
description: '`RATE_LIMITED` with `Retry-After`: too many codes asked for this address. A 429 with no JSON body is the limit on sign-in calls from one IP address. Wait 10 minutes, 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
/auth/token:
post:
operationId: exchangeEmailCode
tags:
- Sign In
summary: Exchange the code for a token, accepting the Terms
description: The person accepts the Terms of Service in this exchange. Show them the Terms (https://faxterra.com/terms) and send acceptTerms only when they agree. A missing or out-of-date acceptTerms is refused with `TOS_REQUIRED` (400, `error.field` `acceptTerms`, `error.version` the version to send, `error.termsUrl`), and the code stays usable.
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
format: email
description: The address the code was sent to
code:
type: string
description: The code from the email
acceptTerms:
type: string
description: 'The Terms of Service version the person agreed to: termsVersion from POST /auth/email-code, also in the TOS_REQUIRED refusal.'
examples:
- '2026-11-25'
required:
- email
- code
- acceptTerms
additionalProperties: false
example:
email: jamie@halvenridgefamilymed.example
code: '482915'
acceptTerms: '2026-11-25'
responses:
'200':
description: A 30-day token
content:
application/json:
schema:
type: object
properties:
success:
const: true
data:
type: object
properties:
token:
type: string
tokenType:
const: Bearer
expiresAt:
type: string
format: date-time
user:
type: object
properties:
id:
type: string
email:
type: string
required:
- id
- email
newAccount:
type: boolean
required:
- token
- tokenType
- expiresAt
- user
- newAccount
required:
- success
- data
'400':
description: '`INVALID_CODE` or `CODE_EXPIRED`: ask for a new code. `TOS_REQUIRED`: send acceptTerms with `error.version`. `MISSING_FIELDS`: email and code are required. `VALIDATION_ERROR`: a field this call does not take.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- INVALID_CODE
- CODE_EXPIRED
- TOS_REQUIRED
- MISSING_FIELDS
- VALIDATION_ERROR
required:
- code
required:
- error
'403':
description: '`ACCOUNT_DELETED`: the account was deleted; stop and tell the person.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- ACCOUNT_DELETED
required:
- code
required:
- error
'429':
description: '`TOO_MANY_ATTEMPTS`: repeated wrong codes; wait before asking for a new one. A 429 with no JSON body is the limit on sign-in calls from one IP address. Wait 10 minutes, then try again.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- TOO_MANY_ATTEMPTS
required:
- code
required:
- error
'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
/auth/sign-out:
post:
operationId: signOutAllApiSessions
tags:
- Sign In
summary: Sign out the person’s API sign-ins
description: 'For a token from POST /auth/token. To end your own sign-in, discard the token; it stops working after 30 days. Only when the person asks to sign out everything, call this: it signs out every API sign-in the person has and every AI assistant they connected, on every account they belong to, not only yours. API keys keep working, and the person stays signed in on the web and in the phone app. An assistant connected with OAuth ends only its own connection at the OAuth revocation endpoint (`revocation_endpoint` in /.well-known/oauth-authorization-server).'
responses:
'200':
description: Signed out
content:
application/json:
schema:
type: object
properties:
success:
const: true
data:
type: object
properties:
signedOut:
const: true
scope:
const: every_api_sign_in_and_assistant
required:
- signedOut
- scope
required:
- success
- data
'400':
description: '`KEY_CANNOT_SIGN_OUT`: an API key does not sign out; revoke it in Settings, under API keys. `OAUTH_CANNOT_SIGN_OUT`: a connected assistant signs out at the OAuth revocation endpoint, or the person signs it out in Settings. `VALIDATION_ERROR` with `error.field`: a query parameter or field this call does not take.'
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Error'
- type: object
properties:
error:
type: object
properties:
code:
enum:
- KEY_CANNOT_SIGN_OUT
- OAUTH_CANNOT_SIGN_OUT
- 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: '`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:
- HIPAA_ACCOUNT
- KEY_ATTESTATION_REQUIRED
- INSUFFICIENT_SCOPE
required:
- code
required:
- error
'409':
description: '`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:
- 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.'