Merge Subpackage Account Token API

The subpackage_accountToken API from Merge — 16 operation(s) for subpackage_accounttoken.

GitHub OpenAPI

Operations 16

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /accounting/v1/account-token/{public_token} Get an accounting linked account's account token · Retrieve #
Ask an LLM
“How do I exchange an accounting integration's public token for an account token?”
“Which account token belongs to the user who just linked their accounting software?”
Tell an agent
Exchange accounting public token {public_token} for its account token.
Look up the ledger connection's account token using public token {public_token}.
POST /accounting/v1/account-token/regenerate Rotate an accounting linked account's token · Regenerate Create #
Ask an LLM
“Can I rotate the account token of a connected accounting platform?”
“Is there a way to issue a fresh token for a bookkeeping integration?”
Tell an agent destructive · confirm first
Regenerate the account token for accounting linked account {account_token}.
Swap out my accounting integration's token for a new one.
GET /ats/v1/account-token/{public_token} Get a recruiting linked account's account token · Retrieve #
Ask an LLM
“What account token do I get after a customer links their applicant tracking system?”
“Can I trade an ATS public token for the permanent account token?”
Tell an agent
Exchange ATS public token {public_token} for its account token.
Retrieve the recruiting integration token for public token {public_token}.
POST /ats/v1/account-token/regenerate Rotate a recruiting linked account's token · Regenerate Create #
Ask an LLM
“How do I regenerate the token for a linked applicant tracking system?”
“Can a hiring-platform connection get a brand new account token?”
Tell an agent destructive · confirm first
Regenerate the account token for ATS linked account {account_token}.
Issue a replacement token for my recruiting integration.
GET /account-token/{public_token} Get a chat linked account's account token · Retrieve #
Ask an LLM
“How do I turn a chat integration's public token into an account token?”
“Which account token was issued when a user connected their messaging workspace?”
Tell an agent
Exchange chat public token {public_token} for its account token.
Fetch the messaging workspace token behind public token {public_token}.
POST /account-token/regenerate Rotate a chat linked account's token · Regenerate Create #
Ask an LLM
“Can I rotate the account token of a linked chat workspace?”
“Is it possible to reissue the token for a messaging integration?”
Tell an agent destructive · confirm first
Regenerate the account token for chat linked account {account_token}.
Rotate the token on my messaging workspace connection.
GET /crm/v1/account-token/{public_token} Get a CRM linked account's account token · Retrieve #
Ask an LLM
“What account token maps to the public token from a CRM link flow?”
“Can I retrieve the account token once a sales team connects its CRM?”
Tell an agent
Exchange CRM public token {public_token} for its account token.
Get the sales-system account token for public token {public_token}.
POST /crm/v1/account-token/regenerate Rotate a CRM linked account's token · Regenerate Create #
Ask an LLM
“How can I generate a new account token for a connected CRM?”
“Can I replace a leaked CRM integration token?”
Tell an agent destructive · confirm first
Regenerate the account token for CRM linked account {account_token}.
Give my CRM connection a fresh account token.
GET /filestorage/v1/account-token/{public_token} Get a file storage linked account's account token · Retrieve #
Ask an LLM
“Which account token corresponds to a file storage public token?”
“How do I finish linking a cloud drive by fetching its account token?”
Tell an agent
Exchange file storage public token {public_token} for its account token.
Retrieve the drive integration's account token for {public_token}.
POST /filestorage/v1/account-token/regenerate Rotate a file storage linked account's token · Regenerate Create #
Ask an LLM
“Can I regenerate the token for a linked file storage account?”
“Is there a way to reset the credentials token on a cloud drive connection?”
Tell an agent destructive · confirm first
Regenerate the account token for file storage linked account {account_token}.
Rotate the token on my document storage integration.
GET /hris/v1/account-token/{public_token} Get an HRIS linked account's account token · Retrieve #
Ask an LLM
“What account token is issued when a company links its HR system?”
“Can I exchange an HRIS public token for the long-lived account token?”
Tell an agent
Exchange HRIS public token {public_token} for its account token.
Look up the HR platform account token for public token {public_token}.
POST /hris/v1/account-token/regenerate Rotate an HRIS linked account's token · Regenerate Create #
Ask an LLM
“How do I issue a new token for a linked payroll or HR system?”
“Can an HRIS connection's account token be regenerated?”
Tell an agent destructive · confirm first
Regenerate the account token for HRIS linked account {account_token}.
Replace the token on my HR system integration.
GET /knowledgebase/v1/account-token/{public_token} Get a knowledge base linked account's token · Retrieve #
Ask an LLM
“Which account token belongs to a newly linked knowledge base?”
“How do I convert a help-center public token into an account token?”
Tell an agent
Exchange knowledge base public token {public_token} for its account token.
Fetch the help center connection's account token for {public_token}.
POST /knowledgebase/v1/account-token/regenerate Rotate a knowledge base linked account's token · Regenerate Create #
Ask an LLM
“Can I rotate the token for a connected knowledge base?”
“Is regenerating a documentation wiki's account token supported?”
Tell an agent destructive · confirm first
Regenerate the account token for knowledge base linked account {account_token}.
Issue a new token for my wiki integration.
GET /ticketing/v1/account-token/{public_token} Get a ticketing linked account's account token · Retrieve #
Ask an LLM
“What account token do I receive after a helpdesk is linked?”
“Can I swap a ticketing public token for its account token?”
Tell an agent
Exchange ticketing public token {public_token} for its account token.
Get the issue tracker's account token for public token {public_token}.
POST /ticketing/v1/account-token/regenerate Rotate a ticketing linked account's token · Regenerate Create #
Ask an LLM
“How do I regenerate the account token for a linked helpdesk?”
“Can a ticketing integration be given a new token after a leak?”
Tell an agent destructive · confirm first
Regenerate the account token for ticketing linked account {account_token}.
Rotate the token on my issue tracker connection.

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/hris-api-employee-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/hris-api-employee-structure.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/ats-api-candidate-schema.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/ats-api-application-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/ats-api-candidate-structure.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/accounting-api-invoice-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/accounting-api-invoice-structure.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/ticketing-api-ticket-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/ticketing-api-ticket-structure.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/crm-api-opportunity-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/crm-api-opportunity-structure.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/file-storage-api-file-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/file-storage-api-file-structure.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/knowledge-base-api-article-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/knowledge-base-api-article-structure.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/chat-api-message-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/chat-api-message-structure.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/agent-handler-tool-pack-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/agent-handler-tool-pack-structure.json
📊
JSONSchema
https://artifacts.apis.io/merge/json-schema/gateway-response-schema.json
📊
JSONStructure
https://artifacts.apis.io/merge/json-structure/gateway-response-structure.json

Other Resources

🔗
Website
https://www.merge.dev/categories/hr-payroll-api
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-hris-api-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/hris-api-employee-example.json
🔗
Website
https://www.merge.dev/categories/ats-recruiting-api
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-ats-api-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/ats-api-candidate-example.json
🔗
Examples
https://artifacts.apis.io/merge/examples/ats-api-application-example.json
🔗
Website
https://www.merge.dev/categories/accounting-api
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-accounting-api-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/accounting-api-invoice-example.json
🔗
Website
https://www.merge.dev/categories/ticketing-api
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-ticketing-api-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/ticketing-api-ticket-example.json
🔗
Website
https://www.merge.dev/categories/crm-api
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-crm-api-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/crm-api-opportunity-example.json
🔗
Website
https://www.merge.dev/categories/file-storage-api
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-file-storage-api-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/file-storage-api-file-example.json
🔗
Website
https://www.merge.dev/categories/knowledge-base
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-knowledge-base-api-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/knowledge-base-api-article-example.json
🔗
Website
https://www.merge.dev/categories/chat
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-chat-api-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/chat-api-message-example.json
🔗
Website
https://www.merge.dev/merge-agent-handler
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-agent-handler-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/agent-handler-tool-pack-example.json
🔗
Support
https://help.ah.merge.dev/
🔗
Website
https://www.merge.dev/gateway
🔗
JSONLD
https://artifacts.apis.io/merge/json-ld/merge-gateway-context.jsonld
🔗
Examples
https://artifacts.apis.io/merge/examples/gateway-response-example.json

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/merge:merge-subpackage-accounttoken-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

merge-subpackage-accounttoken-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Merge Subpackage Account Token API
  version: 1.0.0
  description: 'Operations tagged subpackage_accountToken across 8 of this provider''s published API definitions: merge-accounting-api-openapi.yaml, merge-ats-api-openapi.yaml, merge-chat-api-openapi.yaml, merge-crm-api-openapi.yaml, merge-file-storage-api-openapi.yaml, merge-hris-api-openapi.yaml, merge-knowledge-base-api-openapi.yaml, merge-ticketing-api-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.merge.dev/api
- url: https://api-eu.merge.dev/api
- url: https://api-ap.merge.dev/api
- url: https://api.merge.dev/api/chat/v1
- url: https://api-eu.merge.dev/api/chat/v1
- url: https://api-ap.merge.dev/api/chat/v1
- url: https://api-ap.merge.dev/api/knowledgebase/v1
tags:
- name: subpackage_accountToken
paths:
  /accounting/v1/account-token/{public_token}:
    get:
      operationId: retrieve
      summary: Retrieve
      description: Returns the account token for the end user with the provided public token.
      tags:
      - subpackage_accountToken
      parameters:
      - name: public_token
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountToken'
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /accounting/v1/account-token/regenerate:
    post:
      operationId: regenerate-create
      summary: Regenerate Create
      description: Exchange Linked Account account tokens.
      tags:
      - subpackage_accountToken
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegenerateAccountToken'
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /ats/v1/account-token/{public_token}:
    get:
      operationId: getAtsV1AccountTokenByPublicToken
      summary: Retrieve
      description: Returns the account token for the end user with the provided public token.
      tags:
      - subpackage_accountToken
      parameters:
      - name: public_token
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: retrieve
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /ats/v1/account-token/regenerate:
    post:
      operationId: postAtsV1AccountTokenRegenerate
      summary: Regenerate Create
      description: Exchange Linked Account account tokens.
      tags:
      - subpackage_accountToken
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegenerateAccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: regenerate-create
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /account-token/{public_token}:
    get:
      operationId: getAccountTokenByPublicToken
      summary: Retrieve
      description: Returns the account token for the end user with the provided public token.
      tags:
      - subpackage_accountToken
      parameters:
      - name: public_token
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: retrieve
    servers:
    - url: https://api.merge.dev/api/chat/v1
    - url: https://api-eu.merge.dev/api/chat/v1
    - url: https://api-ap.merge.dev/api/chat/v1
  /account-token/regenerate:
    post:
      operationId: postAccountTokenRegenerate
      summary: Regenerate Create
      description: Exchange Linked Account account tokens.
      tags:
      - subpackage_accountToken
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegenerateAccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: regenerate-create
    servers:
    - url: https://api.merge.dev/api/chat/v1
    - url: https://api-eu.merge.dev/api/chat/v1
    - url: https://api-ap.merge.dev/api/chat/v1
  /crm/v1/account-token/{public_token}:
    get:
      operationId: getCrmV1AccountTokenByPublicToken
      summary: Retrieve
      description: Returns the account token for the end user with the provided public token.
      tags:
      - subpackage_accountToken
      parameters:
      - name: public_token
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: retrieve
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /crm/v1/account-token/regenerate:
    post:
      operationId: postCrmV1AccountTokenRegenerate
      summary: Regenerate Create
      description: Exchange Linked Account account tokens.
      tags:
      - subpackage_accountToken
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegenerateAccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: regenerate-create
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /filestorage/v1/account-token/{public_token}:
    get:
      operationId: getFilestorageV1AccountTokenByPublicToken
      summary: Retrieve
      description: Returns the account token for the end user with the provided public token.
      tags:
      - subpackage_accountToken
      parameters:
      - name: public_token
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: retrieve
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /filestorage/v1/account-token/regenerate:
    post:
      operationId: postFilestorageV1AccountTokenRegenerate
      summary: Regenerate Create
      description: Exchange Linked Account account tokens.
      tags:
      - subpackage_accountToken
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegenerateAccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: regenerate-create
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /hris/v1/account-token/{public_token}:
    get:
      operationId: getHrisV1AccountTokenByPublicToken
      summary: Retrieve
      description: Returns the account token for the end user with the provided public token.
      tags:
      - subpackage_accountToken
      parameters:
      - name: public_token
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: retrieve
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /hris/v1/account-token/regenerate:
    post:
      operationId: postHrisV1AccountTokenRegenerate
      summary: Regenerate Create
      description: Exchange Linked Account account tokens.
      tags:
      - subpackage_accountToken
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegenerateAccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: regenerate-create
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /knowledgebase/v1/account-token/{public_token}:
    get:
      operationId: getKnowledgebaseV1AccountTokenByPublicToken
      summary: Retrieve
      description: Returns the account token for the end user with the provided public token.
      tags:
      - subpackage_accountToken
      parameters:
      - name: public_token
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: retrieve
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
    - url: https://api-ap.merge.dev/api/knowledgebase/v1
  /knowledgebase/v1/account-token/regenerate:
    post:
      operationId: postKnowledgebaseV1AccountTokenRegenerate
      summary: Regenerate Create
      description: Exchange Linked Account account tokens.
      tags:
      - subpackage_accountToken
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegenerateAccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: regenerate-create
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
    - url: https://api-ap.merge.dev/api/knowledgebase/v1
  /ticketing/v1/account-token/{public_token}:
    get:
      operationId: getTicketingV1AccountTokenByPublicToken
      summary: Retrieve
      description: Returns the account token for the end user with the provided public token.
      tags:
      - subpackage_accountToken
      parameters:
      - name: public_token
        in: path
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: retrieve
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
  /ticketing/v1/account-token/regenerate:
    post:
      operationId: postTicketingV1AccountTokenRegenerate
      summary: Regenerate Create
      description: Exchange Linked Account account tokens.
      tags:
      - subpackage_accountToken
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegenerateAccountToken'
      x-operation-id-source: normalized
      x-operation-id-original: regenerate-create
    servers:
    - url: https://api.merge.dev/api
    - url: https://api-eu.merge.dev/api
    - url: https://api-ap.merge.dev/api
components:
  schemas:
    AccountIntegrationCategoryBetaStatus:
      type: object
      properties: {}
      description: Category or categories this integration is in beta status for.
      title: AccountIntegrationCategoryBetaStatus
    CategoriesEnum:
      type: string
      enum:
      - hris
      - ats
      - accounting
      - ticketing
      - crm
      - mktg
      - filestorage
      - knowledgebase
      title: CategoriesEnum
    AccountIntegration:
      type: object
      properties:
        name:
          type: string
          description: Company name.
        abbreviated_name:
          type:
          - string
          - 'null'
          description: 'Optional. This shortened name appears in places with limited space, usually in conjunction with the platform''s logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>'
        categories:
          type: array
          items:
            $ref: '#/components/schemas/CategoriesEnum'
          description: Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].
        image:
          type:
          - string
          - 'null'
          format: uri
          description: Company logo in rectangular shape.
        square_image:
          type:
          - string
          - 'null'
          format: uri
          description: Company logo in square shape.
        color:
          type: string
          description: The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>
        slug:
          type: string
        api_endpoints_to_documentation_urls:
          type: object
          additionalProperties:
            description: Any type
          description: 'Mapping of API endpoints to documentation urls for support. Example: {''GET'': [[''/common-model-scopes'', ''https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve''],[''/common-model-actions'', ''https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve'']], ''POST'': []}'
        webhook_setup_guide_url:
          type:
          - string
          - 'null'
          description: Setup guide URL for third party webhook creation. Exposed in Merge Docs.
        category_beta_status:
          $ref: '#/components/schemas/AccountIntegrationCategoryBetaStatus'
          description: Category or categories this integration is in beta status for.
      required:
      - name
      title: AccountIntegration
    RegenerateAccountToken:
      type: object
      properties:
        linked_account_id:
          type: string
        account_token:
          type: string
      required:
      - linked_account_id
      - account_token
      description: '# The RegenerateAccountToken Object

        ### Description

        The `RegenerateAccountToken` object is used to exchange an old account token for a new one.


        ### Usage Example

        Post to receive a new `RegenerateAccountToken`.'
      title: RegenerateAccountToken
    AccountToken:
      type: object
      properties:
        account_token:
          type: string
        integration:
          $ref: '#/components/schemas/AccountIntegration'
        id:
          type: string
      required:
      - account_token
      - integration
      - id
      title: AccountToken
    CategoriesEnum_2:
      type: string
      enum:
      - hris
      - ats
      - accounting
      - ticketing
      - crm
      - mktg
      - filestorage
      - knowledgebase
      description: '* `hris` - hris

        * `ats` - ats

        * `accounting` - accounting

        * `ticketing` - ticketing

        * `crm` - crm

        * `mktg` - mktg

        * `filestorage` - filestorage

        * `knowledgebase` - knowledgebase'
      title: CategoriesEnum
  securitySchemes:
    tokenAuth:
      type: http
      scheme: bearer
      description: Token-based authentication with required prefix "Bearer"
x-refined-from:
- merge-accounting-api-openapi.yaml
- merge-ats-api-openapi.yaml
- merge-chat-api-openapi.yaml
- merge-crm-api-openapi.yaml
- merge-file-storage-api-openapi.yaml
- merge-hris-api-openapi.yaml
- merge-knowledge-base-api-openapi.yaml
- merge-ticketing-api-openapi.yaml