API Tokens

API Tokens

An API Token is a pseudo-user account that’s useful for anyone developing an application using the Portfolio REST API.

Usually, an API-based app would need to log in to the Portfolio API and get a session ID, which it would need to renew when its Portfolio session times out.

Instead, you can create an API Token which the developer can use to connect to the API, bypassing the need for additional session management.

You can assign the API Token any role in all catalogs.

The permissions that a session using an API Token has depend on its role in each catalog.

Connections using an API Token don’t count against the number of user connections available to your Portfolio installation.

To generate an API Token:

  1. Click Users.

  2. Click Add  at the top of the Users pane.

  3. Enter an Account Name for the token.

  4. Select the option Add New API Token.

  5. Select Add user to all catalogs as, then select a Role from the drop-down menu.

  6. Click Create.

  7. Select the new token in the list of users on the left.

  8. Make a note of the Token value. You will use it instead of a session ID in calls to the REST API.

    When using an API Token, you don’t need to call service.login to get a session ID, so your connection will never time out, and it doesn’t count against the number of user connections available to your Portfolio installation.

To change a token’s access to a catalog:

  1. Click Catalogs and select a catalog.

  2. Click Users at the top of the Catalogs pane.

  3. Click the pop-up menu in the Role column for the token account, then do one of the following:

    • To change the user’s role, choose a new role from the pop-up menu, then click Change Role in the confirmation dialog.

    • To remove the user from the catalog, choose None from the pop-up menu, then click Remove in the confirmation dialog.

For more information about the Portfolio API, see The Portfolio API.

    • Related Articles

    • The Portfolio API

      The Portfolio API provides a common interface for developers to integrate Portfolio catalogs, asset metadata, and media processing into business systems, custom workflows, and web infrastructures. By using a single, well-supported programming ...
    • Smart Keywords No Longer Applying to Assets

      Description Assets are no longer being tagged with smart keywords Affected Versions This issues applies to Portfolio 3.0 and above. Recommendation The vendor Clarafai has announced the deprecation of the API that on-prem solutions like Portfolio use ...
    • What ports does Portfolio use?

      Portfolio requires these ports to allow incoming connections: 8085 - NetPublish sites (HTTP) 8090 - Portfolio Web and Portfolio API (HTTP) 8091 - Portfolio Administration (HTTP) 8095, 8086, 8085, 8096 - NetPublish sites (HTTPS) 9443 - Portfolio Web ...
    • Portfolio Glossary

      Following are some terms used throughout Portfolio and its documentation. Some are technical (“computer”) terms that relate to Portfolio features and services, some are fundamental concepts within Portfolio, and some are terms that relate to Digital ...