AUTHENTICATION

Authentication Using User Tokens

All requests to the public API must be made on behalf of a user who has access to the PLAN-R space from which you want to retrieve data. Users accessing the API are authenticated using text tokens, which must be included in the HTTP request's Authorization header.

Example: Retrieve Enterprise Project Structure (EPS) tree elements.

curl -X 'GET' \
  'https://your-org.domain/public-api/eps' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'Authorization: client-text-token'
  -H 'x-version: 409' \
  -H 'x-tenant-id: 3fa85f64-5717-4562-b3fc-2c963f66afa6'

If you attempt to access a REST API endpoint without a token or with an invalid token, you receive a 401 Unauthorized response. If the user does not have permission to use the endpoint or access the requested data, you receive a 403 Forbidden response.

Generating User Tokens

API tokens are managed on the "Users" tab in the web administration console.

To generate a token, select the user on whose behalf the API will be called, open the "IP token list" section, and click "Add". In the dialog that opens, enter a token name, click "Generate", and specify the token expiration date. If necessary, add IP addresses to the list to restrict API requests using this token to those addresses.

Copy the generated token and store it in a secure location, as it will no longer be available for viewing. If you forget or lose the token, you must generate a new one.

Attention! For security reasons, do not share the token with third parties. Limit the token's lifetime.


608.0-5d1f26c7