GET /v1/async/sonar/{api_request} returns the list of all requests instead of single request data

:bug: Describe the Bug

API calls to GET /v1/async/sonar/{api_request} return the same response as calls to GET /v1/async/sonar

:white_check_mark: Expected Behavior

I expect the endpoint GET /v1/async/sonar/{api_request} to return the data for the specific async request with the given ID.

:cross_mark: Actual Behavior

The endpoint GET /v1/async/sonar/{api_request} returns a list of all my async requests.

:counterclockwise_arrows_button: Steps to Reproduce

  1. Call the API using the following request: GET /v1/async/sonar/{api_request}
  2. Observe the unexpected behavior.

:pushpin: API Request & Response

curl --location 'https://api.perplexity.ai/v1/async/sonar/9bb07b01-cbf3-4fec-9531-890ab8509a27' --header 'Authorization: Bearer'
{
    "next_token": null,
    "requests": [
        {
            "id": "9bb07b01-cbf3-4fec-9531-890ab8509a27",
            "created_at": 1774957725,
            "started_at": null,
            "completed_at": 1774957832,
            "failed_at": null,
            "model": "sonar-deep-research",
            "status": "COMPLETED"
        }
    ]
}

The same response is returned for an invalid ID:

curl --location 'https://api.perplexity.ai/v1/async/sonar/abcdefg' --header 'Authorization: Bearer'

:globe_showing_europe_africa: Environment

  • API Version: sonar-deep-research
  • Operating System: MacOS
1 Like

Same here! Unable to retrieve the result of an async deepresearch.