Skip to content
English
  • There are no suggestions because the search field is empty.

How do I create an access token for an API call?

Why do you need access tokens?

If you use the Vaira API to create processes, fill in data, or retrieve data from them, your API calls have to be authenticated and authorized. For this, you need service accounts and access tokens.

Service accounts are technical users that perform actions on processes in Vaira via API calls (Application Programming Interface). Before a service account is allowed to do anything via the API, every one of these calls has to be authenticated. Authentication is handled with access tokens.

Once a call is authenticated, the service account also needs permission (authorization) to perform the action in question. Authorization is managed through the permission settings in Vaira Office.

Create a service account

If you have the required permissions, you can create a service account in the settings:

  1. In Vaira Office, click the gear icon in the top right corner to open the Settings.
  2. Select Service Accounts in the menu on the left, then click Create in the top right corner.
    Vaira Office: Settings with the Service Accounts menu item, the list of service accounts and the Create button
  3. In the window that opens, enter a Display name and, optionally, a Description, for example "API order import". Then click Save.
    Vaira Office: Create Service account window with display name, description and the Save button

The new service account now appears in the list. Vaira automatically assigns it its own email address.

Create an access token

If you have the required permissions, you can create access tokens for your service accounts in the service account management:

  1. Open the service account you want. To do this, click the three-dot icon at the end of its row in the list and then click Open.
  2. At the top, you'll see the display name and description of the service account. You can change both here and save your changes with Save. Click the Create Access Token button in the top right corner.
    Vaira Office: opened service account with display name, description and the Create Access Token button
  3. In the Expire after field, set the date and time when the access token expires. This field is optional: if you don't set a date, the access token won't expire until you delete it.
  4. Then click Save.
    Vaira Office: Create Access Token window with the Expire after field
  5. Vaira now shows you the access token ONLY ONCE. Click Copy to clipboard and paste the access token wherever you need it for your API calls. Then close the window with Close.
    Vaira Office: Access token window with the one-time token, blurred here, and the Copy to clipboard button

In the opened service account, you'll then see all access tokens along with their Expiration date. Click the trash can icon at the end of a row to delete an access token.
Vaira Office: list of access tokens of a service account with expiration date and trash can icon

Important: For security reasons, the access token is shown only once, when you create it. If you lose it, there's no way to view it again. In that case, simply delete the old access token and create a new one for the same service account.

Keep in mind that this token grants access to your account for making changes via the API. Anyone who gets hold of it can also access and change your data. If you're not sure whether unauthorized people may have had access to your tokens, delete the tokens in question and create new ones! Just remember to update all your API calls to use the new token afterward, or your integrations will stop working.

Also important: When you delete an access token or an entire service account, Vaira currently doesn't ask you to confirm. Clicking the trash can icon or Delete takes effect immediately. So double-check that you've picked the right row first.

Assign permissions to a service account

In the permission settings, service accounts behave exactly like users and groups. You can learn more in the article on user access rights.