AgentPMT Admin API

The Admin API from AgentPMT — 6 operation(s) for admin.

Operations 6

POST /admin/credits/grant Admin Grant Credits #
POST /admin/credits/revoke Admin Revoke Credits #
GET /admin/credits/user/{user_id} Admin Get User Credits #
GET /admin/credits/wallet/{wallet_address} Admin Get Wallet Credits #
POST /admin/credits/wallet/grant Admin Grant Wallet Credits #
POST /admin/credits/wallet/revoke Admin Revoke Wallet Credits #

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/agentpmt-com:agentpmt-com-admin-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

agentpmt-com-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Admin API
  version: 0.1.0
tags:
- name: Admin
paths:
  /admin/credits/grant:
    post:
      summary: Admin Grant Credits
      description: 'Grant credits to a user (Admin only).


        This endpoint allows administrators to manually grant promotional credits to users.

        Credits are added to the user''s pool and expire 365 days after the grant (CREDIT_GRANT_LIFETIME).


        Requires HTTP Basic Auth with admin credentials.'
      operationId: admin_grant_credits_admin_credits_grant_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GrantCreditsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBasic: []
      tags:
      - Admin
  /admin/credits/revoke:
    post:
      summary: Admin Revoke Credits
      description: 'Revoke credits from a user (Admin only).


        This endpoint allows administrators to manually revoke promotional credits from users.

        Credits are deducted from the user''s pool starting from grants closest to expiration.


        Requires HTTP Basic Auth with admin credentials.'
      operationId: admin_revoke_credits_admin_credits_revoke_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeCreditsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBasic: []
      tags:
      - Admin
  /admin/credits/user/{user_id}:
    get:
      summary: Admin Get User Credits
      description: 'Get credit summary for a specific user (Admin only).


        Returns the user''s current balance, expiration, grants history, and transaction log.


        Requires HTTP Basic Auth with admin credentials.'
      operationId: admin_get_user_credits_admin_credits_user__user_id__get
      security:
      - HTTPBasic: []
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: 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
  /admin/credits/wallet/{wallet_address}:
    get:
      summary: Admin Get Wallet Credits
      description: Wallet credit account, grants, ledger, purchases, and uncredited x402 payments (Admin only).
      operationId: admin_get_wallet_credits_admin_credits_wallet__wallet_address__get
      security:
      - HTTPBasic: []
      parameters:
      - name: wallet_address
        in: path
        required: true
        schema:
          type: string
          title: Wallet Address
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Admin
  /admin/credits/wallet/grant:
    post:
      summary: Admin Grant Wallet Credits
      description: 'Grant credits to an external agent wallet (Admin only).


        Uncapped. Creates the wallet''s credit account if needed. Grants expire

        after the standard credit grant lifetime.'
      operationId: admin_grant_wallet_credits_admin_credits_wallet_grant_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GrantWalletCreditsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBasic: []
      tags:
      - Admin
  /admin/credits/wallet/revoke:
    post:
      summary: Admin Revoke Wallet Credits
      description: 'Revoke credits from an external agent wallet (Admin only).


        Removes up to the wallet''s balance, starting with the grants closest to

        expiration.'
      operationId: admin_revoke_wallet_credits_admin_credits_wallet_revoke_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeWalletCreditsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBasic: []
      tags:
      - Admin
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GrantCreditsRequest:
      properties:
        user_id:
          type: string
          title: User Id
          description: User's ObjectId
        amount_credits:
          type: integer
          exclusiveMinimum: 0.0
          title: Amount Credits
          description: Credit amount (integer, 100 credits = $1)
        credit_type:
          type: string
          title: Credit Type
          description: Type of credit (admin_grant, referral_signup, etc.)
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
          description: Optional notes about the grant
        idempotency_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency Key
          description: Stable idempotency key for retry-safe grants
      type: object
      required:
      - user_id
      - amount_credits
      - credit_type
      title: GrantCreditsRequest
      example:
        amount_credits: 500
        credit_type: admin_grant
        idempotency_key: admin-grant:507f1f77bcf86cd799439011:request-id
        notes: Welcome bonus
        user_id: 507f1f77bcf86cd799439011
    RevokeWalletCreditsRequest:
      properties:
        wallet_address:
          type: string
          title: Wallet Address
          description: External agent wallet address (0x-prefixed, 20 bytes)
        amount_credits:
          type: integer
          exclusiveMinimum: 0.0
          title: Amount Credits
          description: Credit amount to revoke (integer, 100 credits = $1)
        reason:
          type: string
          maxLength: 2000
          minLength: 1
          title: Reason
          description: Reason for revoking credits
        idempotency_key:
          type: string
          maxLength: 200
          minLength: 1
          title: Idempotency Key
          description: Stable idempotency key for retry-safe revocations
      type: object
      required:
      - wallet_address
      - amount_credits
      - reason
      - idempotency_key
      title: RevokeWalletCreditsRequest
    GrantWalletCreditsRequest:
      properties:
        wallet_address:
          type: string
          title: Wallet Address
          description: External agent wallet address (0x-prefixed, 20 bytes)
        amount_credits:
          type: integer
          exclusiveMinimum: 0.0
          title: Amount Credits
          description: Credit amount (integer, 100 credits = $1)
        credit_type:
          type: string
          enum:
          - admin_grant
          - promotional
          title: Credit Type
          description: Grant source recorded on the wallet grant
          default: admin_grant
        notes:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Notes
          description: Optional notes about the grant
        idempotency_key:
          type: string
          maxLength: 200
          minLength: 1
          title: Idempotency Key
          description: Stable idempotency key for retry-safe grants
      type: object
      required:
      - wallet_address
      - amount_credits
      - idempotency_key
      title: GrantWalletCreditsRequest
    RevokeCreditsRequest:
      properties:
        user_id:
          type: string
          title: User Id
          description: User's ObjectId
        amount_credits:
          type: integer
          exclusiveMinimum: 0.0
          title: Amount Credits
          description: Credit amount to revoke (integer, 100 credits = $1)
        reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason
          description: Reason for revoking credits
        idempotency_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency Key
          description: Stable idempotency key for retry-safe revocations
      type: object
      required:
      - user_id
      - amount_credits
      title: RevokeCreditsRequest
      example:
        amount_credits: 500
        idempotency_key: admin-revoke:507f1f77bcf86cd799439011:request-id
        reason: Abuse of referral system
        user_id: 507f1f77bcf86cd799439011
    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
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic