openapi: 3.0.3
info:
  title: VerifyEmail API
  version: "1.1.0"
  description: |
    The public, key-authenticated VerifyEmail API for single email
    verification. This document is the contract every marketplace integration
    (Zapier, Make, n8n, Activepieces, Pabbly, Clay, Pipedream) is built from;
    the fixtures in `fixtures/` next to it are the oracle those wrappers are
    diffed against.

    ## How a verification runs

    `POST /v1/email-verifications` starts a **fresh live check** of one address
    and holds the HTTP request open for up to `timeout` seconds (default 5,
    maximum 90). If the verdict arrives inside that window the call answers
    `200` with the result. If not, it answers `202` with `status: pending`, a
    `Location` header pointing at `GET /v1/email-verifications/{id}`, and a
    `poll_after_ms` cadence. The check keeps running on the server either way;
    a `202` means "not finished yet", never "unknown".

    A malformed address is not a request error: it is a `200` with
    `verdict: undeliverable` and `sub_status: invalid_syntax`, decided
    instantly without contacting a mail server.

    ## The server-side deadline

    Every single verification has a terminal budget of **180 seconds** from the
    moment it was accepted. A check the mail server never answered inside that
    budget is closed as `verdict: unknown`, `sub_status: timeout`. That outcome
    is **terminal** (polling will keep returning it as a `200`) and **not
    charged**: the credit held for the check is released. It is the only
    producer of `sub_status: timeout`. Retry the address later if you need a
    firmer answer.

    ## Credits

    Every verification that reaches a verdict costs **1 credit**, held when the
    request is accepted. An `unknown` verdict, including `unknown/timeout`
    above, is not charged: the held credit is refunded automatically.
    Catch-all and accept-all results cost 1 credit. Re-posting
    an address whose check is still pending returns the same `id` and holds no
    second credit.
  contact:
    name: VerifyEmail
    email: team@tryverifyemail.com
    url: https://tryverifyemail.com
  termsOfService: https://tryverifyemail.com/legal/terms
  license:
    name: Proprietary
    url: https://tryverifyemail.com/legal/terms
externalDocs:
  description: Full API documentation
  url: https://tryverifyemail.com/docs/api/
servers:
  - url: https://api.tryverifyemail.com
security:
  - ApiKey: []
tags:
  - name: Verification
    description: Verify one address and collect its verdict.
  - name: Account
    description: Who the key belongs to and what it can spend.
paths:
  /v1/email-verifications:
    post:
      operationId: createEmailVerification
      tags: [Verification]
      summary: Verify an email address
      description: |
        Start a fresh live check of one address and wait up to `timeout`
        seconds for the verdict. Answers `200` with the result when the check
        finishes inside the window, or `202` with a `pending` body and a
        `Location` header to poll when it does not.

        Posting an address whose check from this account is still pending
        returns the **same `id`** rather than starting a second check; no second
        credit is held. The repeat waits up to its own `timeout`.

        A malformed address is a `200` with `undeliverable` /
        `invalid_syntax`, never a `400`. `400` is reserved for a malformed
        request: non-JSON, a missing, empty or over-long `email`, a field the
        body does not accept, or a bad `timeout`.
      parameters:
        - $ref: "#/components/parameters/Timeout"
        - name: Idempotency-Key
          in: header
          required: false
          description: |
            Optional caller-chosen key, up to 200 characters. Repeating a
            request with the same key returns the same verification instead
            of starting a second one. Longer values return
            `400 {"error":"Idempotency-Key is too long"}`.
          schema:
            type: string
            minLength: 1
            maxLength: 200
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateVerificationRequest"
            examples:
              plain:
                summary: Minimal request
                value:
                  email: jane@example.com
              attributed:
                summary: With a source label
                value:
                  email: jane@example.com
                  source: zapier
      responses:
        "200":
          $ref: "#/components/responses/Completed"
        "202":
          $ref: "#/components/responses/Pending"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "402":
          $ref: "#/components/responses/PaymentRequired"
        "429":
          $ref: "#/components/responses/RateLimited"
    get:
      operationId: listEmailVerifications
      tags: [Verification]
      summary: List recent verifications
      description: |
        One page of the **finished** single verifications made by this account,
        newest first. Pending checks are not listed until they finish. The page
        actually returned is reported back in `page`, so it may differ from the
        one asked for when the request was out of range.
      parameters:
        - name: page
          in: query
          required: false
          description: 1-based page number. Defaults to `1`.
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: page_size
          in: query
          required: false
          description: Rows per page, 1 to 50. Defaults to `10`.
          schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 10
      responses:
        "200":
          description: One page of finished verifications.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/VerificationsPage"
              example:
                rows:
                  - id: "5f1c9d2e-8b1a-4f5e-9c3d-2a7b6e4d1f08"
                    checked_at: "2026-09-05T06:35:00.000Z"
                    result:
                      email: jane@example.com
                      normalized_email: jane@example.com
                      verdict: deliverable
                      sub_status: mailbox_exists
                      quality_score: 95
                      confidence: 92
                      provider: google
                      primary_mx: aspmx.l.google.com
                      signals:
                        syntax: pass
                        domain: pass
                        mx: pass
                        smtp: pass
                        catch_all: pass
                        role_account: pass
                        disposable: pass
                        dnsbl: pass
                        toxic: pass
                        greylisting: pass
                      verified_at: "2026-09-05T06:35:01.000Z"
                page: 1
                page_size: 10
                total: 1
        "400":
          description: "`page` or `page_size` is not a whole number in range, or the query carries an unknown parameter."
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          $ref: "#/components/responses/Unauthorized"
  /v1/email-verifications/{id}:
    get:
      operationId: getEmailVerification
      tags: [Verification]
      summary: Fetch a verification by id
      description: |
        The current state of one verification. Without `timeout` the call
        answers immediately: `200` with the result once the check has
        finished, `202` while it is still running. With `timeout` it holds the
        request open like the create call does and returns `200` as soon as
        the result lands, or `202` when the window runs out.

        An `id` that never existed, or that belongs to another account, reads
        as `202 pending` rather than `404`: ids are unguessable capabilities and
        the server does not distinguish "unknown" from "in flight". Only poll
        ids you received from a create call. `404` is returned only for a
        request that misses this route entirely (for example an empty id
        segment).
      parameters:
        - name: id
          in: path
          required: true
          description: The `id` returned by the create call.
          schema:
            type: string
            minLength: 1
            maxLength: 128
        - $ref: "#/components/parameters/Timeout"
      responses:
        "200":
          $ref: "#/components/responses/Completed"
        "202":
          $ref: "#/components/responses/Pending"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "404":
          description: The path did not match this route. A well-formed but unknown id is a `202`, not a `404`.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
              example:
                error: Not Found
  /v1/me:
    get:
      operationId: getMe
      tags: [Account]
      summary: Describe the calling account
      description: |
        The account behind the key, its plan, the credits it can spend right
        now, and the key that made the call. Use it to validate a key during
        connection setup and to show a balance before a run.
      responses:
        "200":
          description: The calling account.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Me"
              example:
                email: jane@example.com
                plan: growth
                credits_available: 48210
                api_key:
                  id: "key_01J8YV3Q2M7X9K4R6T1W5N8B0D"
                  label: Zapier production
                  mode: live
        "401":
          $ref: "#/components/responses/Unauthorized"
        "402":
          description: The account is frozen and cannot spend credits.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AccountFrozenError"
              example:
                error: account_frozen
                reason: past_due
components:
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: "sk_…"
      description: |
        Your secret API key, sent as `Authorization: Bearer sk_…`. Keys are
        created in the dashboard under **API keys**. A missing, malformed,
        revoked or unknown key answers `401 {"error":"Unauthorized"}`.
  parameters:
    Timeout:
      name: timeout
      in: query
      required: false
      description: |
        Seconds to hold the request open while waiting for the verdict, a
        positive whole number. Values above `90` are clamped to `90`. On the
        create call the default is `5`; on the fetch call omitting it answers
        immediately. A value that is not a positive whole number (`0`, `-1`,
        `2.5`, `abc`) returns `400 {"error":"Invalid timeout"}`.

        `timeout` only controls how long **this HTTP request** waits. It never
        shortens or stops the verification: when it runs out you get a `202`
        and the check keeps running against the server's 180-second budget.
        Automation platforms with a 30-second step limit should send
        `timeout=25`.
      schema:
        type: integer
        minimum: 1
        maximum: 90
      example: 25
  responses:
    Completed:
      description: |
        The verification finished. The verdict is nested under `result`. This
        is also the shape of a malformed address (`undeliverable` /
        `invalid_syntax`) and of a check the mail server never answered inside
        the server's 180-second budget (`unknown` / `timeout`, terminal and not
        charged).
      headers:
        RateLimit-Limit:
          $ref: "#/components/headers/RateLimit-Limit"
        RateLimit-Remaining:
          $ref: "#/components/headers/RateLimit-Remaining"
        RateLimit-Reset:
          $ref: "#/components/headers/RateLimit-Reset"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/CompletedVerification"
          examples:
            deliverable:
              summary: Mailbox exists
              value:
                id: "5f1c9d2e-8b1a-4f5e-9c3d-2a7b6e4d1f08"
                status: completed
                result:
                  email: jane@example.com
                  normalized_email: jane@example.com
                  verdict: deliverable
                  sub_status: mailbox_exists
                  quality_score: 95
                  confidence: 92
                  provider: google
                  primary_mx: aspmx.l.google.com
                  signals:
                    syntax: pass
                    domain: pass
                    mx: pass
                    smtp: pass
                    catch_all: pass
                    role_account: pass
                    disposable: pass
                    dnsbl: pass
                    toxic: pass
                    greylisting: pass
                  verified_at: "2026-09-05T06:35:01.000Z"
            invalid_syntax:
              summary: Malformed address, decided instantly
              value:
                id: "9c4e7a1b-2d3f-4e5a-8b6c-7d8e9f0a1b2c"
                status: completed
                result:
                  email: "not-an-email"
                  normalized_email: "not-an-email"
                  verdict: undeliverable
                  sub_status: invalid_syntax
                  quality_score: 0
                  confidence: 100
                  provider: null
                  primary_mx: null
                  signals:
                    syntax: fail
                    domain: skipped
                    mx: skipped
                    smtp: skipped
                    catch_all: skipped
                    role_account: skipped
                    disposable: skipped
                    dnsbl: skipped
                    toxic: skipped
                    greylisting: skipped
                  verified_at: "2026-09-05T06:35:01.000Z"
            timeout:
              summary: Server-side 180 s budget spent (terminal, not charged)
              value:
                id: "2a7b6e4d-1f08-4f5e-9c3d-5f1c9d2e8b1a"
                status: completed
                result:
                  email: slow@example.net
                  normalized_email: slow@example.net
                  verdict: unknown
                  sub_status: timeout
                  quality_score: 0
                  confidence: 0
                  provider: null
                  primary_mx: null
                  signals:
                    syntax: skipped
                    domain: skipped
                    mx: skipped
                    smtp: skipped
                    catch_all: skipped
                    role_account: skipped
                    disposable: skipped
                    dnsbl: skipped
                    toxic: skipped
                    greylisting: skipped
                  verified_at: "2026-09-05T06:38:00.000Z"
    Pending:
      description: |
        The check had not finished when `timeout` ran out (or, on the fetch
        call without `timeout`, is still running). The body carries no
        `result`. Wait `poll_after_ms`, then `GET` the URL in `Location`.
      headers:
        Location:
          description: The poll URL for this verification, `/v1/email-verifications/{id}`.
          schema:
            type: string
          example: /v1/email-verifications/5f1c9d2e-8b1a-4f5e-9c3d-2a7b6e4d1f08
        RateLimit-Limit:
          $ref: "#/components/headers/RateLimit-Limit"
        RateLimit-Remaining:
          $ref: "#/components/headers/RateLimit-Remaining"
        RateLimit-Reset:
          $ref: "#/components/headers/RateLimit-Reset"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/PendingVerification"
          example:
            id: "5f1c9d2e-8b1a-4f5e-9c3d-2a7b6e4d1f08"
            status: pending
            poll_after_ms: 2000
            next_retry_at: "2026-09-05T06:35:03.000Z"
    BadRequest:
      description: |
        The request itself is malformed. `error` is one of:

        - `Invalid timeout`: `timeout` is not a positive whole number.
        - `Request body must be valid JSON`: the `POST` body could not be parsed.
        - `Invalid request body`: `email` is missing, empty, not a string or
          longer than 320 characters; `source` is empty or longer than 256
          characters; or the body has a field other than `email` and `source`.
        - `Idempotency-Key is too long`: the header exceeds 200 characters.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/Error"
          examples:
            timeout:
              value:
                error: Invalid timeout
            body:
              value:
                error: Invalid request body
            json:
              value:
                error: Request body must be valid JSON
    Unauthorized:
      description: The key is missing, malformed, revoked or unknown.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/Error"
          example:
            error: Unauthorized
    PaymentRequired:
      description: |
        The account cannot spend a credit. Two bodies, distinguished by
        `error`:

        - `insufficient_credits`: the wallet is empty. Nothing was started and
          nothing was charged. Top up, then retry.
        - `account_frozen`: the account is frozen; `reason` says why.
      content:
        application/json:
          schema:
            oneOf:
              - $ref: "#/components/schemas/InsufficientCreditsError"
              - $ref: "#/components/schemas/AccountFrozenError"
            discriminator:
              propertyName: error
              mapping:
                insufficient_credits: "#/components/schemas/InsufficientCreditsError"
                account_frozen: "#/components/schemas/AccountFrozenError"
          examples:
            insufficient_credits:
              value:
                error: insufficient_credits
                balance: 0
                required: 1
                shortfall: 1
            account_frozen:
              value:
                error: account_frozen
                reason: past_due
    RateLimited:
      description: |
        Too many requests from this account in a short window. Wait
        `retry_after` seconds (also sent as `Retry-After`), then send the
        request again. Successful responses carry the same three `RateLimit-*`
        headers so a client can pace itself before hitting this.
      headers:
        RateLimit-Limit:
          $ref: "#/components/headers/RateLimit-Limit"
        RateLimit-Remaining:
          $ref: "#/components/headers/RateLimit-Remaining"
        RateLimit-Reset:
          $ref: "#/components/headers/RateLimit-Reset"
        Retry-After:
          description: Seconds to wait before retrying. Same value as `retry_after` in the body.
          schema:
            type: integer
            minimum: 1
          example: 1
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/RateLimitedError"
          example:
            error: rate_limited
            retry_after: 1
  headers:
    RateLimit-Limit:
      description: The account's sustained rate, in requests per second.
      schema:
        type: integer
        minimum: 0
      example: 3
    RateLimit-Remaining:
      description: Requests that can be sent right now before being limited.
      schema:
        type: integer
        minimum: 0
      example: 5
    RateLimit-Reset:
      description: Seconds until the full burst allowance is available again. A duration, not a timestamp.
      schema:
        type: integer
        minimum: 0
      example: 1
  schemas:
    CreateVerificationRequest:
      type: object
      additionalProperties: false
      required:
        - email
      properties:
        email:
          type: string
          minLength: 1
          maxLength: 320
          description: |
            The address to verify. Validated only as a length-bounded string: a
            malformed address is accepted and comes back as a `200` with
            `undeliverable` / `invalid_syntax`.
        source:
          type: string
          minLength: 1
          maxLength: 256
          description: |
            Optional attribution label stored on the result (for example
            `zapier`, `make`, `n8n`, or the name of a form). Stored truncated
            to 32 characters. Defaults to `api` when omitted. Not returned in
            the response.
    CompletedVerification:
      type: object
      additionalProperties: false
      description: |
        A finished verification. The `x-hub-fields` extension lists the
        canonical flat projection every marketplace wrapper exposes, in order:
        `id`, `status` and the `result` fields hoisted to the top level, each
        signal as `signal_<name>`, plus `is_deliverable`, defined as
        `verdict == "deliverable"` on a completed check and `null` on a
        pending one. The fixtures in `fixtures/` pair each
        response with its exact flat projection.
      x-hub-fields:
        - id
        - status
        - email
        - normalized_email
        - verdict
        - sub_status
        - quality_score
        - confidence
        - provider
        - primary_mx
        - signal_syntax
        - signal_domain
        - signal_mx
        - signal_smtp
        - signal_catch_all
        - signal_role_account
        - signal_disposable
        - signal_dnsbl
        - signal_toxic
        - signal_greylisting
        - verified_at
        - is_deliverable
      required:
        - id
        - status
        - result
      properties:
        id:
          $ref: "#/components/schemas/VerificationId"
        status:
          type: string
          enum: [completed]
        result:
          $ref: "#/components/schemas/Result"
    PendingVerification:
      type: object
      additionalProperties: false
      description: |
        A verification still running. Carries no `result`. In the flat
        projection every result field is `null`, including `is_deliverable`.
      required:
        - id
        - status
        - poll_after_ms
        - next_retry_at
      properties:
        id:
          $ref: "#/components/schemas/VerificationId"
        status:
          type: string
          enum: [pending]
        poll_after_ms:
          type: integer
          minimum: 0
          description: Minimum wait before polling again, in milliseconds. Currently always `2000`.
        next_retry_at:
          type: string
          format: date-time
          description: The same wait as an absolute ISO 8601 UTC timestamp.
    VerificationId:
      type: string
      minLength: 1
      maxLength: 128
      description: Unique identifier for this verification (a UUID). Unguessable; treat it as a capability.
    Result:
      type: object
      additionalProperties: false
      description: The verdict for one address and the evidence behind it.
      required:
        - email
        - normalized_email
        - verdict
        - sub_status
        - quality_score
        - confidence
        - provider
        - primary_mx
        - signals
        - verified_at
      properties:
        email:
          type: string
          minLength: 1
          maxLength: 320
          description: |
            The address exactly as submitted. On an `invalid_syntax` result
            this is the malformed input, so it may not be a valid address.
        normalized_email:
          type: string
          minLength: 1
          maxLength: 320
          description: |
            The canonical form the verdict was computed against (trimmed,
            lower-cased domain). On an `invalid_syntax` result it repeats the
            input unchanged.
        verdict:
          type: string
          enum:
            - deliverable
            - undeliverable
            - risky
            - unknown
          description: |
            The final outcome.

            - `deliverable`: the mailbox accepts mail.
            - `undeliverable`: the mailbox rejects mail.
            - `risky`: the mailbox accepts mail but carries a material risk,
              such as a catch-all domain, a role address or a suspected
              disposable provider.
            - `unknown`: the recipient side could not be concluded, for example
              because its mail server refuses verification or did not answer
              inside the 180-second budget.
        sub_status:
          type: string
          nullable: true
          minLength: 1
          maxLength: 96
          description: |
            A machine-readable refinement of the verdict, or `null` when no
            refinement applies. Two values need handling:

            - `invalid_syntax`: the address is malformed. The response is still
              `200`, with `verdict` `undeliverable`, returned instantly without
              contacting any mail server.
            - `timeout`: comes with `verdict` `unknown`. The recipient's mail
              server did not answer within the server's 180-second budget. This
              is a terminal outcome: polling keeps returning it, and the credit
              held for the check was released, so it costs nothing. Retry the
              address later if you need a firmer answer.

            Other values include `mailbox_exists`, `mailbox_not_found`,
            `no_mail_domain`, `catch_all`, `accept_all`, `disposable`,
            `spam_trap` and `policy_refusal`. New values may be added, so treat
            an unrecognised value as informational.
        quality_score:
          type: integer
          minimum: 0
          maximum: 100
          description: Deliverability quality from 0 to 100. Higher is safer to send to.
        confidence:
          type: integer
          minimum: 0
          maximum: 100
          description: |
            How sure the API is of the verdict itself, from 0 to 100. A `risky`
            verdict at confidence 40 deserves a re-check; at 95 it does not.
        provider:
          type: string
          nullable: true
          minLength: 1
          maxLength: 96
          description: |
            The mail provider hosting the domain's mailboxes: `google`,
            `microsoft`, `yahoo`, `proofpoint`, `mimecast`, `zoho`, `amazon_ses`,
            `protonmail`, `apple`, `fastmail`, `self_hosted` or `other`. `null`
            when it could not be determined. New values may be added.
        primary_mx:
          type: string
          nullable: true
          maxLength: 253
          description: |
            The domain's highest-priority mail exchanger hostname, such as
            `aspmx.l.google.com`. `null` when the domain publishes none or the
            check never got that far.
        signals:
          $ref: "#/components/schemas/Signals"
        verified_at:
          type: string
          format: date-time
          description: When the verdict was produced, in ISO 8601 UTC.
    Signals:
      type: object
      description: |
        The outcome of each of the ten checks behind the verdict.

        - `syntax`: the address is well-formed.
        - `domain`: the domain exists in DNS.
        - `mx`: the domain publishes mail exchangers.
        - `smtp`: the mail server accepts the mailbox.
        - `catch_all`: whether the domain accepts every address.
        - `role_account`: whether the local part is a shared role such as `info@`.
        - `disposable`: whether the domain is a throwaway provider.
        - `dnsbl`: whether the domain or its mail servers are on DNS blocklists.
        - `toxic`: whether the address is a known spam trap.
        - `greylisting`: whether the server greylisted the check and whether a retry cleared it.
      required:
        - syntax
        - domain
        - mx
        - smtp
        - catch_all
        - role_account
        - disposable
        - dnsbl
        - toxic
        - greylisting
      additionalProperties: false
      properties:
        syntax:
          $ref: "#/components/schemas/SignalStatus"
        domain:
          $ref: "#/components/schemas/SignalStatus"
        mx:
          $ref: "#/components/schemas/SignalStatus"
        smtp:
          $ref: "#/components/schemas/SignalStatus"
        catch_all:
          $ref: "#/components/schemas/SignalStatus"
        role_account:
          $ref: "#/components/schemas/SignalStatus"
        disposable:
          $ref: "#/components/schemas/SignalStatus"
        dnsbl:
          $ref: "#/components/schemas/SignalStatus"
        toxic:
          $ref: "#/components/schemas/SignalStatus"
        greylisting:
          $ref: "#/components/schemas/SignalStatus"
    SignalStatus:
      type: string
      enum:
        - pass
        - fail
        - warn
        - unknown
        - skipped
        - error
      description: |
        The outcome of one check.

        - `pass`: the check succeeded cleanly.
        - `fail`: the check produced a definite negative reading.
        - `warn`: the check found a risk that is not fatal on its own.
        - `unknown`: the check ran but could not reach a conclusion.
        - `skipped`: the check was not run, usually because an earlier check already settled the verdict.
        - `error`: the check could not run because of a fault on our side.
    VerificationsPage:
      type: object
      additionalProperties: false
      required:
        - rows
        - page
        - page_size
        - total
      properties:
        rows:
          type: array
          items:
            $ref: "#/components/schemas/VerificationRow"
        page:
          type: integer
          minimum: 1
          description: The page actually returned, which may differ from the one requested.
        page_size:
          type: integer
          minimum: 1
          maximum: 50
        total:
          type: integer
          minimum: 0
          description: Rows across every page.
    VerificationRow:
      type: object
      additionalProperties: false
      required:
        - id
        - checked_at
        - result
      properties:
        id:
          $ref: "#/components/schemas/VerificationId"
        checked_at:
          type: string
          format: date-time
          description: |
            When this account made the request. Can differ from
            `result.verified_at`, which is when the verdict was produced.
        result:
          $ref: "#/components/schemas/Result"
    Me:
      type: object
      additionalProperties: false
      required:
        - email
        - plan
        - credits_available
        - api_key
      properties:
        email:
          type: string
          description: The account owner's login email.
        plan:
          type: string
          enum:
            - free
            - starter
            - growth
            - scale
            - appsumo_ltd_1
            - appsumo_ltd_2
            - appsumo_ltd_3
            - appsumo_ltd_4
            - appsumo_ltd_5
          description: |
            The account's plan. `appsumo_ltd_1`
            to `appsumo_ltd_5` are the AppSumo lifetime tiers 1 to 5.
        credits_available:
          type: integer
          minimum: 0
          description: Plan credits plus top-up credits spendable right now.
        api_key:
          type: object
          nullable: true
          additionalProperties: false
          description: The key that made this call. `null` only for a dashboard session, never for an `sk_` caller.
          required:
            - id
            - label
            - mode
          properties:
            id:
              type: string
              description: The key's id, never the secret.
            label:
              type: string
              description: The name given to the key in the dashboard.
            mode:
              type: string
              enum: [live, test]
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A short, stable error message.
    RateLimitedError:
      type: object
      required:
        - error
        - retry_after
      properties:
        error:
          type: string
          enum: [rate_limited]
        retry_after:
          type: integer
          minimum: 1
          description: Seconds to wait before retrying. Same value as the `Retry-After` header.
    InsufficientCreditsError:
      type: object
      required:
        - error
        - balance
        - required
        - shortfall
      properties:
        error:
          type: string
          enum: [insufficient_credits]
        balance:
          type: integer
          minimum: 0
          description: Plan credits plus top-up credits at the moment of the check.
        required:
          type: integer
          minimum: 1
        shortfall:
          type: integer
          minimum: 0
    AccountFrozenError:
      type: object
      required:
        - error
        - reason
      properties:
        error:
          type: string
          enum: [account_frozen]
        reason:
          type: string
          nullable: true
          enum: [past_due, cancelled, null]
          description: Why the account is frozen, or `null` when no reason was recorded.
