Skip to main content

Overview

Legale is an E-Signing platform to provide the possibility to sign all types of documents digitally.
We provide the REST API to help customers to integrate legale service into their own.
Here we have the API documentation to explain how to use.

Base URL

The base url of legale API is here: https://api.legale.io/api
All the api endpoints should be added behind of this base url.
All the media files base url should be https://api/legale.io/media.

Example

url: {{BASE_URL}}/token

Authentication

Legale Rest API V1 provides two authentication options.

1. Bearer Token

You can use JWT token to authorize your API request.
You should have an legale account to integrate API, so that you can get JWT token to use in every API request.
You can see more details over here.

Example

{
Authorization: `Bearer {{token}}`,
// Other header options
}

2. API Key

You can use API Key to authorize your API request.
You should have an legale account with admin role to integrate API, so that you can generate API Key from here.

Example

{
Legale-Api-Key: `{{api_key}}`,
// Other header options
}

Language

You have a possibility to specified your language in API response.
You can pass the language code in API request header params.
You will receive the response error messages in that language.
Available language codes are en, es, pt.

Example

{
"Accept-Language": "en",
// Other header options
}

Postman example

You can download the postman example from here.
Please make sure to create Postman Environment and set the variable named BASE_URL = https://api.legale.io.