Secrets are objects that contain sensitive data. Secrets allow you to access Treasure Data and pass sensitive information into the Console without compromising security. To do this, you’ll need to set your API Key and endpoint. You can access your API Key from TD Console.
Your personal API Key
The endpoint corresponding to your site access
Open the Console
Select My Settings > API Keys

- Copy your API Key

- Select the appropriate endpoint.
For example:https://api-workflow.us01.treasuredata.com
Open the terminal.
Open your workflow directory.
cd /users/<yourname>/mydirectory- Pass Secrets into the CLI using
--projectand--setcommands to designate the project and set the API Key and endpoint.
td wf secrets --project my_project --set apikey=1234565/abcdefghijklmnopqrstu --endpoint=https://api-workflow.treasuredata.comThe terminal displays the following results:
