Skip to main content

Referencing Credentials

How to reference your credentials in Tines

Written by Jamie Gaynor
Updated today

This guide explains the different ways to reference credentials and find their IDs within your Tines environment.

Referencing an existing credential in a story

When building a story, you can directly reference an existing credential in a story using CREDENTIAL.your_credential_name in the builder, as shown below.

Example:

CREDENTIAL.slack_tines

You can also use the credentials List API to retrieve a list of credentials.

To learn more about the Credentials API including examples see here.

Referencing a credential created in a previous action

To reference a credential you created in a previous action, use the GET() function to get the credential.

Example:

GET(CREDENTIAL, previous_action.body.name)

Handling name formatting:

If the name of the credential from the previous action is not already in snake case, you may need to wrap the name path in the TO_SNAKE_CASE() function.

Example:

GET(CREDENTIAL, TO_SNAKE_CASE(previous_action.body.name))

To learn more about using the GET() function, click here.

Finding the ID of a credential

The unique ID for a credential can be found directly in your browser's address bar when viewing the item in your Tines team's console.

  1. Navigate to Credentials in the relevant team.

  2. Select the specific credential.

  3. The ID is the segment of the URL that follows /credentials/.

Did this answer your question?