post()

Description

POST data to an integration endpoint.

By default the Content-Type is set to application/json, but you can override this value by passing your own headers in the integration() method.

Request

Parameters

FieldRequiredData TypeDescription

path

string

body

Object

Data to be sent to the integration

Examples

POST without custom headers

const results = await client.integration("stripe").post("/customers", JSON.stringify({ email: "customer@email.com" }));

POST with custom headers

const results = await client.integration("stripe", { "Content-Type": "application/x-www-form-urlencoded" }).post("/customers", JSON.stringify({ email: "customer@email.com" }));

Response

Response schema is defined by the integration you are activating. Deskree passes the entire object received by the integration

Last updated