Flatfile subpackage_accounts API

The subpackage_accounts API from Flatfile — 1 operation(s) for subpackage_accounts.

Operations 2

GET /accounts/current Get the current account #
PATCH /accounts/current Update the current account #

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/flatfile-subpackage-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

flatfile-subpackage-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reference Subpackage Accounts API
  version: 1.0.0
servers:
- url: https://api.x.flatfile.com/v1
tags:
- name: subpackage_accounts
paths:
  /accounts/current:
    get:
      operationId: get-current
      summary: Get the current account
      description: Get the current account
      tags:
      - subpackage_accounts
      parameters:
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      - name: X-Disable-Hooks
        in: header
        required: true
        schema:
          type: string
          enum:
          - 'true'
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_accounts_AccountResponse'
    patch:
      operationId: update-current
      summary: Update the current account
      description: Update the current account
      tags:
      - subpackage_accounts
      parameters:
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      - name: X-Disable-Hooks
        in: header
        required: true
        schema:
          type: string
          enum:
          - 'true'
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_accounts_AccountResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/type_accounts_AccountPatch'
components:
  schemas:
    type_accounts_Account:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/type_commons_AccountId'
        name:
          type: string
        primaryDomain:
          type: string
        subdomain:
          type: string
        vanityDomainDashboard:
          type: string
        vanityDomainSpaces:
          type: string
        embeddedDomainWhitelist:
          type: array
          items:
            type: string
        customFromEmail:
          type: string
        stripeCustomerId:
          type: string
        metadata:
          type: object
          additionalProperties:
            description: Any type
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        defaultAppId:
          $ref: '#/components/schemas/type_commons_AppId'
        dashboard:
          type: integer
      required:
      - id
      - name
      - metadata
      - createdAt
      - updatedAt
      description: An account
      title: Account
    type_accounts_AccountResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/type_accounts_Account'
      required:
      - data
      title: AccountResponse
    type_commons_AccountId:
      type: string
      description: Account ID
      title: AccountId
    type_commons_AppId:
      type: string
      description: App ID
      title: AppId
    type_accounts_AccountPatch:
      type: object
      properties:
        name:
          type: string
        defaultAppId:
          $ref: '#/components/schemas/type_commons_AppId'
      description: Properties used to update an account
      title: AccountPatch
  securitySchemes:
    default:
      type: http
      scheme: bearer