Skip to content
GET /custom/{path}

Sends a request to any path of the integration's API with the integrated account's credentials. Every HTTP method works the same way (GET, POST, PUT, PATCH, DELETE, HEAD); the method you call is the method Truto sends. Query parameters other than integrated_account_id are passed on.

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

Path Parameters

pathstring
required·

The path to call on the integration's API, after its base URL. It can span several segments (/custom/v1/users/42). It must stay on the integration's host: an absolute or protocol-relative path is a 400.

Example: v1/users

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_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

Response Body

next_cursorstring

The integration's next_cursor, when its response body carries one.

prev_cursorstring

The integration's prev_cursor, when its response body carries one.

resultarray | Record<string, any>

The integration's response body, as the integration returned it.

Errors

StatusDescription
400integrated_account_id is missing, there is no path, the path leaves the integration host, or methodConfig.base_url is set.
404The integrated account was not found in your environments.
curl -X GET 'https://api.truto.one/custom/{path}?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/custom/{path}?integrated_account_id=${integratedAccountId}`, {
  method: 'GET',
  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/custom/{path}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
    "integrated_account_id": "<integrated_account_id>"
}

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