API and API keys
Trail provides an open API that allows other systems to read and write data in Trail.
API documentation can be found here: api-doc.trail.fi.
To use the API, API keys must first be enabled for your Trail environment. Contact Trail at support@trail.fi
You need access to the Admin module to manage API keys. If needed, Trail support can add on a setting that: Admins Can See All Api Keys
Topics:
Create a new API key
- Open Admin → API Keys

- Click Create

- Enter details for the API key
- Enter name
- Add a description (optional)
- Select the validity period
- This determines how long the API key can be used
- Add departments that API key can access
- The API key can only access the selected departments
- Set the required rights for the API key
- These rights apply specifically to this API key
- Only grant the rights that the integration needs

- Click Create
- For more information about different access rights, see User rights explained.
Download and activate the API key
After creating the API key, it appears in the API Keys list with the status Inactive.
- Find the API key in the list
- Download the key

- After the key has been downloaded, its status changes to Active

- The API key is now ready to use.
- Keep the downloaded API key secure and only share it with people or systems that need access to the Trail API.
Use the API key
API documentation can be found here: api-doc.trail.fi