TaxCompass Account API

The account API from TaxCompass — 8 operation(s) for account.

GitHub OpenAPI

Operations 11

GET /api/me Me #
DELETE /api/me Delete My Account #
GET /api/me/access Get App Access #
GET /api/me/profile Get Profile #
PUT /api/me/profile Update Profile #
GET /api/me/notifications Get Notification Prefs #
PUT /api/me/notifications Update Notification Prefs #
POST /api/me/consent Record Consent #
GET /api/me/export Export My Data #
GET /api/me/export.zip Export My Data Archive #
DELETE /api/me/autopilot Delete My Autopilot Data #

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/taxcompass-it:taxcompass-it-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

taxcompass-it-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TaxCompass Account API
  version: 0.1.0
tags:
- name: Account
paths:
  /api/me:
    get:
      tags:
      - Account
      summary: Me
      operationId: me_api_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentUser'
      security:
      - HTTPBearer: []
    delete:
      tags:
      - Account
      summary: Delete My Account
      description: 'Erase the account. Autopilot rows go with it via ``ON DELETE CASCADE``.


        ``require_fresh_auth`` rather than ``get_current_user``: erasure is the one

        action here that cannot be undone, so the token has to have been

        authenticated in the last few minutes (#597). The export paths above are

        deliberately *not* gated — reading your own data is not destructive, and

        friction there discourages the export we tell people to take before deleting.'
      operationId: delete_my_account_api_me_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties:
                  type: boolean
                type: object
                title: Response Delete My Account Api Me Delete
      security:
      - HTTPBearer: []
  /api/me/access:
    get:
      tags:
      - Account
      summary: Get App Access
      description: 'May this account use app.taxcompass.it? The app''s only gate asks this.


        Records the account and claims a waiting invite (``services/app_access.py``),

        so an invited person is in on their first load. ``app`` is false wherever the

        app''s backend is switched off (``autopilot_enabled``), whatever the account

        holds — the routes behind it would 404 there.'
      operationId: get_app_access_api_me_access_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppAccess'
      security:
      - HTTPBearer: []
  /api/me/profile:
    get:
      tags:
      - Account
      summary: Get Profile
      operationId: get_profile_api_me_profile_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProfile'
      security:
      - HTTPBearer: []
    put:
      tags:
      - Account
      summary: Update Profile
      operationId: update_profile_api_me_profile_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserProfile'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProfile'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/me/notifications:
    get:
      tags:
      - Account
      summary: Get Notification Prefs
      description: 'What TaxCompass may email this account about (AP-115).


        Read-only and total: a user whose row does not exist yet gets the same

        defaults a digest would act on, not a 404.'
      operationId: get_notification_prefs_api_me_notifications_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferences'
      security:
      - HTTPBearer: []
    put:
      tags:
      - Account
      summary: Update Notification Prefs
      description: 'Set the email preferences. The body is the resulting state, not a patch.


        This is the in-app half of the opt-out; the emails themselves carry the

        no-login unsubscribe link, and both flip the same column.'
      operationId: update_notification_prefs_api_me_notifications_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NotificationPreferences'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferences'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/me/consent:
    post:
      tags:
      - Account
      summary: Record Consent
      operationId: record_consent_api_me_consent_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConsentRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties:
                  type: boolean
                type: object
                title: Response Record Consent Api Me Consent Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/me/export:
    get:
      tags:
      - Account
      summary: Export My Data
      description: Everything we hold about the caller, in one JSON document.
      operationId: export_my_data_api_me_export_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Export My Data Api Me Export Get
      security:
      - HTTPBearer: []
  /api/me/export.zip:
    get:
      tags:
      - Account
      summary: Export My Data Archive
      description: 'The same export as a ZIP: ``export.json`` + the invoice XMLs + ``incassi.csv``.


        Same data, file-shaped — the transmitted FatturaPA documents are what a

        commercialista (or a competing provider, which is what portability is for)

        actually needs as files.'
      operationId: export_my_data_archive_api_me_export_zip_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /api/me/autopilot:
    delete:
      tags:
      - Account
      summary: Delete My Autopilot Data
      description: 'Purge every autopilot table, keeping the account and its conversations.


        Idempotent, and a no-op reporting ``0`` while the feature is dark — an

        erasure route must never fail, so it does not 404 the way the autopilot

        router does.'
      operationId: delete_my_autopilot_data_api_me_autopilot_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties:
                  type: integer
                type: object
                title: Response Delete My Autopilot Data Api Me Autopilot Delete
      security:
      - HTTPBearer: []
components:
  schemas:
    AppAccess:
      properties:
        app:
          type: boolean
          title: App
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      type: object
      required:
      - app
      title: AppAccess
      description: '``GET /api/me/access`` — whether this account may use app.taxcompass.it.


        ``email`` is what the server holds for the account, so the "not in yet"

        screen can say which account it is talking about (a person with two

        sign-in methods is the usual reason for a surprise here).'
    UserProfile:
      properties:
        first_name:
          anyOf:
          - type: string
            maxLength: 128
          - type: 'null'
          title: First Name
        last_name:
          anyOf:
          - type: string
            maxLength: 128
          - type: 'null'
          title: Last Name
        country:
          anyOf:
          - type: string
            maxLength: 2
          - type: 'null'
          title: Country
        profession:
          anyOf:
          - type: string
            maxLength: 128
          - type: 'null'
          title: Profession
        birth_date:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Birth Date
      type: object
      title: UserProfile
      description: Optional self-service profile (filled on /account, all fields optional).
    ConsentRequest:
      properties:
        policy:
          type: string
          pattern: ^(tos|privacy|pii_processing)$
          title: Policy
        version:
          type: string
          maxLength: 32
          minLength: 1
          title: Version
      type: object
      required:
      - policy
      - version
      title: ConsentRequest
    CurrentUser:
      properties:
        id:
          type: string
          title: Id
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        tenant_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Tenant Id
      type: object
      required:
      - id
      title: CurrentUser
    NotificationPreferences:
      properties:
        email_deadline_reminders:
          type: boolean
          title: Email Deadline Reminders
      type: object
      required:
      - email_deadline_reminders
      title: NotificationPreferences
      description: 'What TaxCompass may email this account about (AP-115).


        One field today, and it is a *whole* preference rather than a patch: a PUT

        states the resulting state. The field is therefore **required** — an omitted

        key would otherwise fall back to the default and silently re-enable a channel

        the user had just switched off, which is the one failure mode an opt-out must

        not have. The digest''s own idempotency stamp (``users.last_digest_at``) is

        deliberately absent: it is the sender''s bookkeeping, not something a user

        sets.'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer