xDog Trading Admin API

The Admin API from xDog Trading — 8 operation(s) for admin.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 10

GET /admin/tenants List Tenants #
POST /admin/tenants Create Tenant #
GET /admin/keys List Keys #
POST /admin/keys Issue Key #
PATCH /admin/tenants/{tenant_id}/admin Set Tenant Admin #
DELETE /admin/keys/{key_id} Revoke Key #
GET /admin/tenants/{tenant_id}/usage Tenant Usage #
GET /admin/tools List Tools #
POST /admin/cleanup-revoked Cleanup Revoked #
DELETE /admin/tenants/{tenant_id} Remove Tenant #

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/xdogtrading-com:xdogtrading-com-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

xdogtrading-com-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: xdog-orchestrator Admin API
  description: Public-auth MCP gateway for xdog-mcp.
  version: 0.1.0
tags:
- name: Admin
paths:
  /admin/tenants:
    get:
      summary: List Tenants
      description: List all known tenants.
      operationId: list_tenants_admin_tenants_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response List Tenants Admin Tenants Get
      tags:
      - Admin
    post:
      summary: Create Tenant
      description: Create a new tenant. (Stripe customer creation is a later hook.)
      operationId: create_tenant_admin_tenants_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Body
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Create Tenant Admin Tenants Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/keys:
    get:
      summary: List Keys
      description: List all issued API keys (metadata only — never the raw key).
      operationId: list_keys_admin_keys_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response List Keys Admin Keys Get
      tags:
      - Admin
    post:
      summary: Issue Key
      description: Issue a new API key for a tenant. Returns the raw key ONCE.
      operationId: issue_key_admin_keys_post
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Body
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Issue Key Admin Keys Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/tenants/{tenant_id}/admin:
    patch:
      summary: Set Tenant Admin
      description: 'Grant or revoke a tenant''s admin (full-tool-access) flag.


        Admin = the xdog-mcp wildcard toolset (all tools). Non-admin = the customer

        default. Guards: ``main`` (and any PROTECTED_ADMINS) can''t be demoted, and

        the last remaining admin can''t be removed.'
      operationId: set_tenant_admin_admin_tenants__tenant_id__admin_patch
      parameters:
      - name: tenant_id
        in: path
        required: true
        schema:
          type: string
          title: Tenant Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Set Tenant Admin Admin Tenants  Tenant Id  Admin Patch
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/keys/{key_id}:
    delete:
      summary: Revoke Key
      description: Revoke an API key by its api_key_id.
      operationId: revoke_key_admin_keys__key_id__delete
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: string
          title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Revoke Key Admin Keys  Key Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/tenants/{tenant_id}/usage:
    get:
      summary: Tenant Usage
      description: 'Usage rollup for a tenant. TODO: real query.'
      operationId: tenant_usage_admin_tenants__tenant_id__usage_get
      parameters:
      - name: tenant_id
        in: path
        required: true
        schema:
          type: string
          title: Tenant Id
      - name: from_
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: 'From '
      - name: to
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: To
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Tenant Usage Admin Tenants  Tenant Id  Usage Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/tools:
    get:
      summary: List Tools
      description: 'Cached mirror of xdog-mcp''s tools/list. TODO: cache w/ TTL.'
      operationId: list_tools_admin_tools_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response List Tools Admin Tools Get
      tags:
      - Admin
  /admin/cleanup-revoked:
    post:
      summary: Cleanup Revoked
      description: 'Purge revoked keys and delete tenant docs left with no keys.


        Operator housekeeping for the Mission Control subscriber table:

        1. Hard-delete every API-key doc that has ``revoked_at`` set.

        2. Delete any tenant doc that, afterwards, has no remaining keys — UNLESS

        it is protected (``main`` etc.) or still flagged ``is_admin`` (our infra

        agents, which may have no customer-issued key but must never vanish).


        Pass ``{"dry_run": true}`` to preview what would be removed without writing.'
      operationId: cleanup_revoked_admin_cleanup_revoked_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - additionalProperties: true
                type: object
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Cleanup Revoked Admin Cleanup Revoked Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/tenants/{tenant_id}:
    delete:
      summary: Remove Tenant
      description: Delete a tenant and all of its API keys. Guards protected/admin tenants.
      operationId: remove_tenant_admin_tenants__tenant_id__delete
      parameters:
      - name: tenant_id
        in: path
        required: true
        schema:
          type: string
          title: Tenant Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Remove Tenant Admin Tenants  Tenant Id  Delete
        '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