ctxstore.ai Account API

The Account API from ctxstore.ai — 5 operation(s) for account.

GitHub OpenAPI

Operations 6

GET /api/v1/account/audit Read the account audit log #
GET /api/v1/account/audit/export Download the account audit log #
POST /api/v1/account/invites Invite an account to a namespace #
GET /api/v1/account/invites List namespace invitations and grants #
POST /api/v1/account/invites/{grant_id}/accept Request or confirm invitation acceptance #
DELETE /api/v1/account/invites/{grant_id} Revoke an invitation or active grant #

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-account-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-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ctxstore Ai Account API
  version: 1.0.0
  contact:
    name: ctxstore.ai
    url: https://ctxstore.ai
  description: 'Operations tagged Account 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: Account
paths:
  /api/v1/account/audit:
    get:
      operationId: list_audit_events
      summary: Read the account audit log
      description: 'Security events for the authenticated account only (auth blocks, rate-limit lockouts, key rotations, audit exports), newest first. Keyset-paginated: pass next_cursor back as cursor.'
      parameters:
      - name: since
        in: query
        schema:
          type: string
          format: date-time
      - name: until
        in: query
        schema:
          type: string
          format: date-time
      - name: event_type
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          default: 100
          maximum: 1000
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: One page of audit events
          content:
            application/json:
              schema:
                type: object
                properties:
                  events:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        ts:
                          type: string
                          format: date-time
                        event_type:
                          type: string
                        actor:
                          type: string
                        detail:
                          type: object
                  next_cursor:
                    type:
                    - string
                    - 'null'
        '400':
          description: Bad filter, limit or cursor
        '401':
          description: Unauthorized
      tags:
      - Account
    servers:
    - url: https://ctxstore.ai
      description: Production
  /api/v1/account/audit/export:
    get:
      operationId: export_audit_events
      summary: Download the account audit log
      description: 'Streams every matching audit event for the authenticated account as an attachment. format=csv (columns: id, ts, event_type, actor, surface, detail), json or jsonl. Capped at 100000 rows; narrow since/until past that.'
      parameters:
      - name: format
        in: query
        schema:
          type: string
          enum:
          - csv
          - json
          - jsonl
          default: csv
      - name: since
        in: query
        schema:
          type: string
          format: date-time
      - name: until
        in: query
        schema:
          type: string
          format: date-time
      - name: event_type
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Attachment (text/csv, application/json or application/x-ndjson)
        '400':
          description: Bad format or filter
        '401':
          description: Unauthorized
        '413':
          description: More than 100000 rows match; narrow the window
      tags:
      - Account
    servers:
    - url: https://ctxstore.ai
      description: Production
  /api/v1/account/invites:
    post:
      operationId: create_namespace_invite
      summary: Invite an account to a namespace
      description: Creates a free namespace invitation. The recipient keeps their own anchor account and accepts with an emailed OTP.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - email
              - namespace_prefix
              properties:
                email:
                  type: string
                  format: email
                namespace_prefix:
                  type: string
                invite_note:
                  type: string
                created_by_agent:
                  type: string
      responses:
        '201':
          description: Invitation created
        '200':
          description: Existing invitation returned
        '401':
          description: Unauthorized
      tags:
      - Account
    get:
      operationId: list_namespace_grants
      summary: List namespace invitations and grants
      responses:
        '200':
          description: Incoming and outgoing grants
        '401':
          description: Unauthorized
      tags:
      - Account
    servers:
    - url: https://ctxstore.ai
      description: Production
  /api/v1/account/invites/{grant_id}/accept:
    post:
      operationId: accept_namespace_invite
      summary: Request or confirm invitation acceptance
      parameters:
      - name: grant_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - step
              properties:
                step:
                  type: string
                  enum:
                  - request
                  - confirm
                code:
                  type: string
                  pattern: ^[0-9]{6}$
      responses:
        '200':
          description: OTP sent or grant activated
        '402':
          description: Active Collaborator time required
        '404':
          description: Invitation not found
      tags:
      - Account
    servers:
    - url: https://ctxstore.ai
      description: Production
  /api/v1/account/invites/{grant_id}:
    delete:
      operationId: revoke_namespace_grant
      summary: Revoke an invitation or active grant
      parameters:
      - name: grant_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Grant revoked
        '404':
          description: Grant not found
      tags:
      - Account
    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