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.
Getting an API Key
Section titled “Getting an API Key”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.
Using the API Key
Section titled “Using the API Key”Include the key in the Authorization header of every request, with no Bearer prefix:
Authorization: {API_KEY}Content-Type: application/jsonExample with cURL:
curl --location 'https://app.legaldoc.com/api/v2/envelope' \ --header 'Authorization: {API_KEY}'Security
Section titled “Security”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.