Perplexity Agent API

The Agent API from Perplexity — 1 operation(s) for agent.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/agent Generate an agent response with web search and reasoning · Create Agent Response #
Ask an LLM
“How do I get an AI agent to answer a question with web search and reasoning?”
“Can I cap how many reasoning steps an agent response takes?”
Tell an agent
Generate an agent response to {input}.
Answer {input} with up to {max_steps} reasoning steps using {model}.
GET /v1/agent/{id} Retrieve an agent response · Retrieve Agent Response #
Ask an LLM
“How do I fetch an agent response I generated earlier?”
“Can I retrieve an agent response that was stored with store: false?”
Tell an agent
Retrieve agent response {id}.
Show the saved state of agent response {id}.
GET /v1/agent/{id}/files List files an agent response produced · List Agent Response Files #
Ask an LLM
“Which files did an agent response deliver to the sandbox?”
“Where do I find the file IDs an agent response produced?”
Tell an agent
List the files produced by agent response {id}.
Show the file list for agent response {id}.
GET /v1/agent/{id}/files/{file_id}/content Download a file an agent response delivered · Download Agent Response File #
Ask an LLM
“How do I download the raw bytes of a file an agent response delivered?”
“What content type and filename does an agent file download carry?”
Tell an agent
Download file {file_id} from agent response {id}.
Fetch the raw bytes of file {file_id} in response {id}.
POST /v1/agent/{id}/cancel Cancel an agent response · Cancel Agent Response #
Ask an LLM
“How do I cancel an agent response that is still running?”
“Can I stop an agent response after its client disconnected?”
Tell an agent destructive · confirm first
Cancel agent response {id}.
Stop the running agent response {id}.

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/perplexity:perplexity-agent-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

perplexity-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Perplexity AI Agent API
  description: Perplexity AI API
  version: 1.0.0
servers:
- url: https://api.perplexity.ai
  description: Perplexity AI API
tags:


# --- truncated at 32 KB (80 KB total) ---
# Full source: https://artifacts.apis.io/perplexity/openapi/perplexity-agent-api-openapi.yml