The Legislate API utilises API keys to authenticate requests. In particular, authentication to the API is performed via HTTP Bearer Authentication (also called token authentication).
To perform an authenticated API call, you must set the Authorization header of your HTTP request to:
If your request to access the API is successful, we will provide you with a API key.
Sandbox and production
We will provide two different API keys for each environment. Be careful to use it with the right environment.
Once you have obtained your access token you can make your first request.
curl --location --request GET 'https://api.legislate.tech/v1/teams/<team_id>/contracts/' \ --header 'Authorization: Bearer <access_key>' \
curl --location --request GET 'https://sandbox.legislate.tech/v1/teams/<team_id>/contracts/' \ --header 'Authorization: Bearer <your_jwt>' \