Skip to main content

Set up Workstream APIs

Set up access to your Workstream data through an API so you can manage tokens.

Updated over a month ago

Workstream Public APIs allow seamless integration with your company’s data, enabling efficient communication between different software systems.

These APIs use OAuth 2.0 for secure access, ensuring that only authorized users can retrieve or manage data. Super Admins have exclusive permissions to add integrations and generate access tokens, which are required for authentication.

πŸ“Œ Each access token is valid for seven (7) days, after which a new token must be created or refreshed to maintain connectivity. This setup ensures controlled and secure API usage while facilitating streamlined data management within Workstream.

⚠️ Things to remember:

  • Only Super Admins have permission to add and manage integrations in Workstream. If you need access, please contact your admin for assistance.

  • To enable the OAuth App module, reach out to Workstream support at help@workstream.is. Once activated, Super Admins can generate API tokens for developers to integrate with Workstream.

Located in Admin view > Integrations > Access Token, you can generate your access tokens here.


Create an access token

  1. On Admin View, go to Company Settings β†’ Integrations.

  2. On the left panel, choose Access Token. Click on the Create access token button. A pop-up should appear.

  3. In the Create token pop-up,

    1. (Required) Name your access token.

    2. (Required) Choose the data access this token will have.

    3. Once done, click Create.
      ​

      image.png

  4. After clicking Create, a confirmation message will appear containing your Access token. Copy this token by clicking on the Copy token button and save this token somewhere secure.

    Access token confirmation

Refresh an access token

  1. On Admin View, go to Company Settings β†’ Integrations.

  2. On the left panel, choose Access Token.

  3. Click on the three-dot menu (β€’β€’β€’) beside the token/s you wish to refresh then click Refresh Token.
    ​

    meatball menu

  4. A confirmation asking you to confirm the token refresh. Click Refresh.
    ​Note: Any applications or scripts using the token you're refreshing will be impacted.

  5. After refreshing, the confirmation message will appear containing your Access token. Copy this token by clicking on the Copy token button and save this token somewhere secure.

    confirm refresh

Edit an access token

  1. On Admin View, go to Company Settings β†’ Integrations.

  2. On the left panel, choose Access Token.

  3. Click on the three-dot menu (β€’β€’β€’) beside the token/s you wish to edit then click Edit. A pop up should appear.
    ​

    meatball menu

  4. Choose the Data accesses you wish you add or remove for the Token. Once done, click Save.
    ​

    edit access token

Delete an access token

  1. On Admin View, go to Company Settings β†’ Integrations.

  2. On the left panel, choose Access Token.

  3. Click on the three-dot menu (β€’β€’β€’) beside the token/s you wish to edit then click Delete. A pop up should appear asking you to confirm the deletion.
    ​

    meatball menu

  4. If decision is final, click Delete.
    ​

    confirm delete

Did this answer your question?