OpenRush Admin API

The admin API from OpenRush — 13 operation(s) for admin.

GitHub OpenAPI

Operations 14

POST /v1/admin/accounts Create Admin Account #
GET /v1/admin/accounts List Accounts #
GET /v1/admin/accounts/{account_id} Get Account #
POST /v1/admin/accounts/{account_id}/api-credentials Create Account Credential #
POST /v1/admin/api-credentials/{credential_id}/revoke Revoke Api Credential #
POST /v1/admin/accounts/{account_id}/deactivate Deactivate Account #
POST /v1/admin/accounts/{account_id}/activate Activate Account #
POST /v1/admin/accounts/{account_id}/credits Update Account Credits #
GET /v1/admin/purchases Purchases #
POST /v1/admin/purchases/{purchase_id}/invoice Purchase Invoice #
GET /v1/admin/usage Usage #
GET /v1/admin/conversion-events Conversion Events #
GET /v1/admin/cache/stats Cache Stats #
POST /v1/admin/cache/flush Cache Flush #

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

openrush-com-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenRush Admin API
  description: 'The ground-truth marketing data layer for AI agents. Every response is a typed envelope: compact data, typed facts, entity index, deltas, provenance, coverage, next actions.'
  version: 0.1.0
tags:
- name: Admin
paths:
  /v1/admin/accounts:
    post:
      tags:
      - Admin
      summary: Create Admin Account
      operationId: create_admin_account_v1_admin_accounts_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdminCreateAccountRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Admin
      summary: List Accounts
      operationId: list_accounts_v1_admin_accounts_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          default: 0
          title: Offset
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/accounts/{account_id}:
    get:
      tags:
      - Admin
      summary: Get Account
      operationId: get_account_v1_admin_accounts__account_id__get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/accounts/{account_id}/api-credentials:
    post:
      tags:
      - Admin
      summary: Create Account Credential
      operationId: create_account_credential_v1_admin_accounts__account_id__api_credentials_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdminCreateCredentialRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCredentialCreateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/api-credentials/{credential_id}/revoke:
    post:
      tags:
      - Admin
      summary: Revoke Api Credential
      operationId: revoke_api_credential_v1_admin_api_credentials__credential_id__revoke_post
      parameters:
      - name: credential_id
        in: path
        required: true
        schema:
          type: string
          title: Credential Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCredentialPublic'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/accounts/{account_id}/deactivate:
    post:
      tags:
      - Admin
      summary: Deactivate Account
      operationId: deactivate_account_v1_admin_accounts__account_id__deactivate_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/accounts/{account_id}/activate:
    post:
      tags:
      - Admin
      summary: Activate Account
      operationId: activate_account_v1_admin_accounts__account_id__activate_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/accounts/{account_id}/credits:
    post:
      tags:
      - Admin
      summary: Update Account Credits
      operationId: update_account_credits_v1_admin_accounts__account_id__credits_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdminCreditAdjustmentRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/purchases:
    get:
      tags:
      - Admin
      summary: Purchases
      description: Stripe-paid credit purchases for the accounts this email belongs to.
      operationId: purchases_v1_admin_purchases_get
      parameters:
      - name: email
        in: query
        required: true
        schema:
          type: string
          title: Email
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/purchases/{purchase_id}/invoice:
    post:
      tags:
      - Admin
      summary: Purchase Invoice
      description: The paid invoice (with its PDF link) for one purchase, issuing it if needed.
      operationId: purchase_invoice_v1_admin_purchases__purchase_id__invoice_post
      parameters:
      - name: purchase_id
        in: path
        required: true
        schema:
          type: string
          title: Purchase Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/usage:
    get:
      tags:
      - Admin
      summary: Usage
      operationId: usage_v1_admin_usage_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/conversion-events:
    get:
      tags:
      - Admin
      summary: Conversion Events
      description: 'Google Ads offline-conversion status at a glance.


        The surface that makes an upload verifiable without querying Postgres by

        hand: counts by event_type × status for all three events, the most recent

        failures (with the Google error), and the legacy purchase counts still held

        on `attributions` from before the conversion_events migration.'
      operationId: conversion_events_v1_admin_conversion_events_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 20
          title: Limit
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/cache/stats:
    get:
      tags:
      - Admin
      summary: Cache Stats
      operationId: cache_stats_v1_admin_cache_stats_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/cache/flush:
    post:
      tags:
      - Admin
      summary: Cache Flush
      operationId: cache_flush_v1_admin_cache_flush_post
      parameters:
      - name: pattern
        in: query
        required: false
        schema:
          type: string
          default: openrush:v1:*
          title: Pattern
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AdminCreditAdjustmentRequest:
      properties:
        delta:
          type: integer
          title: Delta
        reason:
          type: string
          maxLength: 120
          minLength: 1
          title: Reason
      type: object
      required:
      - delta
      - reason
      title: AdminCreditAdjustmentRequest
    AdminCreateAccountRequest:
      properties:
        initial_credits:
          type: integer
          minimum: 0.0
          title: Initial Credits
          default: 0
      type: object
      title: AdminCreateAccountRequest
    ApiCredentialPublic:
      properties:
        id:
          type: string
          title: Id
        account_id:
          type: string
          title: Account Id
        name:
          type: string
          title: Name
        prefix:
          type: string
          title: Prefix
        is_active:
          type: boolean
          title: Is Active
        is_admin:
          type: boolean
          title: Is Admin
        created_by:
          anyOf:
          - type: string
          - type: 'null'
          title: Created By
        created_by_email:
          anyOf:
          - type: string
          - type: 'null'
          title: Created By Email
        created_at:
          type: string
          format: date-time
          title: Created At
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
      type: object
      required:
      - id
      - account_id
      - name
      - prefix
      - is_active
      - is_admin
      - created_at
      - last_used_at
      - expires_at
      title: ApiCredentialPublic
    ApiCredentialCreateResponse:
      properties:
        key:
          type: string
          title: Key
          description: The raw API key — shown ONCE; not retrievable later.
        api_credential:
          $ref: '#/components/schemas/ApiCredentialPublic'
      type: object
      required:
      - key
      - api_credential
      title: ApiCredentialCreateResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AdminCreateCredentialRequest:
      properties:
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        is_admin:
          type: boolean
          title: Is Admin
          default: false
        rate_limit_per_minute:
          anyOf:
          - type: integer
            minimum: 1.0
          - type: 'null'
          title: Rate Limit Per Minute
        rate_limit_per_hour:
          anyOf:
          - type: integer
            minimum: 1.0
          - type: 'null'
          title: Rate Limit Per Hour
        rate_limit_per_day:
          anyOf:
          - type: integer
            minimum: 1.0
          - type: 'null'
          title: Rate Limit Per Day
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
      type: object
      required:
      - name
      title: AdminCreateCredentialRequest