---
title: "Filter contacts"
method: POST
path: "/contacts/filter"
tags: ["Contacts"]
---

# Filter contacts

`POST /contacts/filter`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/contacts/filter`
- Auth: HTTP bearer

Filter contacts using a POST body for complex criteria.

## Request body

- ContactFilterDto: Filter criteria for POST /contacts/filter
  - `type_contact` string: Filter by contact type (Individual, Company)
  - `category` string: Filter by category
  - `search_term` string: Search across name, email, legal_name
  - `city` string: Filter by city
  - `country` string: Filter by country
  - `professional_status` string: Filter by professional status
  - `created_after` string, date-time
  - `created_before` string, date-time

## Response `200`

Filtered contacts

- Contact[]
  - `id` string, uuid
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `email` string, email, nullable
  - `phone` string, nullable
  - `address` object, nullable
    - `street` string, nullable
    - `city` string, nullable
    - `postal_code` string, nullable
    - `country` string, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/faireplace/apis/faireplace-property-management-api.md) · [All operations](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/revisions/69de39762919?raw)
