Skip to main content

Where to get a key

Keys are created and revoked in the Croma Legal dashboard at legal.usecroma.com, under Desarrolladores, tab Claves de API. The full key is shown only once at creation, so copy it somewhere safe before leaving the page. An organization can hold up to 5 active keys; revoke the ones you no longer use.

Create an API key

Open the Croma Legal dashboard to mint and manage your organization’s keys.
Key management is enabled per user by Croma (every member of the organization sees the MCP setup, but only enabled users see the Claves de API tab). If you need it, ask your Croma contact.

Bearer scheme

Send the key in the Authorization header using the Bearer scheme, on every request:
The same key authenticates the REST API and the MCP server: usage and rate limits are shared between the two.

Organization-scoped keys only

Keys are minted for an organization, not an individual user, and every request is scoped to that organization: the API never accepts an organization id from the caller. A personal key is rejected with 401:

Key format

Keys are issued branded as croma_<env>_…: croma_live_… in production and croma_test_… elsewhere. Legal keys only work against api.legal.usecroma.com; a key from the Croma public-data platform (platform.usecroma.com) is rejected here, and vice versa.
A key grants read access to your organization’s entire portfolio, including defendant identification numbers and any data you imported. Store it as a secret (environment variable or secrets manager), never commit it, and revoke it from the dashboard the moment it may have been exposed. Revocation takes effect immediately.

Failed authentication

Every authentication failure returns 401 with an authentication_error envelope. The code tells you what went wrong:

Next: Pagination & filters

How lists page, which dates mean what, and how to sync incrementally.