Configure Credentials
Before using any features, you must first create a TTLock API credential in n8n.
Create Credential
- Click the "+" button on the n8n workflow canvas
- Type
TTLockin the search box, find the TTLock node and add it - In the node's Credential dropdown, select Create new credential
- Fill in the following information:
| Field | Description | Example |
|---|---|---|
| Client ID | Open platform Client ID | your_client_id |
| Client Secret | Open platform Client secret | your_client_secret |
| Username | Your TTLock App username | your@email.com |
| Password | Your TTLock App password | yourpassword |
- 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:
- Visit the TTLock Open Platform and log in
- In the Management Center, create an application
- 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:
| Parameter | Description |
|---|---|
clientId | Auto-read from credential |
accessToken | Auto-obtained and refreshed after credential activation |
date | Auto-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
- Features — Learn about each feature and its operation steps
- Workflow Examples — See real workflow examples