# POST /api/v1/public/{}/runs/query stops working

Calls to POST /api/v1/public/{id}/runs/query on LangSmith API stop working on January 31, 2027.

On January 31, 2027, POST /api/v1/public/{id}/runs/query will stop working and calls to it will fail. LangSmith marked the endpoint as deprecated on July 27, 2026, alongside other legacy endpoints replaced by the SmithDB SDK migration guide. Requests made after the January 31, 2027 sunset date will not succeed.

## What to use instead

Call POST /api/v2/public/{share_token}/runs/query instead.

- API: LangSmith API (api.smith.langchain.com)
- Kind: Endpoint removal
- Announced: July 27, 2026
- Takes effect: January 31, 2027
- Calls after that day: fail
- Calls it hits: `POST /api/v1/public/{id}/runs/query`
- Source: [Announcement](https://docs.langchain.com/langsmith/changelog)
- Verified: November 6, 2026, against LangSmith API's own pages
- Page: https://www.okapi.bot/providers/langsmith-api/breaking-changes/post-api-v1-public-runs-query-stops-working/

## LangSmith API's words

> LangSmith marks every legacy endpoint replaced by the SmithDB SDK migration guide as deprecated: the v1 runs query and retrieve endpoints, the v1 run sharing and public-run read endpoints, POST /api/v1/datasets/{dataset_id}/runs , and the annotation queue run endpoints. All of them now respond with Deprecation: true , a Sunset date of January 31, 2027

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
