---
ref: tool:perplexity/ask-question
name: Ask a question
company: company:perplexity
workflows: []
access: [mcp, api]
tags: [capability:search-web, category:web-search, has:api, has:mcp]
docs: https://docs.perplexity.ai/api-reference/agent-post
updated: 2026-09-27
---

# Ask a question

Answers a question from current web sources with inline citations, tuned for quick facts and short summaries.

Note: Over the API, send `preset: "fast"` with the question as `input`.

## Set up

Use the first option your agent supports.

### MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

```json
{ "mcpServers": { "perplexity": { "url": "https://api.perplexity.ai/mcp" } } }
```

Call the MCP tool `perplexity_ask`.

Server URL: https://api.perplexity.ai/mcp

### API (official)

- Base URL: https://api.perplexity.ai
- Endpoint: `POST /v1/agent`
- Auth: send the header `Authorization: Bearer $PERPLEXITY_API_KEY`
- Get a key: https://console.perplexity.ai/project/keys
- Docs: https://docs.perplexity.ai/docs/getting-started/overview

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

## Rules

- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.
