SpendNod Authorization API

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

GitHub OpenAPI

Operations 3

POST /v1/authorize Submit an authorization request #
GET /v1/authorize/{request_id} Poll authorization request status #
DELETE /v1/authorize/{request_id} Cancel a pending authorization request #

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-authorization-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-authorization-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpendNod Authorization 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: Authorization
paths:
  /v1/authorize:
    post:
      tags:
      - Authorization
      summary: Submit an authorization request
      description: Agent submits a transaction for authorization. Returns 200 with status=auto_approved or status=denied for immediate decisions. Returns 202 Accepted with status=pending if human review is required.
      operationId: create_authorization_request_v1_authorize_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthorizeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthorizeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/authorize/{request_id}:
    get:
      tags:
      - Authorization
      summary: Poll authorization request status
      description: Agent polls for the current status of a pending authorization request.
      operationId: get_authorization_request_v1_authorize__request_id__get
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Request Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthorizeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Authorization
      summary: Cancel a pending authorization request
      description: Agent cancels a request it previously submitted that is still pending.
      operationId: cancel_authorization_request_v1_authorize__request_id__delete
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Request Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AuthorizeResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        agent_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Agent Id
        agent_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Agent Name
        action:
          anyOf:
          - type: string
          - type: 'null'
          title: Action
        amount:
          anyOf:
          - type: string
          - type: 'null'
          title: Amount
        currency:
          anyOf:
          - type: string
          - type: 'null'
          title: Currency
        vendor:
          anyOf:
          - type: string
          - type: 'null'
          title: Vendor
        category:
          anyOf:
          - type: string
          - type: 'null'
          title: Category
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        status:
          $ref: '#/components/schemas/RequestStatus'
        approval_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Approval Token
        resolved_by:
          anyOf:
          - type: string
          - type: 'null'
          title: Resolved By
        rule_evaluation:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Rule Evaluation
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        created_at:
          type: string
          format: date-time
          title: Created At
        plan_warning:
          anyOf:
          - type: string
          - type: 'null'
          title: Plan Warning
      type: object
      required:
      - id
      - status
      - created_at
      title: AuthorizeResponse
    RequestStatus:
      type: string
      enum:
      - auto_approved
      - pending
      - approved
      - denied
      - expired
      - cancelled
      title: RequestStatus
    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
    AuthorizeRequest:
      properties:
        action:
          type: string
          maxLength: 100
          minLength: 1
          title: Action
        amount:
          anyOf:
          - type: number
            minimum: 0.0
          - type: string
          - type: 'null'
          title: Amount
        currency:
          type: string
          maxLength: 3
          title: Currency
          default: USD
        vendor:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Vendor
        category:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Category
        description:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Description
      type: object
      required:
      - action
      title: AuthorizeRequest