AI

Perplexity

Perplexity's Agent API answers a question by running a small research loop — searching the web, reading pages, optionally calling your own functions — and returns the answer with the sources it read.

Authentication

  • API key

Actions

Generic API request. Call any Perplexity API endpoint on this connection, for the case where no shipped action covers it yet. The connection supplies the base URL, the authentication and the egress route, so only the path, query and body are yours to fill.

  • Cancel Agent ResponseDestructiveAsk a running agent turn to stop (POST /v1/agent/{id}/cancel).
  • Create Agent ResponseRun an agent turn against the Perplexity Agent API (POST /v1/agent, application/json).
  • Create Agent Response (Streaming)Run an agent turn and stream it back (POST /v1/agent with stream set, text/event-stream).
  • Create Contextualized EmbeddingsEmbed a document's chunks with the rest of that document as context (POST /v1/contextualizedembeddings, application/json).
  • Create EmbeddingsEmbed one or more texts (POST /v1/embeddings, application/json).
  • Download Agent Response FileDownload one file an agent run shared out of its sandbox (GET /v1/agent/{id}/files/{fileid}/content).
  • Get Agent ResponseRetrieve an agent run by id (GET /v1/agent/{id}).
  • List Agent Response FilesList the files an agent run shared out of its sandbox (GET /v1/agent/{id}/files).
  • List modelsList the models the Agent API accepts (GET /v1/models).
  • SearchSearch the web and get ranked results back (POST /search, application/json).

Product names, logos and brands are the property of their respective owners and are used here for identification only. Their use does not imply endorsement by, or affiliation with, those owners.