# The JSON-RPC API is deprecated

Odoo External API deprecated /jsonrpc without giving a shutdown date yet.

The provider has deprecated the /jsonrpc endpoint without a shutdown date, though it is scheduled for removal in future releases. Calls using this endpoint will eventually fail once removed. This deprecation affects all requests currently targeting the legacy JSON-RPC interface.

## What to use instead

Use the External JSON-2 API instead by sending POST requests to /json/2/{model}/{method} with an API key in the Authorization: bearer header.

- API: Odoo External API (*.odoo.com)
- Kind: Endpoint removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `/jsonrpc`
- Source: [Announcement](https://www.odoo.com/documentation/19.0/developer/reference/external_rpc_api.html)
- Verified: October 26, 2026, against Odoo External API's own pages
- Page: https://www.okapi.bot/providers/odoo-external-api/breaking-changes/the-json-rpc-api-is-deprecated/

## Odoo External API's words

> Deprecated since version 19.0. Both the XML-RPC and JSON-RPC APIs at endpoints /xmlrpc , /xmlrpc/2 and /jsonrpc are scheduled for removal in Odoo 22 (fall 2028) and Online 21.1 (winter 2027). The External JSON-2 API acts as a replacement.

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