Capsule Destination
Capsule
Create a Capsule Destination
-
Click the + icon on the Nexset that will be sent to the Capsule destination, and select the Send to Destination option from the menu.
-
Select the Capsule connector from the list of available destination connectors. Then, select the credential that will be used to connect to the Capsule organization, and click Next; or, create a new Capsule credential for use in this flow.
-
In Nexla, Capsule destinations can be created using pre-built endpoint templates, which expedite destination setup for common Capsule endpoints. Each template is designed specifically for the corresponding Capsule endpoint, making destination configuration easy and efficient.
• To configure this destination using a template, follow the instructions in Configure Using a Template.Capsule destinations can also be configured manually, allowing you to send data to Capsule endpoints not included in the pre-built templates or apply further customizations to exactly suit your needs.
• To configure this destination manually, follow the instructions in Configure Manually.
Configure Using a Template
Nexla provides pre-built templates that can be used to rapidly configure destinations to send data to common Capsule endpoints. Each template is designed specifically for the corresponding Capsule endpoint, making destination setup easy and efficient.
-
To configure this destination using a template, select the endpoint to which data will be sent from the Endpoint pulldown menu. Then, click on the template in the list below to expand it, and follow the instructions to configure additional endpoint settings.
Configure Manually
Capsule destinations can be manually configured to send data to any valid Capsule API v2 endpoint. Manual configuration provides maximum flexibility for accessing endpoints not covered by pre-built templates or when you need custom API configurations.
Using manual configuration, you can also configure Nexla to automatically send the response received from the Capsule API after each call to a new Nexla webhook data source.
API Method
-
To manually configure this destination, select the Advanced tab at the top of the configuration screen.
-
Select the API method that will be used for calls to the Capsule API from the Method pulldown menu. The Capsule API v2 primarily uses POST requests for data writing operations. The most common methods are:
- POST: For creating new resources (e.g., creating parties, creating tasks)
- PUT: For updating existing data
- PATCH: For partial updates to existing data
- DELETE: For removing data
Data Format
- Select the format in which the Nexset data will be sent to the Capsule API from the Content Format pulldown menu. Nexla will automatically convert the data to the selected format for each API call. The Capsule API v2 typically uses JSON format for request bodies.
API Endpoint URL
- Enter the URL of the Capsule API endpoint to which you want to send the Nexset data in the URL field. This should be the complete URL including the protocol (https://) and any required path parameters. Capsule API endpoints typically follow the pattern
https://api.capsulecrm.com/api/v2/{endpoint_path}.
Ensure the API endpoint URL is correct and accessible with your current credentials. You can test the endpoint using the Test button after configuring the URL. The endpoint requires Bearer token authentication in the Authorization header, which is handled automatically by your credential configuration. For detailed information about Capsule API endpoints and available APIs, see the Capsule API documentation.
Request Headers
-
If Nexla should include any additional request headers in API calls to this destination, enter the headers & corresponding values as comma-separated pairs in the Request Headers field (e.g.,
header1:value1,header2:value2). Additional headers are often required for API versioning, content type specifications, or custom authentication requirements.You do not need to include any headers already present in the credentials. Common headers like Authorization (Bearer token), Content-Type, and Accept are typically handled automatically by Nexla based on your credential configuration. The Capsule API v2 requires Bearer token authentication in the Authorization header, which is handled automatically by your credential configuration. The
Content-Type: application/jsonheader is typically set automatically for JSON request bodies.
Request Body
-
If the API endpoint requires a specific request body format, configure how Nexla should format the request body from your Nexset data. The request body can be sent as JSON, XML, or form data, depending on the API endpoint requirements.
-
For JSON format, select JSON from the Request Body Format dropdown, and the Nexset data will be sent as a JSON object in the request body. Capsule API v2 endpoints typically use JSON format for request bodies.
-
For XML format, select XML from the Request Body Format dropdown, and the Nexset data will be converted to XML format in the request body.
-
For Form data format, select Form Data from the Request Body Format dropdown, and the Nexset data will be sent as form-encoded data in the request body.
-
Save the Destination
-
Once all configuration steps have been completed, click the Save button to save your destination configuration.
-
The destination will now be available in your data flow and will begin sending data to the Capsule endpoint according to the configured settings.