For the complete documentation index, see llms.txt. This page is also available as Markdown.

Result Control

Introduction

This section describes how you can control the quantity of information provided in responses of the intratool API.

Includes

If an object has related content, you can request this data without firing additional requests.

The structure to apply includes is as follows:

  • {route} - The endpoint you want to retrieve data of

  • ?include - To identify the incoming URL parameter

  • {relations} - Relation identifiers are separated by |

GET /api/{route}?include={relations}

You can combine includes with selects. Just add the fields to select separated by a :.

relation:field1,field2

Selects

Selects can be used to control which fields of an entity should be returned by our API.

The structure to apply select fields is as follows:

  • {route} - The endpoint you want to retrieve data of

  • ?select - To identify the incoming URL parameter

  • {selects} - Field keys to include are separated by ,

GET /api/{route}?select={selects}

Limiting

Limiting can be used to control how many records are returned by our API.

The structure to apply a limit is as follows:

  • {route} - The endpoint you want to retrieve data of.

  • ?limit - To identify the incoming URL parameter

  • {value} - The limit value.

GET /api/{route}?limit={value}

Sorting

Sorting can be used to define the order of the records returned by our API.

The structure to apply an ordering is as follows:

  • {route} - The endpoint you want to retrieve data of.

  • ?sort - To identify the incoming URL parameter

  • {fields} - Field keys for sorting separated by ,. To order descending, prefix field keys with -.

GET /api/{route}?sort={fields}

WithCount

The withCount can be used to get the count of related objects for relation fields instead of object information.

The structure to apply a withCount is as follows:

  • {route} - The endpoint you want to retrieve data of.

  • ?withCount - To identify the incoming URL parameter

  • {relations} - The relation identifiers to get a count for separated by |

GET /api/{route}?withCount={relations}

Appends

Appends can be used to include additional computed fields in API responses.

The structure to apply top-level appends is as follows:

  • {route} - The endpoint you want to retrieve data of.

  • ?appends - To identify the incoming URL parameter

  • {fields} - Append field keys separated by ,

GET /api/{route}?appends={fields}

Example:

GET /api/forms/1?appends=hash

You can also apply appends to included relations using include-options:

  • {relation}:[appends=field1+field2]

Example:

GET /api/forms/1?include=formFields:[appends=field_validation_string]

For top-level appends, fields are separated by ,.

For relation include-options ([appends=...]), fields are separated by +.

Last updated