Skip to content

This how-to is for tenant administrators. When another system — a payroll tool, a reporting script, an automation platform — needs to read or write your data in OSOS, you give it an API token. You will create the token, give it exactly the access the integration needs, hand it to the developer safely, and later replace or revoke it.

An API token belongs to an application user: a user record that stands for a system rather than a person. An application user cannot sign in to the portal. The system that holds its token acts as that user, so it can do exactly what you allow the application user to do — no more.

You never create a token on its own. You add an application user, and the platform creates the token for it and emails it to you, the person who added the user. The token is not shown on screen, and nobody can read it again later. If it is lost, you regenerate it.

Example: the finance team’s reporting tool needs to read approved purchase requests. You add an application user called Finance reporting, share with it a view of the purchase requests that shows what the tool needs, and nothing else, and send its token to the developer who builds the connection. The tool reads through that view.

  • You need permission to add users in Administration › Organization › Users. To regenerate a token later, you need the system Admin level.
  • Your own account must have a working email address: the new token is emailed to you.
  • Agree with the developer which data the integration reads or changes. Give each integration its own application user, so you can revoke one without breaking the others.
  1. Open Administration › Organization › Users, then select Add User.
  2. In Basic Info, enter a name that says what the integration is, for example Finance reporting.
  3. Set User type to Application.
  4. Fill in Account Information as your organization requires.
  5. In Application information:
    • In Name, enter the application’s name.
    • Decide how long the token stays valid. Turn on unexpired for a token that never expires, or leave it off and set an Expiry date. The token stops working at the end of that day.
  6. Select Save.

Within a short time you receive an email with the new API token. Your organization may have renamed some of these fields; the user type is the setting that matters.

Step 2: Give the application user only the access it needs

Section titled “Step 2: Give the application user only the access it needs”

A new application user can do almost nothing until you give it access. Grant it access exactly as you would for a person:

  1. Give it a system level, usually Restricted. See Give everyone a base level.
  2. Give it access to the data the integration works with. To read records, share a view of the entity with it — for example a Purchase Requests view — and the developer reads through that view. See Give a group access to a view, page, report or service; for one user, add the permission under User Permissions instead. To write records, or to read them straight from the entity, give it Edit on the entity. See Permissions & access.

View on the entity is not enough to read its records. View shows the entity’s design, not its records, so when the integration asks the entity for its records it gets an empty list, with no error. For an integration that only reads, prefer a shared view to Edit: Edit would also let it change records. Do not give an application user the system Edit or Admin level unless the integration really administers the platform.

Send the developer:

  • the token, through a secure channel;
  • your organization’s OSOS address (the one people use to sign in);
  • which data the application user can reach.

The developer’s side — how the token is sent with each request — is in Use an API token.

Regenerate a token when it may have leaked, when the developer lost it, or on your organization’s rotation schedule. The application user, its access and its history stay the same.

  1. Open Administration › Organization › Users and find the application user.
  2. Open its menu, then select Regenerate Token. (It is also in the menu at the top of the application user’s own page.)
  3. Select Regenerate to confirm.

The new token is emailed to you, the administrator who regenerated it — not to whoever created the application user. The old token keeps working for a grace period (24 hours unless your operator changed it), so the developer has time to switch to the new one.

You cannot regenerate the token of an archived application user. Restore it first, or add a new application user.

  • To pause an integration, open the application user and select Deactivate Account. Its token stops working. Select Activate Account to allow it again.
  • To end an integration for good, archive the application user. Its token stops working and cannot be regenerated.

Either way, allow up to about five minutes before the token is refused everywhere.

  • The token is only ever emailed. Creation sends it to the person who added the application user; regeneration sends it to the administrator who regenerated it. If the platform cannot find the account of the person who added the application user, no token is created — regenerate it from the user’s menu.
  • Expiry is enforced. After the Expiry date, the token stops working and the integration is refused. Regenerating does not change the expiry date; edit the application user to extend it.
  • Applications installed from the store and server-side functions get their own application users automatically. You do not create tokens for them, and the token of a function is not emailed when you regenerate it: it goes straight to the function.

I never received the token email. Check your spam folder, and check that your own account has the right email address. If the email is lost, regenerate the token.

The integration is refused after it worked before. Check that the application user is not deactivated or archived, and that its Expiry date has not passed. If you recently regenerated the token, the old one stopped working when the grace period ended.

The integration gets an empty list, with no error. The application user cannot list that entity’s records. View on the entity is not enough: share a view with the application user and read through it, or give it Edit on the entity.

The integration is refused for one kind of record only. The application user lacks access to that data. Check it in Administration › Access Management › User Permissions.

Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27