- On your API page, a Deprecated badge in the endpoint list and, on the endpoint itself, a notice with the date, the endpoint to use instead and the planned removal date.
- In the playground, a warning above Send Request. Sending still works.
- In the OpenAPI document and the MCP server, the operation is marked
deprecated: true, and the MCP tool’s description sends agents to the replacement’s tool. - On every response of the endpoint, the standard headers described in Response Headers.
Deprecate an endpoint
In Studio, open the endpoint and choose Deprecate… under Deprecation:
Edit changes these later, and Undo deprecation takes the endpoint back to normal.
With the CLI:
--successor none and --sunset none remove them.
Through the Management API, POST v2/provider/update-endpoint-deprecation sets the whole deprecation at once (endpoints:write).
From an OpenAPI document
An import reads OpenAPI’sdeprecated flag. Our extension x-jojapi-deprecation carries the date, the removal date and the replacement, and jojapi export writes it, so the deprecation travels with your document:
deprecated: true is not deprecated, so importing a document without the flag undoes a deprecation set in Studio. The preview shows it as a deprecation change, and --keep-changed keeps your endpoints as they are. Postman Collections say nothing about deprecation and leave it as it is.
Before you delete it
The deprecation panel in Studio shows who still calls the endpoint: the subscribers whose requests reached it in the last 30 days, with their request counts and their latest call. The same list is available from the CLI:404 Endpoint Not Found.