Skip to content
POST /proxy/{resource}/{id}

POST /proxy/{resource}/{custom_method}: here the last path segment is the name of a custom method, not a record ID. Calls a method of the integration's resource other than list, get, create, update and delete, with the request body. Send Idempotency-Key to make a retry return the first response.

Auth: an API token, or an integrated account token.

Path Parameters

resourcestring
required·

The name of a resource in the integration's config.

Example: contacts
idstring
required·

The record ID. For POST, the name of a custom method on the resource instead.

Example: 12345

Query Parameters

integrated_account_idstring · uuid

The integrated account to call. Required unless you call with an integrated account token.

Example: 94801e49-a652-42f9-af14-dd203d7897da
truto_body_passthroughboolean

Send the request body to the integration as is, without parsing it.

truto_response_formatstring

stream returns the integration's response body as it arrives, without parsing it. Files and other non-JSON responses are already streamed; use stream for JSON or XML responses too large to process. raw returns the integration's whole response body instead of only the records at the method's response path.

Possible values:
rawstream

Header Parameters

Idempotency-Keystring

A retry with the same key, path and integrated account within 24 hours returns the first response instead of calling the integration again.

curl -X POST 'https://api.truto.one/proxy/{resource}/{id}?integrated_account_id=<integrated_account_id>' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const integratedAccountId = '<integrated_account_id>';

const response = await fetch(`https://api.truto.one/proxy/{resource}/{id}?integrated_account_id=${integratedAccountId}`, {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/proxy/{resource}/{id}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
    "integrated_account_id": "<integrated_account_id>"
}

response = requests.post(url, headers=headers, params=params)
print(response.json())