Skip to content

Authentication

Legaldoc.io uses API Keys to authenticate requests to the API. Each key is a unique token tied to your account or team — the API uses it to identify who is making the request and authorize its access.

You can generate and manage your API Keys from your account or team settings on the Legaldoc platform. When creating one, choose a descriptive name and, optionally, an expiration date.

Store the key securely as soon as it’s generated: it won’t be shown in full again afterwards.

Include the key in the Authorization header of every request, with no Bearer prefix:

Authorization: {API_KEY}
Content-Type: application/json

Example with cURL:

Ventana de terminal
curl --location 'https://app.legaldoc.com/api/v2/envelope' \
--header 'Authorization: {API_KEY}'

The API Key has access to your account and all of its resources. Keep it safe and don’t share it. If you suspect it has been compromised, revoke it and generate a new one from the same settings section.