---
title: "Query contacts"
method: POST
path: "/contacts/query"
tags: ["Contacts"]
---

# Query contacts

`POST /contacts/query`

## Request

- Base URL: `https://www.sagaris.ai/api/v1`
- URL: `https://www.sagaris.ai/api/v1/contacts/query`
- Auth: HTTP bearer

Filter live contacts in the key workspace. Filters are ANDed; email is case-insensitive literal equality, company/source exact equality and updated_since inclusive. Equal timestamps are ordered by id. Shares the 60 requests/minute key budget with writes. Offset pages are not a snapshot: use overlapping changed-since windows and deduplicate ids while records change.

## Request body

- object
  - `filter` object
    - `email` string, email
    - `company` string
    - `source` string
    - `updated_since` string, date-time
  - `sort` 'created_at' | 'updated_at'
  - `direction` 'asc' | 'desc'
  - `limit` integer
  - `offset` integer

## Response `200`

Matching contacts and pagination.

- object
  - `data` Contact[], required
    - `id` string
    - `email` string, nullable
    - `first_name` string, nullable
    - `last_name` string, nullable
    - `company` string, nullable
    - `job_title` string, nullable
    - `phone` string, nullable
    - `linkedin_url` string, nullable
    - `website` string, nullable
    - `lifecycle` string, nullable
    - `source` string, nullable
    - `tags` string[], nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `meta` ListMeta, required
    - `total` integer, nullable, required
    - `limit` integer, required
    - `offset` integer, required
    - `hasMore` boolean, required
  - `error` unknown, required

## Other responses

- `400`: Invalid JSON body or field validation failure.
- `401`: Missing, malformed, invalid, revoked, or expired API key.
- `403`: The key does not hold the required scope for this operation.
- `429`: Per-key write rate limit exceeded (60 requests / 60s).
- `500`: Query failure.
- `503`: The database / API-keys table is not provisioned.

---

[API](https://skmtc.dev/sagaris/apis/sagaris-public-api.md) · [All operations](https://skmtc.dev/sagaris/apis/sagaris-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sagaris/apis/sagaris-public-api/revisions/ac70219a7080?raw)
