---
title: "Query"
method: POST
path: "/api/query"
---

# Query

`POST /api/query`

## Request body

- object
  - `objecttype` integer, required — Use the number of the object you'd like to search for records within.
  - `fields` string — A list of the fields you'd like to include in the response data. Use the system name of each field, and separate each field name using a comma.
  - `query` string — The query you'd like to search for within the specified object.
  - `sort_by` string — The system name of the field to sort the results by.
  - `sort_type` 'asc' | 'desc' — Select if you'd like the results to be sorted in ascending or descending order.
  - `page_size` integer — The maximum number of records displayed per page, cannot exceed 50.
  - `page_number` integer — The number of the page displayed, cannot exceed 10.

## Response `200`

200

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/fireberry/apis/fireberry-api.md) · [All operations](https://skmtc.dev/fireberry/apis/fireberry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fireberry/fireberry-api/revisions/ad6720f3920f/schema)
