GET
/
async
/
chat
/
completions
/
{request_id}
curl --request GET \
  --url https://api.perplexity.ai/async/chat/completions/{request_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "model": "<string>",
  "created_at": 123,
  "started_at": 123,
  "completed_at": 123,
  "response": {
    "id": "<string>",
    "model": "<string>",
    "created": 123,
    "usage": {
      "prompt_tokens": 123,
      "completion_tokens": 123,
      "total_tokens": 123,
      "search_context_size": "<string>",
      "citation_tokens": 123,
      "num_search_queries": 123,
      "reasoning_tokens": 123
    },
    "object": "chat.completion",
    "choices": [
      {
        "index": 123,
        "finish_reason": "stop",
        "message": {
          "content": "<string>",
          "role": "system"
        }
      }
    ],
    "citations": [
      "<string>"
    ],
    "search_results": [
      {
        "title": "<string>",
        "url": "<string>",
        "date": "2023-12-25"
      }
    ]
  },
  "failed_at": 123,
  "error_message": "<string>",
  "status": "CREATED"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

request_id
string
required

The ID of the asynchronous chat completion request.

Response

200
application/json

Successfully retrieved async chat completion response.

The response is of type object.