> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reply.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a credit top-up

> <Warning>
  **Coming soon.** This endpoint will be available by mid December 2026.
</Warning>

<small>_Requires the `billing:write` scope (or a broader one that includes it)._</small>

Buy a one-time bundle of API credits for your team, charged at once to the payment method on file. Available
to teams on the API plan with an active monthly API credits add-on, for users with the Plans and Billing
permission. The credits do not expire and are spent after the sign-up and monthly API credits.

An API key needs `billing:write`, which `*:*` does not include: give the key the scope by name.

Send a new `purchaseId` for every purchase. Repeating a request with the same `purchaseId` never charges
twice: it finishes the purchase if needed and returns its state, so it is the way to retry after a timeout or
a `502`. When the answer says nothing was charged (`402`, `503`), a new purchase needs a new `purchaseId`.



## OpenAPI

````yaml /api-reference/bundled.yaml post /v3/billing/credit-top-ups
openapi: 3.1.0
info:
  version: 3.0.0
  title: Reply API
  description: API for managing email sequences, contacts, and automation workflows
servers:
  - url: https://api.reply.io
security:
  - bearerAuth: []
tags:
  - name: Contacts
    description: Manage individual contacts
  - name: Contact Lists
    description: Manage contact lists and contact membership
  - name: Contact List Folders
    description: Group contact lists into personal and shared folders
  - name: Accounts
    description: Manage accounts (companies/organizations)
  - name: Account Lists
    description: Manage account lists and account membership
  - name: Custom Fields
    description: Manage custom contact fields
  - name: Prompt Actions
    description: Save reusable AI prompts and run them on contacts to fill custom fields
  - name: Contact Blacklist Rules
    description: Manage blacklist rules for domains, emails, and email exceptions
  - name: Live Data
    description: >-
      Find new contacts via Live Data searches and read typeahead values for the
      Live Data / Autopilot filter sidebar
  - name: Contact Enrichment
    description: >-
      Enrich contacts with emails, phone numbers, LinkedIn data, and AI-filled
      custom fields
  - name: Email Validations
    description: Estimate and schedule asynchronous email validation jobs
  - name: AI SDR Web Search
    description: Find contacts via AI-driven web search and review past searches
  - name: Sequences
    description: Manage email automation sequences
  - name: Sequence Steps
    description: Manage individual steps in sequences
  - name: Sequence Contacts
    description: Manage contacts within sequences
  - name: Sequence Folders
    description: Organize sequences into folders
  - name: Email Accounts
    description: Manage email accounts used for sending and receiving
  - name: Sequence Email Accounts
    description: Manage email accounts linked to sequences
  - name: LinkedIn Accounts
    description: Manage LinkedIn accounts for outreach
  - name: Sequence LinkedIn Accounts
    description: Manage LinkedIn accounts linked to sequences
  - name: Sequence Templates
    description: Manage sequence templates
  - name: Email Templates
    description: Manage email templates and template folders
  - name: Voices
    description: Manage cloned voices used for AI voice message steps
  - name: Schedules
    description: Manage email send schedules and timing
  - name: Holiday Calendars
    description: Manage holiday calendars for scheduling
  - name: Inbox
    description: >-
      Manage inbox threads — list/filter, read state, replies, category
      assignment, and meeting-intent flagging
  - name: Inbox Categories
    description: Manage per-team inbox thread categories and assign threads to them
  - name: Direct Outreach
    description: >-
      Send one-off outreach directly to a contact outside of any sequence —
      direct emails and LinkedIn connection requests, messages, InMails, and
      voice messages
  - name: Tasks
    description: Manage tasks and to-do items
  - name: Reports
    description: >-
      Generate and access performance reports across email, calls, tasks,
      LinkedIn, and team performance
  - name: AI SDR Sequences
    description: >-
      Manage AI SDR sequences and their AI SDR-specific settings — create, read
      settings, partial update, autopilot enable/disable/force-start, approval
      mode, sequence structure, and playbook/knowledge-base connections
  - name: AI SDR Sequence Structures
    description: >-
      Browse the sequence structures — reusable outlines of AI SDR sequence
      steps — that can be applied to AI SDR sequences
  - name: AI SDR Strategist
    description: Trigger AI Strategist runs
  - name: AI SDR Playbooks
    description: >-
      Manage AI SDR playbooks — tone, voice, and style guides applied during
      personalized message generation
  - name: AI SDR Knowledge Bases
    description: >-
      Manage AI SDR knowledge bases — collections of documents, links, reply
      handlers, and reengagement cards that inform the agent's responses
  - name: AI SDR Offers
    description: >-
      Manage AI SDR offers — bundles of company-context inputs (ICP, pain
      points, value propositions, etc.) used to personalize outreach
  - name: AI SDR Pending Approvals
    description: >-
      Review, send, regenerate, and provide feedback on AI-generated messages
      awaiting human approval
  - name: AI SDR Sequence Preview
    description: >-
      Read and regenerate per-contact previews of the messages a sequence will
      send, and provide feedback on preview messages
  - name: AI SDR Insights
    description: Read AI SDR insights for sequence contacts
  - name: AI SDR Intent Signals
    description: >-
      Read Reply industry IDs and technology slugs used in AI SDR intent-signal
      configuration (typeahead)
  - name: AI Prompts
    description: >-
      Manage the AI prompts used to configure sequence steps, and preview the
      output a prompt produces
  - name: AI SDR Learnings
    description: >-
      Manage the standing rules that shape how the AI writes — list, read,
      create, partially update and delete AI learnings
  - name: Registration
    description: Register the contact that domain purchases are filed under
  - name: Domains
    description: Find domains available to buy for outreach
  - name: Purchased Domains
    description: >-
      List the domains your team bought, with their subscription, setup and
      renewal state, and renew them
  - name: Pre-warmed Domains
    description: >-
      Find pre-warmed domains on sale, with mailboxes that are already warming,
      and list the ones your team bought
  - name: Mailboxes
    description: >-
      Add mailboxes to domains your team already bought, priced before you
      order, and reconnect them
  - name: User Account
    description: Account information and authentication verification
  - name: API Keys
    description: Create, list, edit and delete API keys, as the Settings page does
  - name: Teams
    description: Add existing users of your organization to its teams
  - name: Settings
    description: Manage team and user settings
  - name: Billing
    description: Subscription details and monthly active contacts usage
  - name: Rate Limits
    description: Your API rate limits, your current usage and the packages that raise them
  - name: Support Requests
    description: Raise and follow support requests with Reply's support team
  - name: Webhooks
    description: Manage webhook subscriptions and inspect delivery history
  - name: Background Jobs
    description: >-
      Track and cancel asynchronous background operations (e.g., email
      validation)
  - name: Attachments
    description: >-
      Upload file attachments used across email templates, sequence steps, and
      direct emails
paths:
  /v3/billing/credit-top-ups:
    post:
      tags:
        - Billing
      summary: Create a credit top-up
      description: >-
        <Warning>
          **Coming soon.** This endpoint will be available by mid December 2026.
        </Warning>


        <small>_Requires the `billing:write` scope (or a broader one that
        includes it)._</small>


        Buy a one-time bundle of API credits for your team, charged at once to
        the payment method on file. Available

        to teams on the API plan with an active monthly API credits add-on, for
        users with the Plans and Billing

        permission. The credits do not expire and are spent after the sign-up
        and monthly API credits.


        An API key needs `billing:write`, which `*:*` does not include: give the
        key the scope by name.


        Send a new `purchaseId` for every purchase. Repeating a request with the
        same `purchaseId` never charges

        twice: it finishes the purchase if needed and returns its state, so it
        is the way to retry after a timeout or

        a `502`. When the answer says nothing was charged (`402`, `503`), a new
        purchase needs a new `purchaseId`.
      operationId: CreateCreditTopUp
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              title: Credit Top-Up Request
              description: >-
                A one-time purchase of API credits, charged to the payment
                method on file.
              required:
                - purchaseId
                - credits
              properties:
                purchaseId:
                  type: string
                  format: uuid
                  description: >-
                    Your identifier for this purchase. Generate a new one for
                    every purchase and send the same one when you repeat

                    a request: a repeated request never charges twice, it
                    returns the state of the purchase it already made. Reusing

                    it with a different `credits` value is refused.
                credits:
                  type: integer
                  description: Number of API credits to buy. One of the available bundles.
                  enum:
                    - 2000
                    - 5000
                    - 10000
                    - 25000
                    - 50000
              example:
                purchaseId: 3f1c2b9e-8d4a-4c1e-9a77-2b5e6f0d1a42
                credits: 5000
      responses:
        '201':
          description: >-
            The purchase was made. `status` is `granted` when the credits are on
            the balance, or `awaitingPayment`

            while the invoice is not paid yet. A repeated request for a finished
            purchase returns it again.
          headers:
            Location:
              schema:
                type: string
              description: >-
                Path of the purchase, relative to the API root
                (`v3/billing/credit-top-ups/{purchaseId}`)
          content:
            application/json:
              schema:
                type: object
                title: Credit Top-Up
                description: A one-time purchase of API credits and its current state.
                required:
                  - purchaseId
                  - credits
                  - status
                properties:
                  purchaseId:
                    type: string
                    format: uuid
                    description: The identifier sent when the purchase was made.
                  credits:
                    type: integer
                    description: Number of API credits bought.
                  status:
                    type: string
                    title: Credit Top-Up Status
                    description: >-
                      Where a credit top-up stands.


                      - `granted` — paid; the credits are on the team's balance.

                      - `awaitingPayment` — the invoice was issued and is not
                      paid yet.

                      - `inProgress` — the purchase is being processed; read it
                      again in a few minutes.

                      - `paymentDeclined` — the payment was declined and nothing
                      was charged.

                      - `purchaseRefused` — the billing provider refused the
                      purchase and nothing was charged.

                      - `paidNotGranted` — the payment went through after the
                      team left the API plan, so no credits were added; contact
                      support for a refund.
                    enum:
                      - granted
                      - awaitingPayment
                      - inProgress
                      - paymentDeclined
                      - purchaseRefused
                      - paidNotGranted
                example:
                  purchaseId: 3f1c2b9e-8d4a-4c1e-9a77-2b5e6f0d1a42
                  credits: 5000
                  status: granted
        '400':
          description: >-
            The request body is invalid, `credits` is not one of the bundles, or
            the body has a field this endpoint does

            not define (one `Field is not recognized.` error per field)
          content:
            application/problem+json:
              schema:
                allOf:
                  - allOf:
                      - type: object
                        title: Problem Details
                        description: >-
                          Bare RFC 9457 problem-details envelope. Returned by
                          middleware-level errors

                          that don't carry domain context: 401 Unauthorized
                          (auth middleware),

                          429 Too Many Requests (rate-limit middleware), and
                          route-level 404 / 405 /

                          415 (framework middleware). The 403 for a feature the
                          team's plan or the

                          calling user's role does not give access to extends it
                          with `reasons` and

                          carries no `code` — see
                          `errors/forbidden-feature-scope.yaml`.


                          Business and validation responses extend this envelope
                          and add additional

                          fields — see `business-problem.model.yaml` (adds
                          `code` slug) and

                          `validation-problem.model.yaml` (adds `errors[]`
                          array).
                        properties:
                          title:
                            type: string
                            description: Short, human-readable summary of the problem.
                          status:
                            type: integer
                            description: HTTP status code.
                            minimum: 100
                            maximum: 599
                          detail:
                            type: string
                            description: >-
                              Human-readable explanation specific to this
                              occurrence.
                      - type: object
                        properties:
                          errors:
                            type: array
                            description: >-
                              List of field-level validation errors. Always
                              non-empty when this

                              envelope is returned. Each entry pins a single
                              offending field

                              via JSON Pointer plus a sanitized detail string.
                            items:
                              type: object
                              title: Validation Error
                              description: A single field-level validation error.
                              properties:
                                pointer:
                                  type: string
                                  description: >-
                                    JSON Pointer (RFC 6901) to the offending
                                    field — e.g.

                                    `/steps/0/subject`.


                                    * An empty string (`""`) means the error
                                    applies to the whole
                                      request body (e.g. body is missing or unparseable).
                                    * For route or query parameter failures the
                                    pointer is the parameter
                                      name (e.g. `id`, `top`).
                                  example: /steps/0/subject
                                detail:
                                  type: string
                                  description: >-
                                    Sanitized, human-readable explanation of
                                    this field's error. One of a

                                    small set of templates — `"Field is
                                    required."`, `"Value has an

                                    invalid type."`, `"Value has an invalid
                                    format."`, `"Request body is

                                    not valid JSON."`, `"The request body is
                                    required and cannot be

                                    empty."` — or a FluentValidator message on
                                    body endpoints.
                                  example: Field is required.
                    title: Validation Problem
                    description: >-
                      Input-validation error response at 400. Returned when the
                      request body

                      fails binding, FluentValidator rules, or when route/query
                      parameter

                      attribute validation (`[Range]`, `[Required]`) fails.
                      Route, query, and

                      body errors are combined into a single `errors[]` array —
                      clients should

                      not assume one error per request.
                  - example:
                      title: Validation failed
                      status: 400
                      detail: The request body contains validation errors.
                      errors:
                        - pointer: /name
                          detail: Field is required.
              example:
                title: Validation failed
                status: 400
                detail: The request body contains validation errors.
                errors:
                  - pointer: /credits
                    detail: '''Credits'' must be one of: 2000, 5000, 10000, 25000, 50000.'
        '401':
          description: >-
            Unauthorized. The response body is empty; check the
            `WWW-Authenticate` header for the expected scheme.
          content:
            application/problem+json:
              schema:
                allOf:
                  - type: object
                    title: Problem Details
                    description: >-
                      Bare RFC 9457 problem-details envelope. Returned by
                      middleware-level errors

                      that don't carry domain context: 401 Unauthorized (auth
                      middleware),

                      429 Too Many Requests (rate-limit middleware), and
                      route-level 404 / 405 /

                      415 (framework middleware). The 403 for a feature the
                      team's plan or the

                      calling user's role does not give access to extends it
                      with `reasons` and

                      carries no `code` — see
                      `errors/forbidden-feature-scope.yaml`.


                      Business and validation responses extend this envelope and
                      add additional

                      fields — see `business-problem.model.yaml` (adds `code`
                      slug) and

                      `validation-problem.model.yaml` (adds `errors[]` array).
                    properties:
                      title:
                        type: string
                        description: Short, human-readable summary of the problem.
                      status:
                        type: integer
                        description: HTTP status code.
                        minimum: 100
                        maximum: 599
                      detail:
                        type: string
                        description: >-
                          Human-readable explanation specific to this
                          occurrence.
                  - example:
                      title: Unauthorized
                      status: 401
                      detail: Authentication credentials are missing or invalid.
        '402':
          description: >-
            The payment was declined and nothing was charged. Update the payment
            method and send a new `purchaseId`.
          content:
            application/problem+json:
              schema:
                allOf:
                  - type: object
                    title: Problem Details
                    description: >-
                      Bare RFC 9457 problem-details envelope. Returned by
                      middleware-level errors

                      that don't carry domain context: 401 Unauthorized (auth
                      middleware),

                      429 Too Many Requests (rate-limit middleware), and
                      route-level 404 / 405 /

                      415 (framework middleware). The 403 for a feature the
                      team's plan or the

                      calling user's role does not give access to extends it
                      with `reasons` and

                      carries no `code` — see
                      `errors/forbidden-feature-scope.yaml`.


                      Business and validation responses extend this envelope and
                      add additional

                      fields — see `business-problem.model.yaml` (adds `code`
                      slug) and

                      `validation-problem.model.yaml` (adds `errors[]` array).
                    properties:
                      title:
                        type: string
                        description: Short, human-readable summary of the problem.
                      status:
                        type: integer
                        description: HTTP status code.
                        minimum: 100
                        maximum: 599
                      detail:
                        type: string
                        description: >-
                          Human-readable explanation specific to this
                          occurrence.
                  - type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Stable, machine-readable error slug in the form

                          `"<resource>.<variant>"`.


                          * `resource` is the camelCased domain — e.g.
                          `sequence`,
                            `contact`, `inboxThread`, `blacklistDomainRule`.
                          * `variant` is the camelCased specific failure mode —
                          e.g.
                            `notFound`, `forbidden`, `duplicateName`, `globalRuleReadOnly`.

                          Use `code` for programmatic error handling; use
                          `detail` for

                          user-facing messages. Slugs are stable across
                          server-side enum

                          reorderings and never change meaning under a given
                          resource.
                        pattern: ^[a-z][a-zA-Z0-9]*(\.[a-z][a-zA-Z0-9]*)+$
                        example: sequence.notFound
                title: Business Problem
                description: >-
                  Domain error response carrying a stable, namespaced error
                  slug.

                  Emitted for most 4xx responses (business 400, 403, 404, 409,
                  …) and

                  for 503 when a downstream dependency is unavailable.


                  Not every 403 carries a `code`: when the team's plan or the
                  calling

                  user's role does not give access to the feature, any V3 route
                  answers

                  the feature-scope 403 (`errors/forbidden-feature-scope.yaml`)
                  instead,

                  with `reasons` and no `code`. That check runs before the
                  endpoint's own,

                  so it can stand in for a 403 the endpoint documents with a
                  `code`.
              example:
                title: Payment Required
                status: 402
                detail: >-
                  The payment was declined and nothing was charged. Update the
                  payment method and send a new purchaseId.
                code: creditTopUp.paymentDeclined
        '403':
          description: >-
            Top-ups are not available to the team, payments are disabled for the
            account, or the caller lacks the Plans

            and Billing permission.


            An API key without `billing:write` is refused before these: `error`
            is `insufficient_scope` and

            `required_scope` names the scope. `*:*` does not grant
            `billing:write`.
          content:
            application/problem+json:
              schema:
                anyOf:
                  - allOf:
                      - allOf:
                          - type: object
                            title: Problem Details
                            description: >-
                              Bare RFC 9457 problem-details envelope. Returned
                              by middleware-level errors

                              that don't carry domain context: 401 Unauthorized
                              (auth middleware),

                              429 Too Many Requests (rate-limit middleware), and
                              route-level 404 / 405 /

                              415 (framework middleware). The 403 for a feature
                              the team's plan or the

                              calling user's role does not give access to
                              extends it with `reasons` and

                              carries no `code` — see
                              `errors/forbidden-feature-scope.yaml`.


                              Business and validation responses extend this
                              envelope and add additional

                              fields — see `business-problem.model.yaml` (adds
                              `code` slug) and

                              `validation-problem.model.yaml` (adds `errors[]`
                              array).
                            properties:
                              title:
                                type: string
                                description: Short, human-readable summary of the problem.
                              status:
                                type: integer
                                description: HTTP status code.
                                minimum: 100
                                maximum: 599
                              detail:
                                type: string
                                description: >-
                                  Human-readable explanation specific to this
                                  occurrence.
                          - type: object
                            properties:
                              code:
                                type: string
                                description: >-
                                  Stable, machine-readable error slug in the
                                  form

                                  `"<resource>.<variant>"`.


                                  * `resource` is the camelCased domain — e.g.
                                  `sequence`,
                                    `contact`, `inboxThread`, `blacklistDomainRule`.
                                  * `variant` is the camelCased specific failure
                                  mode — e.g.
                                    `notFound`, `forbidden`, `duplicateName`, `globalRuleReadOnly`.

                                  Use `code` for programmatic error handling;
                                  use `detail` for

                                  user-facing messages. Slugs are stable across
                                  server-side enum

                                  reorderings and never change meaning under a
                                  given resource.
                                pattern: ^[a-z][a-zA-Z0-9]*(\.[a-z][a-zA-Z0-9]*)+$
                                example: sequence.notFound
                        title: Business Problem
                        description: >-
                          Domain error response carrying a stable, namespaced
                          error slug.

                          Emitted for most 4xx responses (business 400, 403,
                          404, 409, …) and

                          for 503 when a downstream dependency is unavailable.


                          Not every 403 carries a `code`: when the team's plan
                          or the calling

                          user's role does not give access to the feature, any
                          V3 route answers

                          the feature-scope 403
                          (`errors/forbidden-feature-scope.yaml`) instead,

                          with `reasons` and no `code`. That check runs before
                          the endpoint's own,

                          so it can stand in for a 403 the endpoint documents
                          with a `code`.
                      - example:
                          title: Forbidden
                          status: 403
                          detail: You do not have permission to access this resource.
                          code: sequence.forbidden
                  - allOf:
                      - type: object
                        title: Problem Details
                        description: >-
                          Bare RFC 9457 problem-details envelope. Returned by
                          middleware-level errors

                          that don't carry domain context: 401 Unauthorized
                          (auth middleware),

                          429 Too Many Requests (rate-limit middleware), and
                          route-level 404 / 405 /

                          415 (framework middleware). The 403 for a feature the
                          team's plan or the

                          calling user's role does not give access to extends it
                          with `reasons` and

                          carries no `code` — see
                          `errors/forbidden-feature-scope.yaml`.


                          Business and validation responses extend this envelope
                          and add additional

                          fields — see `business-problem.model.yaml` (adds
                          `code` slug) and

                          `validation-problem.model.yaml` (adds `errors[]`
                          array).
                        properties:
                          title:
                            type: string
                            description: Short, human-readable summary of the problem.
                          status:
                            type: integer
                            description: HTTP status code.
                            minimum: 100
                            maximum: 599
                          detail:
                            type: string
                            description: >-
                              Human-readable explanation specific to this
                              occurrence.
                      - type: object
                        title: FeatureScopeForbiddenProblem
                        description: >-
                          Returned on any V3 route when the calling user's role
                          or the team's plan does not give access to the
                          feature. Carries no `code`. This check runs before the
                          endpoint's own checks, so it can stand in for a 403
                          the endpoint documents with a `code`.
                        properties:
                          title:
                            type: string
                            description: Always `Access forbidden`.
                          detail:
                            type: string
                            description: >-
                              Describes the denied feature. The text varies; do
                              not match on it.
                          instance:
                            type: string
                            description: Path of the request that was refused
                          reasons:
                            type: array
                            description: >-
                              Why access was refused, one entry per cause:


                              - `1` — the team's plan does not include the
                              feature.

                              - `2` — the user's role does not grant the
                              permission.
                            items:
                              type: integer
                              enum:
                                - 1
                                - 2
                      - example:
                          title: Access forbidden
                          status: 403
                          detail: You do not have access to email accounts.
                          instance: /v3/email-accounts/42/procurement/reconnect
                          reasons:
                            - 2
                  - type: object
                    description: The API key does not hold the scope this route requires.
                    required:
                      - error
                      - message
                      - required_scope
                    properties:
                      error:
                        type: string
                        description: Always `insufficient_scope`.
                      message:
                        type: string
                        description: Names the scope the route requires.
                      required_scope:
                        type: string
                        description: The scope the route requires.
              examples:
                insufficientScope:
                  summary: The API key does not hold billing:write
                  value:
                    error: insufficient_scope
                    message: This endpoint requires scope 'billing:write'.
                    required_scope: billing:write
                notAvailable:
                  summary: The team is not on the API plan
                  value:
                    title: Forbidden
                    status: 403
                    detail: Top-ups are available only on the API plan.
                    code: creditTopUp.notAvailable
                paymentActionsDisabled:
                  summary: Payments are disabled for the account
                  value:
                    title: Forbidden
                    status: 403
                    detail: Payments are disabled for this account. Contact support.
                    code: creditTopUp.paymentActionsDisabled
        '409':
          description: >-
            The purchase cannot be made in the account's current state, the
            `purchaseId` belongs to another purchase,

            or the purchase is still being processed
          content:
            application/problem+json:
              schema:
                allOf:
                  - allOf:
                      - type: object
                        title: Problem Details
                        description: >-
                          Bare RFC 9457 problem-details envelope. Returned by
                          middleware-level errors

                          that don't carry domain context: 401 Unauthorized
                          (auth middleware),

                          429 Too Many Requests (rate-limit middleware), and
                          route-level 404 / 405 /

                          415 (framework middleware). The 403 for a feature the
                          team's plan or the

                          calling user's role does not give access to extends it
                          with `reasons` and

                          carries no `code` — see
                          `errors/forbidden-feature-scope.yaml`.


                          Business and validation responses extend this envelope
                          and add additional

                          fields — see `business-problem.model.yaml` (adds
                          `code` slug) and

                          `validation-problem.model.yaml` (adds `errors[]`
                          array).
                        properties:
                          title:
                            type: string
                            description: Short, human-readable summary of the problem.
                          status:
                            type: integer
                            description: HTTP status code.
                            minimum: 100
                            maximum: 599
                          detail:
                            type: string
                            description: >-
                              Human-readable explanation specific to this
                              occurrence.
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              Stable, machine-readable error slug in the form

                              `"<resource>.<variant>"`.


                              * `resource` is the camelCased domain — e.g.
                              `sequence`,
                                `contact`, `inboxThread`, `blacklistDomainRule`.
                              * `variant` is the camelCased specific failure
                              mode — e.g.
                                `notFound`, `forbidden`, `duplicateName`, `globalRuleReadOnly`.

                              Use `code` for programmatic error handling; use
                              `detail` for

                              user-facing messages. Slugs are stable across
                              server-side enum

                              reorderings and never change meaning under a given
                              resource.
                            pattern: ^[a-z][a-zA-Z0-9]*(\.[a-z][a-zA-Z0-9]*)+$
                            example: sequence.notFound
                    title: Business Problem
                    description: >-
                      Domain error response carrying a stable, namespaced error
                      slug.

                      Emitted for most 4xx responses (business 400, 403, 404,
                      409, …) and

                      for 503 when a downstream dependency is unavailable.


                      Not every 403 carries a `code`: when the team's plan or
                      the calling

                      user's role does not give access to the feature, any V3
                      route answers

                      the feature-scope 403
                      (`errors/forbidden-feature-scope.yaml`) instead,

                      with `reasons` and no `code`. That check runs before the
                      endpoint's own,

                      so it can stand in for a 403 the endpoint documents with a
                      `code`.
                  - example:
                      title: Conflict
                      status: 409
                      detail: A resource with this name already exists.
                      code: sequence.duplicateName
              examples:
                noSubscription:
                  summary: No payment method on file
                  value:
                    title: Conflict
                    status: 409
                    detail: >-
                      This account has no payment method on file yet. Make a
                      first purchase in the app.
                    code: creditTopUp.noSubscription
                noRecurringAddon:
                  summary: No monthly API credits add-on
                  value:
                    title: Conflict
                    status: 409
                    detail: >-
                      Top-ups are available with an active monthly API credits
                      add-on. Subscribe to one first.
                    code: creditTopUp.noRecurringAddon
                subscriptionInactive:
                  summary: The subscription is paused or cancelled
                  value:
                    title: Conflict
                    status: 409
                    detail: >-
                      The subscription is paused or cancelled. Reactivate it
                      before buying a top-up.
                    code: creditTopUp.subscriptionInactive
                autoCollectionOff:
                  summary: Automatic payment collection is off
                  value:
                    title: Conflict
                    status: 409
                    detail: >-
                      Automatic payment collection is off for this account, so a
                      top-up cannot be charged and nothing was charged. Contact
                      support.
                    code: creditTopUp.autoCollectionOff
                purchaseIdReused:
                  summary: The purchaseId was used for another top-up
                  value:
                    title: Conflict
                    status: 409
                    detail: >-
                      This purchaseId was already used for another top-up. Send
                      a new purchaseId.
                    code: creditTopUp.purchaseIdReused
                inProgress:
                  summary: The purchase is being processed
                  value:
                    title: Conflict
                    status: 409
                    detail: >-
                      This purchase is being processed. Repeat the request with
                      the same purchaseId in a few minutes.
                    code: creditTopUp.inProgress
                teamUnavailable:
                  summary: The team is being removed
                  value:
                    title: Conflict
                    status: 409
                    detail: This team is being removed and cannot receive credits.
                    code: creditTopUp.teamUnavailable
                paidNotGranted:
                  summary: Paid after the team left the API plan
                  value:
                    title: Conflict
                    status: 409
                    detail: >-
                      The payment went through after the team left the API plan,
                      so no credits were added. Contact support for a refund.
                    code: creditTopUp.paidNotGranted
        '429':
          description: Too Many Requests
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
                minimum: 1
          content:
            application/problem+json:
              schema:
                allOf:
                  - type: object
                    title: Problem Details
                    description: >-
                      Bare RFC 9457 problem-details envelope. Returned by
                      middleware-level errors

                      that don't carry domain context: 401 Unauthorized (auth
                      middleware),

                      429 Too Many Requests (rate-limit middleware), and
                      route-level 404 / 405 /

                      415 (framework middleware). The 403 for a feature the
                      team's plan or the

                      calling user's role does not give access to extends it
                      with `reasons` and

                      carries no `code` — see
                      `errors/forbidden-feature-scope.yaml`.


                      Business and validation responses extend this envelope and
                      add additional

                      fields — see `business-problem.model.yaml` (adds `code`
                      slug) and

                      `validation-problem.model.yaml` (adds `errors[]` array).
                    properties:
                      title:
                        type: string
                        description: Short, human-readable summary of the problem.
                      status:
                        type: integer
                        description: HTTP status code.
                        minimum: 100
                        maximum: 599
                      detail:
                        type: string
                        description: >-
                          Human-readable explanation specific to this
                          occurrence.
              example:
                title: Too Many Requests
                status: 429
                detail: API calls quota exceeded! maximum admitted 100 per 1m.
        '502':
          description: >-
            The purchase could not be completed yet: the outcome of the payment
            is not known, or the payment was taken

            and the credits are not added yet. Repeat the request with the same
            `purchaseId`; it will not charge twice.
          content:
            application/problem+json:
              schema:
                allOf:
                  - type: object
                    title: Problem Details
                    description: >-
                      Bare RFC 9457 problem-details envelope. Returned by
                      middleware-level errors

                      that don't carry domain context: 401 Unauthorized (auth
                      middleware),

                      429 Too Many Requests (rate-limit middleware), and
                      route-level 404 / 405 /

                      415 (framework middleware). The 403 for a feature the
                      team's plan or the

                      calling user's role does not give access to extends it
                      with `reasons` and

                      carries no `code` — see
                      `errors/forbidden-feature-scope.yaml`.


                      Business and validation responses extend this envelope and
                      add additional

                      fields — see `business-problem.model.yaml` (adds `code`
                      slug) and

                      `validation-problem.model.yaml` (adds `errors[]` array).
                    properties:
                      title:
                        type: string
                        description: Short, human-readable summary of the problem.
                      status:
                        type: integer
                        description: HTTP status code.
                        minimum: 100
                        maximum: 599
                      detail:
                        type: string
                        description: >-
                          Human-readable explanation specific to this
                          occurrence.
                  - type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Stable, machine-readable error slug in the form

                          `"<resource>.<variant>"`.


                          * `resource` is the camelCased domain — e.g.
                          `sequence`,
                            `contact`, `inboxThread`, `blacklistDomainRule`.
                          * `variant` is the camelCased specific failure mode —
                          e.g.
                            `notFound`, `forbidden`, `duplicateName`, `globalRuleReadOnly`.

                          Use `code` for programmatic error handling; use
                          `detail` for

                          user-facing messages. Slugs are stable across
                          server-side enum

                          reorderings and never change meaning under a given
                          resource.
                        pattern: ^[a-z][a-zA-Z0-9]*(\.[a-z][a-zA-Z0-9]*)+$
                        example: sequence.notFound
                title: Business Problem
                description: >-
                  Domain error response carrying a stable, namespaced error
                  slug.

                  Emitted for most 4xx responses (business 400, 403, 404, 409,
                  …) and

                  for 503 when a downstream dependency is unavailable.


                  Not every 403 carries a `code`: when the team's plan or the
                  calling

                  user's role does not give access to the feature, any V3 route
                  answers

                  the feature-scope 403 (`errors/forbidden-feature-scope.yaml`)
                  instead,

                  with `reasons` and no `code`. That check runs before the
                  endpoint's own,

                  so it can stand in for a 403 the endpoint documents with a
                  `code`.
              example:
                title: Bad Gateway
                status: 502
                detail: >-
                  The purchase could not be completed yet. Repeat the request
                  with the same purchaseId; it will not charge twice.
                code: creditTopUp.paymentOutcomeUnknown
        '503':
          description: Top-ups are temporarily unavailable and nothing was charged
          content:
            application/problem+json:
              schema:
                allOf:
                  - allOf:
                      - type: object
                        title: Problem Details
                        description: >-
                          Bare RFC 9457 problem-details envelope. Returned by
                          middleware-level errors

                          that don't carry domain context: 401 Unauthorized
                          (auth middleware),

                          429 Too Many Requests (rate-limit middleware), and
                          route-level 404 / 405 /

                          415 (framework middleware). The 403 for a feature the
                          team's plan or the

                          calling user's role does not give access to extends it
                          with `reasons` and

                          carries no `code` — see
                          `errors/forbidden-feature-scope.yaml`.


                          Business and validation responses extend this envelope
                          and add additional

                          fields — see `business-problem.model.yaml` (adds
                          `code` slug) and

                          `validation-problem.model.yaml` (adds `errors[]`
                          array).
                        properties:
                          title:
                            type: string
                            description: Short, human-readable summary of the problem.
                          status:
                            type: integer
                            description: HTTP status code.
                            minimum: 100
                            maximum: 599
                          detail:
                            type: string
                            description: >-
                              Human-readable explanation specific to this
                              occurrence.
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              Stable, machine-readable error slug in the form

                              `"<resource>.<variant>"`.


                              * `resource` is the camelCased domain — e.g.
                              `sequence`,
                                `contact`, `inboxThread`, `blacklistDomainRule`.
                              * `variant` is the camelCased specific failure
                              mode — e.g.
                                `notFound`, `forbidden`, `duplicateName`, `globalRuleReadOnly`.

                              Use `code` for programmatic error handling; use
                              `detail` for

                              user-facing messages. Slugs are stable across
                              server-side enum

                              reorderings and never change meaning under a given
                              resource.
                            pattern: ^[a-z][a-zA-Z0-9]*(\.[a-z][a-zA-Z0-9]*)+$
                            example: sequence.notFound
                    title: Business Problem
                    description: >-
                      Domain error response carrying a stable, namespaced error
                      slug.

                      Emitted for most 4xx responses (business 400, 403, 404,
                      409, …) and

                      for 503 when a downstream dependency is unavailable.


                      Not every 403 carries a `code`: when the team's plan or
                      the calling

                      user's role does not give access to the feature, any V3
                      route answers

                      the feature-scope 403
                      (`errors/forbidden-feature-scope.yaml`) instead,

                      with `reasons` and no `code`. That check runs before the
                      endpoint's own,

                      so it can stand in for a 403 the endpoint documents with a
                      `code`.
                  - example:
                      title: Service Unavailable
                      status: 503
                      detail: Background-jobs service is temporarily unavailable.
                      code: backgroundJob.upstreamUnavailable
              examples:
                unavailable:
                  summary: The billing provider could not be reached before charging
                  value:
                    title: Service Unavailable
                    status: 503
                    detail: >-
                      Top-ups are temporarily unavailable and nothing was
                      charged. Try again later.
                    code: creditTopUp.unavailable
                purchaseRefused:
                  summary: The billing provider refused the purchase
                  value:
                    title: Service Unavailable
                    status: 503
                    detail: >-
                      The billing provider refused this purchase and nothing was
                      charged. Try again later with a new purchaseId.
                    code: creditTopUp.purchaseRefused
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authenticate every request with a Bearer token. Pass your Reply API key
        in the

        `Authorization` header:


        ```

        Authorization: Bearer <your-api-key>

        ```


        Get your API key from the Reply dashboard: **Settings → API Key**.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.