Overview
This node integrates with the Flowtly API, specifically providing an authentication mechanism through a login operation. The Auth: Login operation allows users to authenticate by submitting their username and password to obtain a JWT token. This token can then be used for subsequent authenticated requests to the Flowtly API.
Common scenarios where this node is beneficial include:
- Automating workflows that require secure access to Flowtly services.
- Programmatically obtaining authentication tokens to use in other nodes or API calls.
- Integrating Flowtly authentication into larger automation pipelines without manual login steps.
Practical example:
- A user wants to automate data retrieval from Flowtly's organization endpoints. They first use this node to log in and get a JWT token, which is then passed to subsequent nodes to fetch organization data securely.
Properties
| Name | Meaning |
|---|---|
| Username | The username credential for logging in. |
| Password | The password credential for logging in. |
Output
The output JSON contains the following fields:
token: The JWT token string received upon successful login.success: A boolean indicating if the login was successful (true).message: A success message string ("Login successful").response: The full raw response object returned by the Flowtly API login endpoint.
Example output JSON structure:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"success": true,
"message": "Login successful",
"response": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
// ...other response fields
}
}
No binary data is output by this node.
Dependencies
- Requires an active internet connection to reach
https://app.flowtly.com/api/login. - Needs an API key credential configured in n8n for other operations (not directly for login but for subsequent authenticated requests).
- Uses HTTP POST request with JSON body containing username and password.
- No additional environment variables are required for the login operation itself.
Troubleshooting
- No token received from login response: This error occurs if the API response does not contain a valid token field. Verify that the username and password are correct and that the Flowtly API is reachable.
- Failed to parse login response: If the response is not valid JSON, the node will throw this error. Check network connectivity and ensure the API endpoint is returning proper JSON.
- Network or API errors: Any HTTP errors or unexpected responses will cause the node to fail unless "Continue On Fail" is enabled. Check API status and credentials.
- Incorrect credentials: Ensure the username and password are accurate; invalid credentials will result in failed login attempts.
Links and References
- Flowtly API Documentation (assumed official API docs)
- JWT Authentication concepts: https://jwt.io/introduction/
- n8n HTTP Request Node documentation: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/ (for understanding underlying request mechanics)