Oh Fax Pay API

The Pay API from Oh Fax — 1 operation(s) for pay.

GitHub OpenAPI

Operations 2

POST /pay Send a previously quoted fax. #
GET /pay Pay using a quote_id query parameter; HTML clients redirect to checkout #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ohfax-com:ohfax-com-pay-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ohfax-com-pay-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Oh Fax Pay API
  version: 0.2.0
  description: Outbound fax to US and Canada numbers. Faxes are sent over Telnyx's carrier-grade network; payments are processed by Stripe.
servers:
- url: https://app.ohfax.com
tags:
- name: Pay
paths:
  /pay:
    post:
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  refund_status:
                    type: string
                  payment_status:
                    type: string
                    enum:
                    - unpaid
                    - authorized
                    - captured
                    - released
                    - refunded
                    - refund_pending
                  to:
                    type: string
                  pages:
                    type: integer
                  amount:
                    type: string
                  amount_cents:
                    type: integer
                  amount_charged:
                    type: string
                  attempts:
                    type: integer
                  attempt:
                    type: integer
                  max_attempts:
                    type:
                    - integer
                    - 'null'
                    description: Delivery attempts allowed, including the first. 3 on jobs created after auto-retry; null or 1 on legacy jobs, which are not retried.
                  state:
                    type: string
                    enum:
                    - sending
                    - retry_wait
                    - delivered
                    - failed
                    description: UI-facing delivery state. sending covers queued and in-flight attempts; retry_wait is a scheduled automatic retry.
                  next_retry_at:
                    type:
                    - integer
                    - 'null'
                  next_attempt_at:
                    type:
                    - integer
                    - 'null'
                  retry_reason:
                    type:
                    - string
                    - 'null'
                  failure_code:
                    type:
                    - string
                    - 'null'
                  failure_reason:
                    type:
                    - string
                    - 'null'
                  failure_action:
                    type:
                    - string
                    - 'null'
                    enum:
                    - retry
                    - fix_number
                    - fix_document
                    - null
                    description: Next step for a failed fax. Only for the sender (Checkout resend cookie or the sending account's API key); null otherwise.
                  document_available:
                    type:
                    - boolean
                    - 'null'
                    description: Whether the PDF is still stored for a resend. Same gate as failure_action; null otherwise.
                  created_at:
                    type: integer
                  submitted_at:
                    type:
                    - integer
                    - 'null'
                  completed_at:
                    type:
                    - integer
                    - 'null'
                  status_url:
                    type: string
                  receipt_url:
                    type: string
                  charged:
                    type: string
                required:
                - id
                - status
                - refund_status
                - payment_status
                - to
                - pages
                - amount
                - amount_cents
                - amount_charged
                - attempts
                - attempt
                - max_attempts
                - state
                - next_retry_at
                - next_attempt_at
                - retry_reason
                - failure_code
                - failure_reason
                - failure_action
                - document_available
                - created_at
                - submitted_at
                - completed_at
                - status_url
                - receipt_url
                - charged
        '302':
          description: 'Accept: text/html redirects to checkout'
        '400':
          description: Request failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                    - code
                required:
                - error
        '402':
          description: Payment Required
        '503':
          description: Request failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                    - code
                required:
                - error
      x-payment-info:
        offers:
        - amount: '200'
          currency: usd
          description: Send a fax
          intent: charge
          method: stripe
      summary: Send a previously quoted fax.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                quote_id:
                  type: string
              required:
              - quote_id
      parameters:
      - name: quote_id
        in: query
        schema:
          type: string
      tags:
      - Pay
      operationId: postPay
      x-operation-id-source: derived
    get:
      summary: Pay using a quote_id query parameter; HTML clients redirect to checkout
      parameters:
      - name: quote_id
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  refund_status:
                    type: string
                  payment_status:
                    type: string
                    enum:
                    - unpaid
                    - authorized
                    - captured
                    - released
                    - refunded
                    - refund_pending
                  to:
                    type: string
                  pages:
                    type: integer
                  amount:
                    type: string
                  amount_cents:
                    type: integer
                  amount_charged:
                    type: string
                  attempts:
                    type: integer
                  attempt:
                    type: integer
                  max_attempts:
                    type:
                    - integer
                    - 'null'
                    description: Delivery attempts allowed, including the first. 3 on jobs created after auto-retry; null or 1 on legacy jobs, which are not retried.
                  state:
                    type: string
                    enum:
                    - sending
                    - retry_wait
                    - delivered
                    - failed
                    description: UI-facing delivery state. sending covers queued and in-flight attempts; retry_wait is a scheduled automatic retry.
                  next_retry_at:
                    type:
                    - integer
                    - 'null'
                  next_attempt_at:
                    type:
                    - integer
                    - 'null'
                  retry_reason:
                    type:
                    - string
                    - 'null'
                  failure_code:
                    type:
                    - string
                    - 'null'
                  failure_reason:
                    type:
                    - string
                    - 'null'
                  failure_action:
                    type:
                    - string
                    - 'null'
                    enum:
                    - retry
                    - fix_number
                    - fix_document
                    - null
                    description: Next step for a failed fax. Only for the sender (Checkout resend cookie or the sending account's API key); null otherwise.
                  document_available:
                    type:
                    - boolean
                    - 'null'
                    description: Whether the PDF is still stored for a resend. Same gate as failure_action; null otherwise.
                  created_at:
                    type: integer
                  submitted_at:
                    type:
                    - integer
                    - 'null'
                  completed_at:
                    type:
                    - integer
                    - 'null'
                required:
                - id
                - status
                - refund_status
                - payment_status
                - to
                - pages
                - amount
                - amount_cents
                - amount_charged
                - attempts
                - attempt
                - max_attempts
                - state
                - next_retry_at
                - next_attempt_at
                - retry_reason
                - failure_code
                - failure_reason
                - failure_action
                - document_available
                - created_at
                - submitted_at
                - completed_at
        '302':
          description: Redirect to checkout
        '400':
          description: Request failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                    - code
                required:
                - error
        '402':
          description: MPP payment challenge
        '503':
          description: Request failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                    - code
                required:
                - error
      tags:
      - Pay
      operationId: getPay
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      description: Oh Fax prepaid API key
    sessionCookie:
      type: apiKey
      in: cookie
      name: afx_session
      description: Google-login session issued by /auth/google/callback
    resendCookie:
      type: apiKey
      in: cookie
      name: ofx_resend
      description: Per-fax resend secret, set when the payer lands on the Checkout success page
x-service-info:
  docs:
    homepage: https://ohfax.com
    apiReference: https://ohfax.com/docs/api
    llms: https://ohfax.com/llms.txt