# Perplexity API Documentation

This is the complete API documentation for connecting to the Perplexity API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Perplexity connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/perplexity/actions/{actionSlug}/run
```

## Perplexity actions

- POST `create-agent-response` Create Agent Response
- POST `create-async-chat-completion` Create Async Chat Completion
- POST `create-chat-completion` Create Chat Completion
- POST `create-contextualized-embeddings` Create Contextualized Embeddings
- POST `create-embeddings` Create Embeddings
- POST `generate-auth-token` Generate Auth Token
- GET `get-async-chat-completion` Get Async Chat Completion
- GET `list-async-chat-completions` List Async Chat Completions
- GET `list-models` List Models
- DELETE `revoke-auth-token` Revoke Auth Token
- GET `search-the-web` Search the Web
