TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

This node allows you to create a new message thread within the "Message Threads" resource of the Twenty API. It is useful for initiating conversations or discussions programmatically, such as starting a new chat thread in a community or support forum. For example, you might use this node to automate the creation of discussion threads based on user input or system events.

Properties

Name Meaning
Depth Determines how much related nested data is included in the response when creating the message thread:
- 0: Only the primary message thread object.
- 1: The primary object plus its directly related objects.
- 2: The primary object, its related objects, and their related objects (two levels deep).

Output

The node outputs JSON data representing the newly created message thread. The structure includes the primary message thread information and, depending on the Depth property, may include nested related objects up to two levels deep. This output can be used downstream in your workflow to reference the created thread or extract details from it.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the Twenty API.
  • The node expects the base URL for the API to be configured via credentials.
  • The node uses standard HTTP headers for JSON content negotiation.

Troubleshooting

  • Common issues:

    • Authentication failures due to missing or invalid API keys.
    • Incorrect Depth values outside the allowed range (0, 1, 2) may cause unexpected responses.
    • Network connectivity problems preventing access to the Twenty API endpoint.
  • Error messages:

    • Authorization errors typically indicate issues with the provided API key; ensure the credential is correctly set up.
    • Validation errors may occur if required fields are missing or malformed in the request.
    • Timeout or connection errors suggest network issues or incorrect API base URL configuration.

Links and References

Discussion