Access & Security
Obtaining an API token
in this guide, we will obtain an api token for interfacing with factry historian's rest api what is an api token an api token is required to authenticate external tools or custom applications with factry historian instead of using a username and password for each request, a token provides a secure and convenient way to grant access tokens can be scoped to a specific organization and set with limited rights, which helps keep integrations safe and manageable step by step guide as an administrator in factry historian go to the historian web app configuration > users select the user with read privileges and click the edit icon on the right as a regular user in factry historian go to the historian web app, and click your profile on the buttom right, and then select user profile next navigate to the 'tokens' tab and click + generate api token give the token a name and an optional expiry date then click submit copy the generated token somewhere safe by either selecting and copying, or by clicking copy to clipboard use cases for api tokens api tokens are needed for configuration docid\ y6tuqfjplisssz44wjm8h configuring the seeq add in configuring the factry historian datasource plugin for grafana docid\ q9t7hxoxsknylawporfdd examples (python) to use the historian api e g with python docid\ lspqiql9j4kyfsa1nmf4a e g with python notes tokens are sensitive credentials; treat them like passwords copy a token when it is created, as it will only be shown once you can revoke or regenerate tokens at any time if they are lost or compromised