---
updatedAt: 2026-02-03T17:22:16.000Z
agentTools:
  projectIndex: https://dev.frontapp.com/llms.txt
---

# Response Body Structure

```json Example Object Response
{
  "_links": {
    "self": "https://api2.frontapp.com/..."
    "related": {...}
  },
  "id": "",
}
```

```json Example Pagination Response
{
  "_pagination": {
    "next": "https://api2.frontapp.com/..."
  },
  "_links": {
    "self": "https://api2.frontapp.com/..."
  },
  "_results": [...]
}
```

```json Example Error Response
{
    "_error": {
        "status": 404,
        "title": "Not found"
    }
}
```

A JSON object will be at the root of every responses body. When requesting a collection of resources , the collection will be encapsulated in a `_results` field.

A response will contain **at least one** of the following top-level members:

* `_pagination`: An object containing pagination information.
* `_links`: An object containing the resource links for self-discoverability.
* `_error`: An array of error objects

## Links

To improve the self-discoverability of our API, **every** resources contains a `_links` object:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Name
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        `self`
      </td>

      <td style={{ textAlign: "left" }}>
        string
      </td>

      <td style={{ textAlign: "left" }}>
        URL of the resource
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `related`
      </td>

      <td style={{ textAlign: "left" }}>
        object (optional)
      </td>

      <td style={{ textAlign: "left" }}>
        Object listing the URL of related resources
      </td>
    </tr>
  </tbody>
</Table>

## Collection of Resources

**Pagination**\
When listing a large number of resources, the API server will return a limited number of results. When this is the case, the JSON response will contain a field named `_pagination`.

The pagination object will contain a URL pointer to the next page.

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Name
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        `next`
      </td>

      <td style={{ textAlign: "left" }}>
        string (optional)
      </td>

      <td style={{ textAlign: "left" }}>
        URL of the next page
      </td>
    </tr>
  </tbody>
</Table>

## Errors

When the response is an error, its body will contain an `_error` object to describe the error.

An error object looks like:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Name
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        `status`
      </td>

      <td style={{ textAlign: "left" }}>
        number
      </td>

      <td style={{ textAlign: "left" }}>
        HTTP status code applicable to the error
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `title`
      </td>

      <td style={{ textAlign: "left" }}>
        string
      </td>

      <td style={{ textAlign: "left" }}>
        Human-readable summary of the problem
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `message`
      </td>

      <td style={{ textAlign: "left" }}>
        string
      </td>

      <td style={{ textAlign: "left" }}>
        Human-readable explanation of the error
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `details`
      </td>

      <td style={{ textAlign: "left" }}>
        array
      </td>

      <td style={{ textAlign: "left" }}>
        List of strings detailing the error
      </td>
    </tr>
  </tbody>
</Table>