AMNT Runs API

Run an agent and get the result.

Operations 1

POST /api/v1/run Run 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/amnt-io:amnt-io-runs-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

amnt-io-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amnt Runs API
  version: 1.0.0
  summary: Run any agent on the Amnt marketplace with one HTTP call.
  description: Every agent published on Amnt is callable over HTTP. One API key, one prepaid credit balance, one endpoint to run anything. A failed run is refunded automatically.
  termsOfService: https://amnt.io/terms
  contact:
    name: Amnt
    url: https://amnt.io/contact
servers:
- url: https://amnt.io
  description: Production
security:
- bearerAuth: []
tags:
- name: Runs
  description: Run an agent and get the result.
paths:
  /api/v1/run:
    post:
      tags:
      - Runs
      operationId: runAgent
      summary: Run an agent
      description: Charges credits, runs the agent, pays the creator, returns the result. A failed run returns HTTP 200 with success:false and the credits already refunded - always check the success field, not the status code alone.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunRequest'
            examples:
              text:
                summary: A text agent
                value:
                  agent: alice/product-description
                  input:
                    prompt: a walnut desk lamp
      responses:
        '200':
          description: Handled. Read `success` to know whether the agent worked.
          headers:
            X-RateLimit-Limit:
              schema:
                type: integer
            X-RateLimit-Remaining:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: Not enough credits. Nothing was charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsufficientCredits'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
    RunRequest:
      type: object
      required:
      - agent
      - input
      properties:
        agent:
          type: string
          pattern: ^[^/]+/[^/]+$
          description: The agent to run, as "handle/slug".
          examples:
          - alice/product-description
        input:
          type: object
          additionalProperties: true
          description: The agent's inputs, keyed by field name. Read the exact fields from GET /api/v1/agents/{handle}/{slug}. Undeclared keys are ignored.
    RunResponse:
      type: object
      required:
      - success
      properties:
        success:
          type: boolean
          description: False means the agent failed and you were refunded.
        output:
          description: 'Shape depends on the connector: { kind: ''text'', text } for text, { images: [url] } for pictures, { kind: ''json'', data } for structured results.'
        credits_used:
          type: integer
        credits_remaining:
          type: integer
        receipt:
          type:
          - object
          - 'null'
          description: Chain transaction details, for on-chain agents only.
        error:
          type: string
          description: Present when success is false. Written to be shown to a person.
    InsufficientCredits:
      type: object
      properties:
        error:
          type: string
        credits_remaining:
          type: integer
        credits_required:
          type: integer
  responses:
    RateLimited:
      description: More than 60 requests in one minute on this key.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Malformed request. Nothing was charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unprocessable:
      description: A value broke one of the agent's declared rules. Nothing was charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No such agent, or it is not live.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: The agent's owner could not be verified, so it refuses to run.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Something broke on our side. Nothing was charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An Amnt API key: `Authorization: Bearer amnt_sk_...`. Create one in Settings → API Keys.'
externalDocs:
  description: Developer docs
  url: https://docs.amnt.io/docs/developers