---
title: "POST /api/v1/searches"
method: POST
path: "/api/v1/searches"
tags: ["searches"]
---

# POST /api/v1/searches

`POST /api/v1/searches`

Search the Datastore.

## Request body

- PostApiV1Searches — Search the Datastore.
  - `search` object — Search JSON.
    - `application_id_in` string[]
    - `application_id_not_in` string[]
    - `search_text` string
    - `applicant_date_of_birth` string, date
    - `status` string[]
    - `review_status` string[]
    - `work_stream` string[]
    - `case_type` string[]
    - `application_type` string[]
    - `submitted_after` string, date-time
    - `submitted_before` string, date-time
    - `reviewed_after` string, date-time
    - `reviewed_before` string, date-time
    - `office_code` string
  - `sorting` object — Sorting JSON.
    - `sort_by` 'applicant_name' | 'application_type' | 'case_type' | 'office_code' | 'reference' | 'return_reason' | 'returned_at' | 'reviewed_at' | 'submitted_at' — Column to sort by the records.
    - `sort_direction` 'desc' | 'asc' | 'descending' | 'ascending' — Sorting direction for the records.
  - `pagination` object — Pagination JSON.
    - `page` integer — Page to fetch.
    - `per_page` integer — Number of results to return per page.

## Response `201`

Search the Datastore.

---

[API](https://skmtc.net/ministryofjustice/apis/criminal-applications-datastore-v1.md) · [All operations](https://skmtc.net/ministryofjustice/apis/criminal-applications-datastore-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ministryofjustice/criminal-applications-datastore-v1/revisions/cf5b717bcd7c/schema)
