Configuring the request
- Determine the appropriate request method (e.g., GET or POST) based on the requirements of the third-party API.
- Paste or input the API’s endpoint URL as needed.
GET and POST requests
The custom connector requests consist of several key components: HTTP Method: The custom connectors primarily support two HTTP methods: GET and POST. These methods are essential for interacting with external services and data sources.- GET: This method is used to retrieve data from an external resource or API.
- POST: This method is used to retrieve data from an API when the query parameters are too large, complex, or sensitive to be safely passed in a URL, allowing them to be sent securely within the request body.
- Authentication headers: These headers can include API keys or tokens required to authenticate your connection with the external resource.
- Content-Type headers: These specify the format of the data being sent or received, such as JSON in the case of Custom Connector.
- Custom headers: You can add custom headers to convey any additional information necessary for your integration.
Content-Type header.
Responses
Each response can either be empty—for example in case of an update that returns an HTTP 204 response and does not need to return additional information—or a JSON object. Success Response (JSON Object):Error handling
Common error HTTP status codes include:- 400 Bad Request: This means that client-side input fails validation.
- 401 Unauthorized: This means the user is not authorized to access a resource. It usually returns when the user isn’t authenticated.
- 403 Forbidden: This means the user is authenticated, but it is not allowed to access a resource.
- 404 Not Found: This indicates that a resource was not found.
- 500 Internal server error: This is a generic server error. It should not be explicitly raised.
- 502 Bad Gateway: This indicates an invalid response from an upstream server.
- 503 Service Unavailable: This indicates that something unexpected happened on the server side (it can be anything like server overload, some parts of the system failed, etc.).

