Query email contacts

POST
/email/contacts/query

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Request Body

application/json
  1. body

Structured contact queries keep filter values in the JSON body, rather than turning every combination into a new URL shape. Every sortable column is selected from a fixed allow-list; user input is always a bound value.

limit?|
Formatint64
marketing_status?string|null
offset?|
Formatint64
order?string|null
order_by?string|null
search?string|null
status?string|null

Response Body

A filtered, bounded page of contacts.

application/json
  1. response
api_version*string
data*array<>
page*
Example Request
curl -X POST 'https://api.relevate.app/email/contacts/query' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "api_version": "string",
  "data": [
    {
      "attributes": null,
      "blocked_at": "2019-08-24T14:15:22Z",
      "blocked_reason": "string",
      "consent_source": "string",
      "consented_at": "2019-08-24T14:15:22Z",
      "created_at": "2019-08-24T14:15:22Z",
      "email": "string",
      "first_name": "string",
      "id": "string",
      "last_name": "string",
      "locale": "string",
      "marketing_status": "string",
      "normalized_email": "string",
      "origin": "string",
      "status": "string",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "page": {
    "limit": 1,
    "next_offset": 0,
    "offset": 0
  }
}