Authentication
Obtain a short-lived Bearer access token. Use Method A (username/password) for interactive or first-time access; use Method B (Personal Access Token exchange) for automated/service integrations. Pass the resulting token in the Authorization: Bearer <access_token> header on every other request.
Log in with your username and password. The response contains the accessToken used as the Bearer token on subsequent calls, plus an idToken and refreshToken. Use this method for interactive or first-time access.
<username><password>Authentication succeeded.
<access_token><id_token><refresh_token>Bearer86400openid profile email offline_access2024-04-23T04:45:11.625+00:00POST /lineajeidentity/api/v1/login HTTP/1.1
Host: lineaje-identity-service.v2.prod.veedna.com
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"username": "<username>",
"password": "<password>"
}Authentication succeeded.
{
"accessToken": "<access_token>",
"idToken": "<id_token>",
"refreshToken": "<refresh_token>",
"tokenType": "Bearer",
"expiresIn": 86400,
"scope": "openid profile email offline_access",
"expiresAt": "2024-04-23T04:45:11.625+00:00"
}Exchange a Lineaje Personal Access Token (PAT) — a long-lived refresh token — for a short-lived access token. Pass the PAT as the refreshToken query parameter; the request body is the JSON literal null. Use this method for automated/service integrations.
The access token is short-lived (expires_in seconds, default 3600 = 1 hour); request a new one before it expires. If the response includes a refresh_token, replace your stored PAT with it for the next exchange. Keep your PAT secret (supply it via an environment variable such as LINEAJE_PAT_TOKEN). The renew endpoint can be overridden with LINEAJE_RENEW_ACCESS_TOKEN_URL for a non-default identity service.
Your Lineaje Personal Access Token (PAT).
<LINEAJE_PAT_TOKEN>Access token issued (and a rotated PAT, when returned).
eyJhbGciOiJ...Rotated refresh token, if returned.
<rotated refresh token, if returned>Seconds until the access token expires (default 3600).
3600POST /lineajeidentity/api/v1/auth/native/renew-access-token?refreshToken=text HTTP/1.1
Host: lineaje-identity-service.v2.prod.veedna.com
Content-Type: application/json
Accept: */*
Access token issued (and a rotated PAT, when returned).
{
"access_token": "eyJhbGciOiJ...",
"refresh_token": "<rotated refresh token, if returned>",
"expires_in": 3600
}Last updated