# Get Async Chat Completion

**GET** `/v1/async/sonar/{api_request}`

Retrieve the response for a given asynchronous chat completion request.

Base URL: `https://api.perplexity.ai`

## Authorization

| Option | Scheme | Type | Sent as | Scopes |
| --- | --- | --- | --- | --- |
| Option 1 | `HTTPBearer` | `http` | `Authorization: Bearer <token>` | — |

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `api_request` | `string` | Yes | — |

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | Successful Response | `application/json` |
| `422` | Validation Error | `application/json` |

### Example response: 200 — Successful Response

```json
{
  "completed_at": 0,
  "created_at": 0,
  "error_message": null,
  "failed_at": 0,
  "id": "string",
  "model": "string",
  "response": {
    "choices": [
      {
        "delta": {
          "content": [
            {
              "file_name": null,
              "file_url": {},
              "type": "file_url"
            }
          ],
          "role": "assistant"
        },
        "finish_reason": "length",
        "index": 0,
        "message": {
          "content": [
            {
              "file_name": null,
              "file_url": {},
              "type": "file_url"
            }
          ],
          "role": "assistant"
        }
      }
    ],
    "citations": [
      "string"
    ],
    "created": 0,
    "id": "string",
    "images": [
      {
        "height": 0,
        "image_url": "string",
        "origin_url": "string",
        "title": "string",
        "width": 0
      }
    ],
    "model": "string",
    "object": "chat.completion",
    "related_questions": [
      "string"
    ],
    "search_results": [
      {
        "date": null,
        "last_updated": null,
        "snippet": "",
        "source": "web",
        "title": "string",
        "url": "string"
      }
    ],
    "usage": {
      "citation_tokens": 0,
      "completion_tokens": 0,
      "cost": {
        "citation_tokens_cost": null,
        "input_tokens_cost": 0,
        "output_tokens_cost": 0,
        "reasoning_tokens_cost": null,
        "request_cost": null,
        "search_queries_cost": null,
        "total_cost": 0
      },
      "num_search_queries": 0,
      "prompt_tokens": 0,
      "reasoning_tokens": 0,
      "search_context_size": null,
      "total_tokens": 0
    }
  },
  "started_at": 0,
  "status": "COMPLETED"
}
```

### Example response: 422 — Validation Error

```json
{
  "detail": [
    {
      "loc": [
        0
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
```

## Related pages

- [Add a skill revision](./updateskill.md)
- [Cancel Agent Response](./cancelagentresponse.md)
- [Create a skill](./createskill.md)
- [Create Agent Response](./createagent.md)
- [Create Async Chat Completion](./create_async_chat_completions_async_chat_completions_post.md)
- [Create Chat Completion](./chat_completions_chat_completions_post.md)
- [Create Contextualized Embeddings](./contextualized_embeddings_v1_contextualizedembeddings_post.md)
- [Create Embeddings](./embeddings_v1_embeddings_post.md)
- [Delete a skill](./deleteskill.md)
- [Download Agent Response File](./downloadagentfile.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
