Describe the Bug
API calls to GET /v1/async/sonar/{api_request} return the same response as calls to GET /v1/async/sonar
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.
Actual Behavior
The endpoint GET /v1/async/sonar/{api_request} returns a list of all my async requests.
Steps to Reproduce
- Call the API using the following request: GET /v1/async/sonar/{api_request}
- Observe the unexpected behavior.
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'
Environment
- API Version: sonar-deep-research
- Operating System: MacOS