Docs

Create Chat Completion

Creates a chat completion in Perplexity.

POST

Query

Field selectionChoose which fields should be included in the response. Learn more
string

Comma-separated response fields to include.

Body

Arguments
stringrequired

Sonar model to use, for example sonar-pro.

array of objectrequired

Conversation history array in OpenAI chat format.

Uncommon arguments
number

Maximum number of completion tokens to generate.

boolean

When true, returns a streaming SSE response.

number

Controls randomness in the response.

boolean

When true, disables web search for this request.

array of string

Limit search results to specific domains.

array of string

Filter search results by ISO 639-1 language code.

string

Filter by publication recency.

string

Controls how much effort the model spends on reasoning.

string

ISO 639-1 language code for the preferred response language.

Every app you connect,one REST pattern

Call any app with one REST pattern. MindCloud handles each provider's auth, request shape, and responses for you.

Learn what the Universal API is
One REST patternUse the same request structure across apps like Slack, HubSpot, Salesforce, and thousands more.
Managed connectionsSend a MindCloud connection ID instead of handling provider tokens, refresh logic, and credential storage yourself.
Action-level docsEach action page shows the exact endpoint, required arguments, optional controls, and response behavior for that app version.