Skip to content

Configure Credentials

Before using any features, you must first create a TTLock API credential in n8n.

Create Credential

  1. Click the "+" button on the n8n workflow canvas
  2. Type TTLock in the search box, find the TTLock node and add it
  3. In the node's Credential dropdown, select Create new credential
  4. Fill in the following information:
FieldDescriptionExample
Client IDOpen platform Client IDyour_client_id
Client SecretOpen platform Client secretyour_client_secret
UsernameYour TTLock App usernameyour@email.com
PasswordYour TTLock App passwordyourpassword
  1. Click Save to save the credential

Tips

  • Saved credentials can be reused; no need to re-enter each time

Register on the TTLock Open Platform

Before creating credentials, you must first register on the TTLock Open Platform to obtain your Client ID and Client Secret:

  1. Visit the TTLock Open Platform and log in
  2. In the Management Center, create an application
  3. Wait for approval, then obtain your Client ID and Client Secret

Use these values when filling in the credential fields above.

Auto-handled Parameters

Once the credential is created and activated, the node automatically carries the following common parameters on every API call — no need to fill them manually in the node:

ParameterDescription
clientIdAuto-read from credential
accessTokenAuto-obtained and refreshed after credential activation
dateAuto-generated current timestamp at call time

Credential Security

  • Keep your Client ID and Client Secret safe — never commit them to public repositories
  • Consider creating separate credentials for development and production environments

Next Steps