Integrating with n8n

Integrating DataTrails Authentication and Workflows with n8n

n8n is a workflow automation platform with visual editing capabilities.

Integrating DataTrails with n8n is easy, utilizing OAuth2 credentials and the DataTrails API Reference documentation.

Authentication & Credentials

DataTrails uses an OAuth2 provider, making it easy to integrate client credentials into n8n.

  1. Create a new DataTrails Access Token, saving the Client_ID and Client_Secret
  2. Create a new n8n Credential, clicking the [+] button on the workflow designer.
  3. Choose “OAuth2 API” from the app services list
  4. Name the credential for reference within the workflow
  5. Grant Type: select “Client Credentials”
  6. Access Token URL: set to:
    https://app.datatrails.ai/archivist/iam/v1/appidp/token
    
  7. Client ID: set to the DataTrails Client_ID from step 1
  8. Client Secret: set to the DataTrails Client_Secret from step 1
  9. Save the credential configuration and close the dialog

Executing DataTrails APIs

To execute a DataTrails API:

  1. Add a new n8n node
    Add an HTTP node
  2. Select the HTTP node
  3. Authentication: select “Generic Credential Type”
    HTTP Node Configuration
  4. Generic Auth Type: select “OAuth2 API”
  5. OAuth2 API: select the named credential from the previous step
  6. URL: configure using the DataTrails API Reference documentation
  7. Query Parameters: configure per the API docs

More Info: