Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

API access tokens are enabled by default.

Enable individual access

When access tokens are enabled, by default only administrators are permitted to generate tokens. Optionally, workspace administrators can enable individual users in the workspace to generate and use their own API access tokens. For more information, see Workspace Settings Page.



Generate New Token

API access tokens must be created. 

...

...

NOTE: The first time that you request a new API token, you must submit a separate form of authentication to the endpoint. To generate new access tokens after you have created one, you can use a valid access token if you have one.

Via UI

Tokens can be generated from the web application.

...

  1. Login to the 
    D s webapp
    .
  2. From the left nav bar, select User menu > Preferences > Access Tokens.
  3. Click Generate New Token.
  4. Specify the number of days for how long the token should live.   TipTip: Depending on how your environment is configured, you may be able to enter Enter -1 to create a non-expiring token.
  5. Add a user-friendly description if desired.
  6. Click Generate.
Info

NOTE: Copy the value of the token to the clipboard and store it in a secure location for use with your scripts. For security reasons, the token value itself cannot be retrieved from the application after it has been created.


For more information, see Access Tokens Page.

...

Info

NOTE: API access tokens are not used by users through in the

D s webapp
.


After you have acquired the token, you submit it with each API request to the platform.

Example - cURL: The following example returns a JSON version of the list of available REST API endpoints for your environment:


Code Block

...

curl http://<my_workspace_name>.cloud.trifacta.com/v4/

...

jobGroups -X GET -H "Authorization: Bearer (tokenValue)"


  • <my_workspace_name> is the name of the workspace from which the token was issued.

...

  • Via UI: In the Access Tokens page, select Delete Token... from the context menu for the token listing. See Access Tokens Page.

...