SyncMetrics LLC Admin API

The Admin API from SyncMetrics LLC — 13 operation(s) for admin.

GitHub OpenAPI

Operations 13

GET /api/admin/me Admin Me #
GET /api/admin/overview Admin Overview #
GET /api/admin/connector-legacy Admin Connector Legacy #
GET /api/admin/plan-content Admin Plan Content #
GET /api/admin/users Admin Users #
GET /api/admin/usage Admin Usage #
GET /api/admin/users-usage Admin Users Usage #
GET /api/admin/activity Admin Activity #
POST /api/admin/users/{target_user_id}/plan Admin Set User Plan #
POST /api/admin/users/{target_user_id}/billing-rail Admin Set User Billing Rail #
POST /api/admin/users/{target_user_id}/subscription Admin Set User Subscription #
GET /api/admin/appsumo Admin Appsumo Licenses #
GET /api/admin/shopify/billing-check Admin Shopify Billing Check #

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-admin-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-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Admin API
  version: 0.1.0
tags:
- name: Admin
paths:
  /api/admin/me:
    get:
      summary: Admin Me
      description: Lightweight ping the admin UI uses to verify the caller is an admin.
      operationId: admin_me_api_admin_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Admin
  /api/admin/overview:
    get:
      summary: Admin Overview
      description: 'Top-level KPIs: user count, connection counts, calls today/week.'
      operationId: admin_overview_api_admin_overview_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Admin
  /api/admin/connector-legacy:
    get:
      summary: Admin Connector Legacy
      description: 'Pre-key Data Studio links still in use: bare-user-id hits per route and

        distinct users over the last `days` (default 7), plus what the shadow plan

        gate would have refused. When legacy users reach 0 it is safe to set

        CONNECTOR_REQUIRE_KEY=1. Hits are throttled at the source — at most one

        row per user + route per 10 minutes — so read them as "active windows".'
      operationId: admin_connector_legacy_api_admin_connector_legacy_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 7
          title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /api/admin/plan-content:
    get:
      summary: Admin Plan Content
      description: 'The /admin page''s plan content ({"html": …, "plan_weeks": […],

        "plan_dev": …}), read

        once from admin_content/plan.json and cached in memory.'
      operationId: admin_plan_content_api_admin_plan_content_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Admin
  /api/admin/users:
    get:
      summary: Admin Users
      description: List users with their connection status.
      operationId: admin_users_api_admin_users_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 100
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /api/admin/usage:
    get:
      summary: Admin Usage
      description: Aggregate tool-call counts by platform and tool over the past N days.
      operationId: admin_usage_api_admin_usage_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 7
          title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /api/admin/users-usage:
    get:
      summary: Admin Users Usage
      description: 'Per-user, per-platform call counts over the last N days.


        Joins each Supabase auth user against their usage_events so the admin

        panel can show, for every user: which platforms they''ve connected AND

        how many API calls they''ve made to each. Aggregation is done in Python

        (the user base is small); for large scale this should move to a SQL

        GROUP BY or a materialized rollup table.'
      operationId: admin_users_usage_api_admin_users_usage_get
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /api/admin/activity:
    get:
      summary: Admin Activity
      description: Recent activity feed — latest usage events.
      operationId: admin_activity_api_admin_activity_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /api/admin/users/{target_user_id}/plan:
    post:
      summary: Admin Set User Plan
      description: 'Change a user''s plan (admin only).


        Body: {"plan": "growth"}

        Updates plan on every existing user_settings row for the user. If

        the user has no rows yet, we upsert a single placeholder on the

        ''meta'' platform so the plan is stored and ready when they connect.'
      operationId: admin_set_user_plan_api_admin_users__target_user_id__plan_post
      parameters:
      - name: target_user_id
        in: path
        required: true
        schema:
          type: string
          title: Target User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /api/admin/users/{target_user_id}/billing-rail:
    post:
      summary: Admin Set User Billing Rail
      description: 'Choose which rail bills a user (admin only).


        Body: {"rail": "auto" | "stripe" | "shopify"}. ''auto'' (stored as NULL) is

        today''s rule — a connected Shopify store bills through Shopify. ''stripe''

        lets an account with a store use Stripe Checkout (only for users who don''t

        use SyncMetrics through the Shopify App Store — rule 1.2.1); ''shopify''

        keeps an account on Shopify billing. Billing only: no connection or token

        is touched. Stored on every user_settings row like the plan (a ''meta''

        placeholder row when the user has none). Needs the optional billing_rail

        column; when it''s missing the reply is a 503 with the one-line SQL.'
      operationId: admin_set_user_billing_rail_api_admin_users__target_user_id__billing_rail_post
      parameters:
      - name: target_user_id
        in: path
        required: true
        schema:
          type: string
          title: Target User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /api/admin/users/{target_user_id}/subscription:
    post:
      summary: Admin Set User Subscription
      description: 'Set / extend / clear a user''s subscription end date (admin only).


        Body (one of):

        {"subscription_end": "2026-12-31"} → set the end date to this exact day

        {"extend_days": 30} → extend from the current effective end

        {"clear": true} → remove the override (revert to derived date)


        Stored as an override on every user_settings row for the user (mirrors how

        plan is stored). Requires a nullable `subscription_end` column on

        user_settings; if it''s missing the call returns a clear setup message with

        the one-line SQL to add it.'
      operationId: admin_set_user_subscription_api_admin_users__target_user_id__subscription_post
      parameters:
      - name: target_user_id
        in: path
        required: true
        schema:
          type: string
          title: Target User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /api/admin/appsumo:
    get:
      summary: Admin Appsumo Licenses
      description: 'Support lookup: AppSumo licenses (newest first) with the linked login

        email; q matches a license key (or its end), a user id or an email.'
      operationId: admin_appsumo_licenses_api_admin_appsumo_get
      parameters:
      - name: q
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Q
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 100
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /api/admin/shopify/billing-check:
    get:
      summary: Admin Shopify Billing Check
      description: 'Admin-only: show exactly what the Partner API reports for a shop.

        Without this, a misconfigured org id / app id / token is invisible.'
      operationId: admin_shopify_billing_check_api_admin_shopify_billing_check_get
      parameters:
      - name: shop
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Shop
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
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