Audifact Account API

The account API from Audifact — 15 operation(s) for account.

Operations 15

GET /account Account Settings Page #
POST /account/resend-verification Account Resend Verification #
POST /account/email Account Change Email #
POST /account/password/set Account Set Password #
POST /account/password Account Change Password #
GET /account/credits Account Credits Page #
GET /account/credits/ledger Account Credits Ledger #
GET /account/credits/panels Account Credits Panels #
POST /account/credits/create-checkout Account Credits Create Checkout #
POST /account/credits/stripe-webhook Account Credits Stripe Webhook #
POST /account/credits/top-up Account Credits Top Up #
GET /usage/status Usage Status #
POST /account/subscribe/create-checkout Account Subscribe Create Checkout #
POST /account/subscribe/manage Account Subscribe Manage #
POST /account/cancel-subscription Account Cancel Subscription #

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/audifact-io:audifact-io-account-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

audifact-io-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Audifact Account API
  version: 0.1.0
tags:
- name: Account
paths:
  /account:
    get:
      tags:
      - Account
      summary: Account Settings Page
      operationId: account_settings_page_account_get
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
      security:
      - HTTPBearer: []
  /account/resend-verification:
    post:
      tags:
      - Account
      summary: Account Resend Verification
      operationId: account_resend_verification_account_resend_verification_post
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
      security:
      - HTTPBearer: []
  /account/email:
    post:
      tags:
      - Account
      summary: Account Change Email
      description: Change login email; clears verification and queues a new verify link.
      operationId: account_change_email_account_email_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_account_change_email_account_email_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /account/password/set:
    post:
      tags:
      - Account
      summary: Account Set Password
      description: 'OAuth-only accounts: set a local password without a current password.'
      operationId: account_set_password_account_password_set_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_account_set_password_account_password_set_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /account/password:
    post:
      tags:
      - Account
      summary: Account Change Password
      operationId: account_change_password_account_password_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_account_change_password_account_password_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /account/credits:
    get:
      tags:
      - Account
      summary: Account Credits Page
      operationId: account_credits_page_account_credits_get
      security:
      - HTTPBearer: []
      parameters:
      - name: page
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            minimum: 1
          - type: 'null'
          title: Page
      - name: per_page
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 100
            minimum: 1
          - type: 'null'
          title: Per Page
      - name: type
        in: query
        required: false
        schema:
          type: string
          default: all
          title: Type
      - name: checkout
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Checkout
      - name: session_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
      - name: upgrade
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Upgrade
      - name: reactivated
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Reactivated
      - name: canceled
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Canceled
      - name: portal
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Portal
      - name: notice
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Notice
      - name: plan
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Plan
      - name: verb
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Verb
      - name: amount
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            minimum: 1
          - type: 'null'
          title: Amount
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /account/credits/ledger:
    get:
      tags:
      - Account
      summary: Account Credits Ledger
      operationId: account_credits_ledger_account_credits_ledger_get
      security:
      - HTTPBearer: []
      parameters:
      - name: page
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            minimum: 1
          - type: 'null'
          title: Page
      - name: per_page
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 100
            minimum: 1
          - type: 'null'
          title: Per Page
      - name: type
        in: query
        required: false
        schema:
          type: string
          default: all
          title: Type
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /account/credits/panels:
    get:
      tags:
      - Account
      summary: Account Credits Panels
      operationId: account_credits_panels_account_credits_panels_get
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
      security:
      - HTTPBearer: []
  /account/credits/create-checkout:
    post:
      tags:
      - Account
      summary: Account Credits Create Checkout
      operationId: account_credits_create_checkout_account_credits_create_checkout_post
      security:
      - HTTPBearer: []
      parameters:
      - name: credits
        in: query
        required: true
        schema:
          type: integer
          minimum: 1
          title: Credits
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /account/credits/stripe-webhook:
    post:
      tags:
      - Account
      summary: Account Credits Stripe Webhook
      operationId: account_credits_stripe_webhook_account_credits_stripe_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /account/credits/top-up:
    post:
      tags:
      - Account
      summary: Account Credits Top Up
      operationId: account_credits_top_up_account_credits_top_up_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_account_credits_top_up_account_credits_top_up_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /usage/status:
    get:
      tags:
      - Account
      summary: Usage Status
      description: 'Return current usage metering status for the account (trial/grace enforcement).


        Supports two auth paths (no breaking change):

        - Web/dashboard: cookie or Authorization: Bearer token

        - API clients: standard header -H "X-API-Key: af_..."


        Uses lookup_api_key_for_ingest for the API key path (same as events/mcp).

        Then get_or_create_account_usage for the resolved account.

        Returns status (active/warning/grace/exhausted/over_limit) + level for UI colors.'
      operationId: usage_status_usage_status_get
      parameters:
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /account/subscribe/create-checkout:
    post:
      tags:
      - Account
      summary: Account Subscribe Create Checkout
      description: 'Start a usage plan subscription (Starter or Pro).


        New subscriptions: first month charged immediately at checkout.

        Upgrades (e.g. Starter → Pro): prorated difference on the existing subscription,

        tier/quota switch immediately, billing cycle unchanged.'
      operationId: account_subscribe_create_checkout_account_subscribe_create_checkout_post
      security:
      - HTTPBearer: []
      parameters:
      - name: plan
        in: query
        required: false
        schema:
          type: string
          default: starter
          title: Plan
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /account/subscribe/manage:
    post:
      tags:
      - Account
      summary: Account Subscribe Manage
      description: Redirect to Stripe Customer Portal to manage or cancel the subscription.
      operationId: account_subscribe_manage_account_subscribe_manage_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /account/cancel-subscription:
    post:
      tags:
      - Account
      summary: Account Cancel Subscription
      description: 'Admin shortcut: cancel at period end (same outcome as Stripe Customer Portal).'
      operationId: account_cancel_subscription_account_cancel_subscription_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    Body_account_change_password_account_password_post:
      properties:
        current_password:
          type: string
          title: Current Password
        new_password:
          type: string
          title: New Password
        confirm_password:
          type: string
          title: Confirm Password
      type: object
      required:
      - current_password
      - new_password
      - confirm_password
      title: Body_account_change_password_account_password_post
    Body_account_change_email_account_email_post:
      properties:
        new_email:
          type: string
          title: New Email
        current_password:
          type: string
          title: Current Password
          default: ''
      type: object
      required:
      - new_email
      title: Body_account_change_email_account_email_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Body_account_credits_top_up_account_credits_top_up_post:
      properties:
        amount:
          type: integer
          title: Amount
        reason:
          type: string
          title: Reason
          default: admin_top_up
        reference:
          type: string
          title: Reference
          default: ''
      type: object
      required:
      - amount
      title: Body_account_credits_top_up_account_credits_top_up_post
    Body_account_set_password_account_password_set_post:
      properties:
        new_password:
          type: string
          title: New Password
        confirm_password:
          type: string
          title: Confirm Password
      type: object
      required:
      - new_password
      - confirm_password
      title: Body_account_set_password_account_password_set_post
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer