Teamleader icon

Teamleader

Consume Teamleader API

Actions60

Overview

This node interacts with the Teamleader API to retrieve information about files when using the "Files" resource with the "Info" operation. It fetches detailed data for a single file based on its unique ID. This is useful in scenarios where you need to access metadata or details of a specific file stored in Teamleader, such as retrieving file attributes before processing or linking it within workflows.

Practical examples:

  • Fetching file details to verify file type or size before downloading or sharing.
  • Retrieving metadata to log or audit file usage.
  • Using file info to conditionally trigger further automation steps based on file properties.

Properties

Name Meaning
ID The unique identifier of the file to retrieve information about. This is required to specify which file's details are fetched.

Output

The node outputs JSON data representing the detailed information of the requested file. The structure corresponds to the Teamleader API response for a file info request and typically includes fields such as file name, size, type, creation date, and other metadata.

If multiple items were returned (in other operations), the output would be an array; however, for the "Info" operation on a single file, the output is a single object with the file's details.

No binary data output is indicated for this operation.

Dependencies

  • Requires an OAuth2 API credential configured for Teamleader to authenticate requests.
  • Makes HTTP POST requests to the Teamleader API endpoint at https://api.focus.teamleader.eu.
  • The node depends on n8n's built-in OAuth2 credential handling and HTTP request helper methods.

Troubleshooting

  • No data returned but request was successful: This message indicates that the API call succeeded but no file data was returned. Verify that the provided file ID is correct and that the file exists.
  • No data got returned: This error occurs if the API response does not contain expected data. Check the file ID and ensure the API credentials have sufficient permissions.
  • Authentication errors: Ensure the OAuth2 credentials are valid and properly configured.
  • Invalid ID format: The file ID must be a valid string matching Teamleader's file identifiers.

To resolve these issues:

  • Double-check the file ID input.
  • Confirm API credentials and permissions.
  • Review Teamleader API documentation for any changes or limitations.

Links and References

Discussion