ctxstore.ai Admin API

The Admin API from ctxstore.ai — 3 operation(s) for admin.

GitHub OpenAPI

Operations 3

GET /api/v1/admin/metrics Owner-only platform metrics #
GET /api/v1/admin/tenants Owner-only Users list #
POST /api/v1/admin/gift-days Owner-only: add free Collaborator days to an 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/ctxstore-ai:ctxstore-ai-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

ctxstore-ai-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ctxstore Ai Admin API
  version: 1.0.0
  contact:
    name: ctxstore.ai
    url: https://ctxstore.ai
  description: 'Operations tagged Admin across 2 of this provider''s published API definitions: ctxstore-ai-openapi.json, ctxstore-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://ctxstore.ai
  description: Production
security:
- BearerAuth: []
tags:
- name: Admin
paths:
  /api/v1/admin/metrics:
    get:
      operationId: get_admin_metrics
      summary: Owner-only platform metrics
      description: 'Sections service, tenants, funnel, store, errors, system, fleet, deploy. Only tenants listed in the server''s ADMIN_TENANT_IDS get 200; everyone else gets 403. A failing probe returns {"error": ...} for its section. Cached 30 s.'
      responses:
        '200':
          description: Metrics
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Missing or invalid API key
        '403':
          description: Not an owner tenant
      tags:
      - Admin
    servers:
    - url: https://ctxstore.ai
      description: Production
  /api/v1/admin/tenants:
    get:
      operationId: get_admin_tenants
      summary: Owner-only Users list
      description: Every account with its real email, plan, Collaborator end, days left, verification, created/last seen, fact count, blocked flag and gifted days. q= substring on email or name; sort=created|last_seen|until; limit (max 200) and offset. ADMIN_TENANT_IDS only; 403 otherwise.
      parameters:
      - name: q
        in: query
        schema:
          type: string
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - created
          - last_seen
          - until
      - name: limit
        in: query
        schema:
          type: integer
          maximum: 200
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
      responses:
        '200':
          description: '{tenants: [...], total}'
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Missing or invalid API key
        '403':
          description: Not an owner tenant
      tags:
      - Admin
    servers:
    - url: https://ctxstore.ai
      description: Production
  /api/v1/admin/gift-days:
    post:
      operationId: post_admin_gift_days
      summary: 'Owner-only: add free Collaborator days to an account'
      description: Body {tenant_id | email, days (1..365), note?}. Advances the account exactly N days from max(now, current end), records the gift, emails the recipient and tells their agent once. 60 per hour per owner.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tenant_id:
                  type: string
                email:
                  type: string
                days:
                  type: integer
                  minimum: 1
                  maximum: 365
                note:
                  type: string
                  maxLength: 200
              required:
              - days
      responses:
        '200':
          description: '{tenant_id, email_masked, days, collaborator_until, gift_id, email_sent}'
        '400':
          description: Bad days, note or identifier
        '401':
          description: Missing or invalid API key
        '403':
          description: Not an owner tenant
        '404':
          description: Unknown account
        '409':
          description: 'Agent or email-less account: never a recipient'
        '429':
          description: More than 60 gifts in an hour
      tags:
      - Admin
    servers:
    - url: https://ctxstore.ai
      description: Production
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key from ctxstore.ai dashboard. Format: Bearer emk_...'
x-refined-from:
- ctxstore-ai-openapi.json
- ctxstore-ai-openapi.yml