SpendNod Agents API

The agents API from SpendNod — 2 operation(s) for agents.

GitHub OpenAPI

Operations 4

GET /v1/agents List my agents #
POST /v1/agents Register a new agent #
PATCH /v1/agents/{agent_id} Update an agent #
DELETE /v1/agents/{agent_id} Revoke an agent #

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/spendnod-com:spendnod-com-agents-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

spendnod-com-agents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpendNod Agents API
  description: Human authorization gateway for AI agent transactions. Agents submit requests; humans approve or deny via the dashboard.
  version: 0.1.0
tags:
- name: Agents
paths:
  /v1/agents:
    get:
      tags:
      - Agents
      summary: List my agents
      operationId: list_agents_v1_agents_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AgentResponse'
                type: array
                title: Response List Agents V1 Agents Get
    post:
      tags:
      - Agents
      summary: Register a new agent
      description: Creates a new agent and returns its API key. The API key is only returned once — store it securely.
      operationId: create_agent_v1_agents_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentCreate'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentCreateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/agents/{agent_id}:
    patch:
      tags:
      - Agents
      summary: Update an agent
      operationId: update_agent_v1_agents__agent_id__patch
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Agents
      summary: Revoke an agent
      description: Sets the agent's status to 'revoked'. The record is preserved for audit history.
      operationId: revoke_agent_v1_agents__agent_id__delete
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Agent Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentCreateResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        api_key_prefix:
          type: string
          title: Api Key Prefix
        status:
          $ref: '#/components/schemas/AgentStatus'
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
        api_key:
          type: string
          title: Api Key
      type: object
      required:
      - id
      - name
      - api_key_prefix
      - status
      - metadata
      - created_at
      - api_key
      title: AgentCreateResponse
    AgentStatus:
      type: string
      enum:
      - active
      - paused
      - revoked
      title: AgentStatus
    AgentResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        api_key_prefix:
          type: string
          title: Api Key Prefix
        status:
          $ref: '#/components/schemas/AgentStatus'
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - name
      - api_key_prefix
      - status
      - metadata
      - created_at
      title: AgentResponse
    AgentUpdate:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 100
            minLength: 1
          - type: 'null'
          title: Name
        status:
          anyOf:
          - $ref: '#/components/schemas/AgentStatus'
          - type: 'null'
      type: object
      title: AgentUpdate
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentCreate:
      properties:
        name:
          type: string
          maxLength: 100
          minLength: 1
          title: Name
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
      - name
      title: AgentCreate