Connect Perplexity to Toolspoke

Ask a question and get an answer with the sources it came from, synchronously or as a queued job. Toolspoke gives your agents 8 of its actions, and you decide which ones each project allows.

Connection
Provider REST API
Authentication
API key
Actions exposed
8
What a call bills
Nothing
Adapter
Maintained by Toolspoke
Category
AI

Connected in three steps

  1. Install Perplexity

    Open the marketplace in your workspace, add Perplexity to the project your agents work in, and it appears on the gateway immediately.

  2. Connect the credential

    Provide the credential Perplexity asks for. Where to get it, and what it has to be able to reach, is the next section.

  3. Give it to an agent

    Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every Perplexity action the project leaves on.

The whole setup, from Perplexity's side to the first question: How to connect Perplexity to Toolspoke

Where the agent answers

  • Slack

    Ask it in a channel or a thread, and it replies in the thread it was asked in.

  • Email

    Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.

  • GitHub

    Mention it on a pull request, and it answers there.

  • Schedule

    A routine wakes it on a schedule, or when a new item matches.

Any agent in the project can use Perplexity, and only the actions the project leaves on.

What Perplexity asks for

API key. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.

API keyRequired
Perplexity's API Console → your project → API Keys → + Generate API Key. The console shows the full key only once. Every operation here except list_models is billed per request and per token, so give this key its own budget if the account allows it.
pplx-…

What an agent can do in Perplexity

8 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.

5 read, 3 write, none destructive

Reads

5

Fetches data and changes nothing.

  • list_models

    List the models this key can reach, in OpenAI list format. Free, creates nothing, and needs no arguments, which is why it is the connection test. Read one caveat before trusting it as a catalogue: Perplexity documents this endpoint as the roster for the Agent API, the ids it returns look like "anthropic/claude-…" and "openai/gpt-…", so it does not enumerate the Sonar models that chat_completion takes. For those, the names in circulation are sonar, sonar-pro, sonar-reasoning-pro and sonar-deep-research, and this connector deliberately hard-codes none of them, because the roster moves faster than a file in a repository: sonar-reasoning was removed in December 2025 and any enum written before then is now wrong.

  • search

    Search the web and get ranked results with page content, and no written answer. A flat $5 per thousand requests with no token charge, which makes it the cheapest thing here by a wide margin and the right call whenever an agent wants sources it will read itself rather than a paragraph Perplexity wrote. `query` takes a string or a list of strings, and a list runs several searches in one request. Bound the payload with `max_tokens_per_page` rather than `search_context_size`, the two are alternatives and Perplexity asks that you send one or the other, not both. The results are pages other people wrote, so the payload is kept out of the audit log, and the query is prose the caller wrote, so it is kept out too.

  • get_agent_response

    Read an agent response by id, the one to poll after create_agent_response with `background: true`. Free; the run already in flight is what costs. Poll every few seconds and back off. The completed response carries the answer, the steps the agent took and its token usage. Built from other people's pages, so the payload is kept out of the audit log.

  • list_agent_files

    List the files an agent run produced, charts, spreadsheets, documents written in its sandbox, with their ids and names. Free. Downloading the bytes is a separate endpoint this connector does not declare, because the gateway returns JSON and a binary body has nowhere to go here; the ids are what a client that can fetch them needs. Filenames describe whatever the agent was asked to make, so the payload is kept out of the audit log.

  • create_embeddings

    Turn text into vectors with Perplexity's own embedding models. A read because it creates nothing and stores nothing, it returns numbers, but it is billed per token, so batching is what keeps it cheap: up to 512 texts in one request, each under 32,000 tokens and 120,000 tokens across the whole call. `dimensions` shortens the vectors (Matryoshka truncation) when a smaller index is worth more than the last few points of accuracy: 128 to 1024 for pplx-embed-v1-0.6b, 128 to 2560 for pplx-embed-v1-4b. Both sides are withheld from the audit log: the input is somebody's text and the output is a very large array derived from it.

Writes

3

Creates or updates something on the other side.

  • chat_completion

    Ask Perplexity a question and get a written answer with the citations behind it. This is the operation the product exists for and the one that costs money, which is why it is a write. Billed per token and per request; Perplexity no longer publishes Sonar-specific prices, so check its pricing page before choosing a bigger model or raising `search_context_size`. Perplexity ended support for Sonar Chat Completions on September 27, 2026 and is reformulating synchronous requests to this endpoint as Agent API requests, model by model, so prefer create_agent_response for new work. `model` is a plain string with no list hard-coded here; sonar is the cheap default, sonar-pro answers harder questions. Anything that runs for minutes, sonar-deep-research included, belongs in create_agent_response with `background: true` rather than this blocking call; async Sonar is no longer supported. Narrow the sources with `search_domain_filter` and `search_recency_filter` before reaching for a bigger model, it is cheaper and usually more accurate. The response is passed through whole rather than unwrapped, so if the reformulation changes its shape the caller sees the new one instead of an empty field. The citations come back on the response, and an answer whose citations do not support it is one to distrust. Streaming is not offered; the gateway returns whole responses. Prompts are prose the caller wrote and the answer is built from other people's pages, so neither is written to the audit log.

  • create_agent_response

    Run Perplexity's agent, which chooses a model, searches, reads and can use tools across several steps. More capable than chat_completion and more expensive, because it may run many searches and many model turns for one request; the bill is the sum of those, and `max_steps` is the only ceiling this connector offers on it, set it. Either `model` (as "provider/model", e.g. "anthropic/claude-sonnet-4-6") or `preset` (fast, low, medium, high, xhigh) has to be given; list_models is the roster for the `model` form, which is the one thing that endpoint is actually authoritative about. `max_output_tokens` is required when the model is an Anthropic one, and omitting it there is a 400 that says so. Set `background: true` to have it queued rather than answered in the same call, then poll get_agent_response; this is what replaces async Sonar, which Perplexity no longer supports. Instructions are prose the caller wrote and the answer is built from other people's pages, so neither is written to the audit log.

  • cancel_agent_response

    Stop an agent run that is still going, so it stops spending. Free to call, and the only lever this connector offers on a background run that is taking far longer than expected. This destroys nothing recoverable: a cancelled run has produced no final answer to lose, and its record stays readable through get_agent_response. Work already done is still billed, so this caps a run rather than refunding it. The response is the run record, which carries the question it was given.

What it will not do

The gateway enforces each of these, so they can be stated flatly.

It cannot call anything else
The 8 actions above are the whole of it. A call to any other name is refused before it reaches Perplexity rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time.
Nothing here deletes
This connector writes to Perplexity, but nothing in it deletes or permanently alters anything.
It reaches no further than your credential
Toolspoke holds no access to Perplexity of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either.
It never hears from Perplexity
Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Perplexity. An agent has to ask.
It does not smooth over provider limits
Toolspoke does not retry, queue or back off around Perplexity's own rate limits. A call that Perplexity refuses comes back to the agent as a failed call.

Before you connect it

What can an agent do in Perplexity?

8 named actions: 5 that only read and 3 that write. They include list_models, chat_completion and search. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.

What credentials does the Perplexity connector need?

API key. The connector asks for api key. Values are encrypted at rest and attached to the outbound request by the gateway, so they are never part of the arguments an agent sends and never reach the audit log.

How does an agent get to use Perplexity?

Install Perplexity in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.

What does the Perplexity connector not do?

The 8 actions above are the whole of it. A call to any other name is refused before it reaches Perplexity rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. This connector writes to Perplexity, but nothing in it deletes or permanently alters anything. Toolspoke holds no access to Perplexity of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Perplexity. An agent has to ask. Toolspoke does not retry, queue or back off around Perplexity's own rate limits. A call that Perplexity refuses comes back to the agent as a failed call.

Can I limit which actions an agent can call?

Yes, in two places. The project switches Perplexity's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.

What gets recorded when an agent calls Perplexity?

Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.

Agents that use Perplexity

  • Cenara Content Engine

    Grows qualified organic traffic to the Cenara blog and turns it into early-access sign-ups, by writing evidence-backed posts as pull requests a human merges.

    every Monday, Wednesday and Friday at 9am

Connect Perplexity to Toolspoke

Add Perplexity to a project and give it to an agent.