SyncMetrics LLC Connected Accounts API

The Connected Accounts API from SyncMetrics LLC — 2 operation(s) for connected accounts.

GitHub OpenAPI

Operations 4

GET /api/connected-accounts Api List Connected Accounts #
POST /api/connected-accounts Api Add Connected Account #
DELETE /api/connected-accounts Api Remove Connected Account #
POST /api/connected-accounts/set-primary Api Set Primary 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/syncmetrics-io:syncmetrics-io-connected-accounts-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

syncmetrics-io-connected-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Connected Accounts API
  version: 0.1.0
tags:
- name: Connected Accounts
paths:
  /api/connected-accounts:
    get:
      summary: Api List Connected Accounts
      description: List all ad accounts connected for the user on the given platform.
      operationId: api_list_connected_accounts_api_connected_accounts_get
      parameters:
      - name: platform
        in: query
        required: false
        schema:
          type: string
          default: meta
          title: Platform
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Connected Accounts
    post:
      summary: Api Add Connected Account
      description: 'Add an ad account to the user''s connected list.


        Body: { platform: "meta", account_id: "123", account_name: "...", currency: "USD" }

        Plan limit enforced server-side.'
      operationId: api_add_connected_account_api_connected_accounts_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Connected Accounts
    delete:
      summary: Api Remove Connected Account
      description: 'Remove an ad account from the user''s connected list.


        Two storage paths exist for historical reasons:

        1. user_ad_accounts — the modern multi-account table

        2. user_settings.selected_account_id — the legacy single-account

        entry, written by the OAuth callback and used as a fallback by

        get_connected_accounts() when user_ad_accounts is empty.


        A legacy single-account user (e.g. anyone who connected Google before

        the multi-account UI shipped) only has the user_settings row. Deleting

        just user_ad_accounts is a silent no-op for them — the fallback keeps

        resurrecting the same account on the next GET. So we ALSO check

        user_settings here and clear it whenever the removed account_id is the

        one stored there.'
      operationId: api_remove_connected_account_api_connected_accounts_delete
      parameters:
      - name: platform
        in: query
        required: false
        schema:
          type: string
          default: meta
          title: Platform
      - name: account_id
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Connected Accounts
  /api/connected-accounts/set-primary:
    post:
      summary: Api Set Primary Account
      description: Mark one of the user's connected accounts as the primary (default).
      operationId: api_set_primary_account_api_connected_accounts_set_primary_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Connected Accounts
components:
  schemas:
    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