Skip to content

Login

Environmentbase_urlDescription
Productionhttps://app.firmeasy.legal/apiStable environment for end customers.
Testhttps://staging.firmeasy.legal/apiValidation and testing environment before production.

The login endpoint allows you to obtain the access token needed to authenticate all subsequent calls to the Firmeasy API.

The user_integration_token is a unique identifier for each client integration (details about its provision and validity pending confirmation).

POST {{base_url}}/v1/auth/{{user_integration_token}}/login

To authorize access to the API, you must include the authentication token in the Authorization header using the Bearer scheme. Additionally, the Content-Type header must specify that the request body (if any) is sent in JSON format.

ParameterTypeDescriptionLimits
Content-TypestringSpecifies the content type of the HTTP request body. For requests that include JSON data'application/json'

The request body contains the necessary parameters to perform the operation. Fields marked with * are required; the rest are optional depending on each integration’s needs.

ParameterTypeDescriptionLimits
email*stringEmail address of the user who has access to the integration via APIObligatorio
password*stringPassword associated with the emailObligatorio
{
"email": "[email protected]",
"password": "contraseña_secreta"
}

Upon successful authentication, a Bearer access token is returned which must be used in the Authorization header for all subsequent requests.

{
"access": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2FwcCZWdhbC9hcGkvdjEvYXV0aC8xYzNmMTM4Yi0yMjAzLTQxOTMtOGQ1YyXQiOjE3NTA2ODgyODQsImV4cCI6MTcwibmJmIjoxNzUwNjg4Mjg0LCJqdGkiOiJoQ1lwic3ViIjoiMTAwIiwicHOWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9._W84a9SWmt9EiCOGh3S-oNY1QYI42rXVli1O-jUfDAg",
"token_type": "bearer",
"expires_in": 3600,
"served_from_cache": false
}

NombreTypeDescription
accessstringAccess Token that must be included in the Authorization header for future calls.
token_typestringType of token returned (always `bearer`).
expires_inintToken lifetime in seconds.
served_from_cachebooleanIndicates whether the response was served from cache.