Skip to content
ProFieldX

Customers

List customers

GEThttps://api.profieldx.com/v1/customers

Lists the organization's customers, from newest to oldest, in pages of up to 100 items. For the next page, send the nextCursor of the response as cursor; hasMore tells whether there are more. includeTotal=true also returns the total number of customers for the filters. The customerType filter accepts person or company.

Parameters

FieldDescription
cursorOptionalSent in: Querystring

Value of nextCursor from the previous page; omit to start at the first page.

limitOptionalSent in: Queryinteger (1–100)

Number of items per page, from 1 to 100.

includeTotalOptionalSent in: Queryboolean

When true, the response includes totalCount with the total number of items for the filters.

filterOptionalSent in: Queryarray of string

Repeat this parameter to combine filters (AND). Format: filter=fieldInCamelCase__operator:value. Allowed fields and operators:

  • id (UUID): eq: equal to; in: contained in the comma-separated list of values; ne: different from.
  • name (str): contains: contains the text (case-sensitive; % and _ are treated as text); eq: equal to; icontains: contains the text, ignoring case; ilike: matches the LIKE pattern, ignoring case; in: contained in the comma-separated list of values; like: matches the LIKE pattern (case-sensitive; accepts % and _); ne: different from.
  • email (str): eq: equal to; icontains: contains the text, ignoring case; ilike: matches the LIKE pattern, ignoring case.
  • phone (str): contains: contains the text (case-sensitive; % and _ are treated as text); eq: equal to; icontains: contains the text, ignoring case.
  • customerType (CustomerType (person, company)): eq: equal to; in: contained in the comma-separated list of values; ne: different from.
  • createdAt (datetime): between: between two inclusive values separated by a comma; eq: equal to; gt: greater than; gte: greater than or equal to; lt: less than; lte: less than or equal to.

For in, separate the values with commas (at most 100). For between, give exactly two values separated by a comma. Dates and times must use ISO 8601. Unknown filters or values incompatible with the field type are rejected.

Example: id__eq:019535d7-2f5d-7000-8000-000000000001

Accept-LanguageOptionalSent in: Header"pt-BR" | "en-US"

Language of the error message: pt-BR (default) or en-US. Only the error message changes language; code, the rest of the envelope and the data do not change, and the message of each details item stays in Portuguese.

Allowed values: pt-BR, en-US

Example

Example values (names, addresses, descriptions) appear in Portuguese, the way customers in Brazil enter them.

More languages
curl -X GET 'https://api.profieldx.com/v1/customers' \
  -H "Authorization: Bearer $PROFIELDX_KEY"
  • The samples show the call and do not print the response.
  • The key is read from the PROFIELDX_KEY environment variable.

Responses

  • 200

    A page of customers.

    Headers
    X-RateLimit-Limit
    The key's per-minute limit for this kind of call (read or register). Optional header: it is not sent with 401, 403 with BILLING_FEATURE_REQUIRED, 413 and 503 responses, and it may be missing from 500 responses. The 429 produced by the per-IP limit or the authentication-failure limit carries this header and X-RateLimit-Remaining with the values of that limit, and does not carry X-RateLimit-Reset.
    X-RateLimit-Remaining
    How many calls still fit in the current one-minute window. Optional header, with the same exceptions as X-RateLimit-Limit: absent where it is absent, and present on the 429 of the per-IP limit or the authentication-failure limit, with the value of that limit.
    X-RateLimit-Reset
    Seconds until the one-minute window starts again. Optional header, absent from the same responses as X-RateLimit-Limit and also from the 429 of the per-IP limit or the authentication-failure limit: use Retry-After there.
    X-Request-Id
    Identifier of the request, equal to the requestId of errors; give it to support.
    Example
    {
      "items": [
        {
          "id": "0197c1a0-7b1f-7c3e-8d2a-5b6c7d8e9f01",
          "name": "Clínica São Lucas",
          "customerType": "company",
          "email": "[email protected]",
          "phone": "(11) 5550-0142",
          "mergedIntoCustomerId": null,
          "isDraft": false,
          "createdAt": "2026-11-03T14:20:00Z",
          "updatedAt": "2026-11-10T09:05:31Z"
        },
        {
          "id": "0197c1a1-02c4-7a55-9b3e-1f2a3b4c5d60",
          "name": "Maria Souza",
          "customerType": null,
          "email": null,
          "phone": null,
          "mergedIntoCustomerId": null,
          "isDraft": true,
          "createdAt": "2026-11-12T10:41:09Z",
          "updatedAt": "2026-11-12T10:41:09Z"
        }
      ],
      "nextCursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0xMS0xMFQwOTowNTozMSswMDowMCIsImlkIjoiMDE5N2MxYTAtN2IxZi03YzNlLThkMmEtNWI2YzdkOGU5ZjAxIn0",
      "hasMore": true,
      "totalCount": null
    }
    Response fields
    Response fields 200
    FieldDescription
    itemsRequiredarray of IntegrationCustomer

    Customers on this page.

    items[].idRequiredstring (uuid)

    UUIDv7 identifier of the customer.

    items[].nameRequiredstring

    Customer's name.

    items[].customerTypeRequiredNullable"person" | "company"

    person (individual) or company (legal entity); null while not provided.

    Allowed values: person, company

    items[].emailRequiredNullablestring

    Contact email, when provided.

    items[].phoneRequiredNullablestring

    Contact phone, when provided.

    items[].mergedIntoCustomerIdNullablestring (uuid)

    When this record was merged into another one, the identifier of the customer that remained.

    items[].isDraftRequiredboolean

    Only indicates that the type has not been provided yet; it does not validate operational eligibility.

    items[].createdAtRequiredstring (date-time)

    Date and time of registration, with time zone.

    items[].updatedAtRequiredstring (date-time)

    Date and time of the last change, with time zone.

    nextCursorRequiredNullablestring

    Cursor of the next page, to send in cursor; null on the last page.

    hasMoreRequiredboolean

    Indicates whether there are more items after this page.

    totalCountRequiredNullableinteger

    Exact total for the filters, returned only with includeTotal=true.

  • 400

    Invalid cursor (INVALID_CURSOR).

    Headers
    X-RateLimit-Limit
    The key's per-minute limit for this kind of call (read or register). Optional header: it is not sent with 401, 403 with BILLING_FEATURE_REQUIRED, 413 and 503 responses, and it may be missing from 500 responses. The 429 produced by the per-IP limit or the authentication-failure limit carries this header and X-RateLimit-Remaining with the values of that limit, and does not carry X-RateLimit-Reset.
    X-RateLimit-Remaining
    How many calls still fit in the current one-minute window. Optional header, with the same exceptions as X-RateLimit-Limit: absent where it is absent, and present on the 429 of the per-IP limit or the authentication-failure limit, with the value of that limit.
    X-RateLimit-Reset
    Seconds until the one-minute window starts again. Optional header, absent from the same responses as X-RateLimit-Limit and also from the 429 of the per-IP limit or the authentication-failure limit: use Retry-After there.
    X-Request-Id
    Identifier of the request, equal to the requestId of errors; give it to support.
    Response fields
    Response fields 400
    FieldDescription
    codeRequiredstring

    Stable error code; decide by it, never by the message.

    messageRequiredstring

    Human-readable message; the text and the language may change.

    detailsNullablearray of ValidationIssue

    Problems per field, when the error refers to specific inputs.

    details[].fieldRequiredstring

    Source and camelCase path of the input, for example body.scheduledEnd, body.items.0.quantity or query.limit.

    details[].messageRequiredstring

    Message in pt-BR, ready to show next to the field.

    details[].codeRequiredstring

    Stable code of the problem: REQUIRED, TOO_SHORT, TOO_LONG, TOO_FEW_ITEMS, TOO_MANY_ITEMS, TOO_SMALL, TOO_LARGE, INVALID_FORMAT, INVALID_TYPE, INVALID_CHOICE, UNKNOWN_FIELD, INVALID_JSON, TIMEZONE_REQUIRED, INVALID_VALUE or a rule-specific code (for example END_BEFORE_START, PAST_DUE_DATE).

    requestIdNullablestring

    Identifier of the request, equal to the X-Request-Id header; give it to support.

  • 401

    Missing, malformed or unknown key (UNAUTHENTICATED), revoked (API_KEY_REVOKED) or expired (API_KEY_EXPIRED).

    Headers
    X-RateLimit-Limit
    The key's per-minute limit for this kind of call (read or register). Optional header: it is not sent with 401, 403 with BILLING_FEATURE_REQUIRED, 413 and 503 responses, and it may be missing from 500 responses. The 429 produced by the per-IP limit or the authentication-failure limit carries this header and X-RateLimit-Remaining with the values of that limit, and does not carry X-RateLimit-Reset.
    X-RateLimit-Remaining
    How many calls still fit in the current one-minute window. Optional header, with the same exceptions as X-RateLimit-Limit: absent where it is absent, and present on the 429 of the per-IP limit or the authentication-failure limit, with the value of that limit.
    X-RateLimit-Reset
    Seconds until the one-minute window starts again. Optional header, absent from the same responses as X-RateLimit-Limit and also from the 429 of the per-IP limit or the authentication-failure limit: use Retry-After there.
    X-Request-Id
    Identifier of the request, equal to the requestId of errors; give it to support.
    Example
    {
      "code": "UNAUTHENTICATED",
      "message": "Authentication is required or invalid.",
      "requestId": "0197c1d2-8a2e-7f10-9c4b-3e5d6a7b8c90"
    }
    Response fields
    Response fields 401
    FieldDescription
    codeRequiredstring

    Stable error code; decide by it, never by the message.

    messageRequiredstring

    Human-readable message; the text and the language may change.

    detailsNullablearray of ValidationIssue

    Problems per field, when the error refers to specific inputs.

    details[].fieldRequiredstring

    Source and camelCase path of the input, for example body.scheduledEnd, body.items.0.quantity or query.limit.

    details[].messageRequiredstring

    Message in pt-BR, ready to show next to the field.

    details[].codeRequiredstring

    Stable code of the problem: REQUIRED, TOO_SHORT, TOO_LONG, TOO_FEW_ITEMS, TOO_MANY_ITEMS, TOO_SMALL, TOO_LARGE, INVALID_FORMAT, INVALID_TYPE, INVALID_CHOICE, UNKNOWN_FIELD, INVALID_JSON, TIMEZONE_REQUIRED, INVALID_VALUE or a rule-specific code (for example END_BEFORE_START, PAST_DUE_DATE).

    requestIdNullablestring

    Identifier of the request, equal to the X-Request-Id header; give it to support.

  • 403

    The key does not have the permission this operation needs (PERMISSION_DENIED), or the organization's plan does not include the integration API (BILLING_FEATURE_REQUIRED).

    Headers
    X-RateLimit-Limit
    The key's per-minute limit for this kind of call (read or register). Optional header: it is not sent with 401, 403 with BILLING_FEATURE_REQUIRED, 413 and 503 responses, and it may be missing from 500 responses. The 429 produced by the per-IP limit or the authentication-failure limit carries this header and X-RateLimit-Remaining with the values of that limit, and does not carry X-RateLimit-Reset.
    X-RateLimit-Remaining
    How many calls still fit in the current one-minute window. Optional header, with the same exceptions as X-RateLimit-Limit: absent where it is absent, and present on the 429 of the per-IP limit or the authentication-failure limit, with the value of that limit.
    X-RateLimit-Reset
    Seconds until the one-minute window starts again. Optional header, absent from the same responses as X-RateLimit-Limit and also from the 429 of the per-IP limit or the authentication-failure limit: use Retry-After there.
    X-Request-Id
    Identifier of the request, equal to the requestId of errors; give it to support.
    Response fields
    Response fields 403
    FieldDescription
    codeRequiredstring

    Stable error code; decide by it, never by the message.

    messageRequiredstring

    Human-readable message; the text and the language may change.

    detailsNullablearray of ValidationIssue

    Problems per field, when the error refers to specific inputs.

    details[].fieldRequiredstring

    Source and camelCase path of the input, for example body.scheduledEnd, body.items.0.quantity or query.limit.

    details[].messageRequiredstring

    Message in pt-BR, ready to show next to the field.

    details[].codeRequiredstring

    Stable code of the problem: REQUIRED, TOO_SHORT, TOO_LONG, TOO_FEW_ITEMS, TOO_MANY_ITEMS, TOO_SMALL, TOO_LARGE, INVALID_FORMAT, INVALID_TYPE, INVALID_CHOICE, UNKNOWN_FIELD, INVALID_JSON, TIMEZONE_REQUIRED, INVALID_VALUE or a rule-specific code (for example END_BEFORE_START, PAST_DUE_DATE).

    requestIdNullablestring

    Identifier of the request, equal to the X-Request-Id header; give it to support.

  • 422

    Validation failure (VALIDATION_ERROR, with details per field) or invalid collection parameters (INVALID_COLLECTION_QUERY).

    Headers
    X-RateLimit-Limit
    The key's per-minute limit for this kind of call (read or register). Optional header: it is not sent with 401, 403 with BILLING_FEATURE_REQUIRED, 413 and 503 responses, and it may be missing from 500 responses. The 429 produced by the per-IP limit or the authentication-failure limit carries this header and X-RateLimit-Remaining with the values of that limit, and does not carry X-RateLimit-Reset.
    X-RateLimit-Remaining
    How many calls still fit in the current one-minute window. Optional header, with the same exceptions as X-RateLimit-Limit: absent where it is absent, and present on the 429 of the per-IP limit or the authentication-failure limit, with the value of that limit.
    X-RateLimit-Reset
    Seconds until the one-minute window starts again. Optional header, absent from the same responses as X-RateLimit-Limit and also from the 429 of the per-IP limit or the authentication-failure limit: use Retry-After there.
    X-Request-Id
    Identifier of the request, equal to the requestId of errors; give it to support.
    Response fields
    Response fields 422
    FieldDescription
    codeRequiredstring

    Stable error code; decide by it, never by the message.

    messageRequiredstring

    Human-readable message; the text and the language may change.

    detailsNullablearray of ValidationIssue

    Problems per field, when the error refers to specific inputs.

    details[].fieldRequiredstring

    Source and camelCase path of the input, for example body.scheduledEnd, body.items.0.quantity or query.limit.

    details[].messageRequiredstring

    Message in pt-BR, ready to show next to the field.

    details[].codeRequiredstring

    Stable code of the problem: REQUIRED, TOO_SHORT, TOO_LONG, TOO_FEW_ITEMS, TOO_MANY_ITEMS, TOO_SMALL, TOO_LARGE, INVALID_FORMAT, INVALID_TYPE, INVALID_CHOICE, UNKNOWN_FIELD, INVALID_JSON, TIMEZONE_REQUIRED, INVALID_VALUE or a rule-specific code (for example END_BEFORE_START, PAST_DUE_DATE).

    requestIdNullablestring

    Identifier of the request, equal to the X-Request-Id header; give it to support.

  • 429

    Usage limit exceeded (RATE_LIMITED); wait the number of seconds in Retry-After. When the limit is the key's per-minute limit or the organization's daily limit, details carries an item with field equal to scope and code equal to minute or day; the per-IP limit and the authentication-failure limit do not carry details.

    Headers
    X-RateLimit-Limit
    The key's per-minute limit for this kind of call (read or register). Optional header: it is not sent with 401, 403 with BILLING_FEATURE_REQUIRED, 413 and 503 responses, and it may be missing from 500 responses. The 429 produced by the per-IP limit or the authentication-failure limit carries this header and X-RateLimit-Remaining with the values of that limit, and does not carry X-RateLimit-Reset.
    X-RateLimit-Remaining
    How many calls still fit in the current one-minute window. Optional header, with the same exceptions as X-RateLimit-Limit: absent where it is absent, and present on the 429 of the per-IP limit or the authentication-failure limit, with the value of that limit.
    X-RateLimit-Reset
    Seconds until the one-minute window starts again. Optional header, absent from the same responses as X-RateLimit-Limit and also from the 429 of the per-IP limit or the authentication-failure limit: use Retry-After there.
    X-Request-Id
    Identifier of the request, equal to the requestId of errors; give it to support.
    Retry-After
    Seconds to wait before repeating the call.
    Example
    {
      "code": "RATE_LIMITED",
      "message": "The request limit was exceeded. Try again later.",
      "details": [
        {
          "field": "scope",
          "message": "O limite por minuto desta chave foi excedido.",
          "code": "minute"
        }
      ],
      "requestId": "0197c1d2-8a2e-7f10-9c4b-3e5d6a7b8c90"
    }
    Response fields
    Response fields 429
    FieldDescription
    codeRequiredstring

    Stable error code; decide by it, never by the message.

    messageRequiredstring

    Human-readable message; the text and the language may change.

    detailsNullablearray of ValidationIssue

    Problems per field, when the error refers to specific inputs.

    details[].fieldRequiredstring

    Source and camelCase path of the input, for example body.scheduledEnd, body.items.0.quantity or query.limit.

    details[].messageRequiredstring

    Message in pt-BR, ready to show next to the field.

    details[].codeRequiredstring

    Stable code of the problem: REQUIRED, TOO_SHORT, TOO_LONG, TOO_FEW_ITEMS, TOO_MANY_ITEMS, TOO_SMALL, TOO_LARGE, INVALID_FORMAT, INVALID_TYPE, INVALID_CHOICE, UNKNOWN_FIELD, INVALID_JSON, TIMEZONE_REQUIRED, INVALID_VALUE or a rule-specific code (for example END_BEFORE_START, PAST_DUE_DATE).

    requestIdNullablestring

    Identifier of the request, equal to the X-Request-Id header; give it to support.

  • 500

    Unexpected internal error (INTERNAL_ERROR); give the requestId to support.

    Headers
    X-RateLimit-Limit
    The key's per-minute limit for this kind of call (read or register). Optional header: it is not sent with 401, 403 with BILLING_FEATURE_REQUIRED, 413 and 503 responses, and it may be missing from 500 responses. The 429 produced by the per-IP limit or the authentication-failure limit carries this header and X-RateLimit-Remaining with the values of that limit, and does not carry X-RateLimit-Reset.
    X-RateLimit-Remaining
    How many calls still fit in the current one-minute window. Optional header, with the same exceptions as X-RateLimit-Limit: absent where it is absent, and present on the 429 of the per-IP limit or the authentication-failure limit, with the value of that limit.
    X-RateLimit-Reset
    Seconds until the one-minute window starts again. Optional header, absent from the same responses as X-RateLimit-Limit and also from the 429 of the per-IP limit or the authentication-failure limit: use Retry-After there.
    X-Request-Id
    Identifier of the request, equal to the requestId of errors; give it to support.
    Response fields
    Response fields 500
    FieldDescription
    codeRequiredstring

    Stable error code; decide by it, never by the message.

    messageRequiredstring

    Human-readable message; the text and the language may change.

    detailsNullablearray of ValidationIssue

    Problems per field, when the error refers to specific inputs.

    details[].fieldRequiredstring

    Source and camelCase path of the input, for example body.scheduledEnd, body.items.0.quantity or query.limit.

    details[].messageRequiredstring

    Message in pt-BR, ready to show next to the field.

    details[].codeRequiredstring

    Stable code of the problem: REQUIRED, TOO_SHORT, TOO_LONG, TOO_FEW_ITEMS, TOO_MANY_ITEMS, TOO_SMALL, TOO_LARGE, INVALID_FORMAT, INVALID_TYPE, INVALID_CHOICE, UNKNOWN_FIELD, INVALID_JSON, TIMEZONE_REQUIRED, INVALID_VALUE or a rule-specific code (for example END_BEFORE_START, PAST_DUE_DATE).

    requestIdNullablestring

    Identifier of the request, equal to the X-Request-Id header; give it to support.

  • 503

    Service temporarily unavailable, including RATE_LIMIT_STORE_UNAVAILABLE.

    Headers
    X-RateLimit-Limit
    The key's per-minute limit for this kind of call (read or register). Optional header: it is not sent with 401, 403 with BILLING_FEATURE_REQUIRED, 413 and 503 responses, and it may be missing from 500 responses. The 429 produced by the per-IP limit or the authentication-failure limit carries this header and X-RateLimit-Remaining with the values of that limit, and does not carry X-RateLimit-Reset.
    X-RateLimit-Remaining
    How many calls still fit in the current one-minute window. Optional header, with the same exceptions as X-RateLimit-Limit: absent where it is absent, and present on the 429 of the per-IP limit or the authentication-failure limit, with the value of that limit.
    X-RateLimit-Reset
    Seconds until the one-minute window starts again. Optional header, absent from the same responses as X-RateLimit-Limit and also from the 429 of the per-IP limit or the authentication-failure limit: use Retry-After there.
    X-Request-Id
    Identifier of the request, equal to the requestId of errors; give it to support.
    Response fields
    Response fields 503
    FieldDescription
    codeRequiredstring

    Stable error code; decide by it, never by the message.

    messageRequiredstring

    Human-readable message; the text and the language may change.

    detailsNullablearray of ValidationIssue

    Problems per field, when the error refers to specific inputs.

    details[].fieldRequiredstring

    Source and camelCase path of the input, for example body.scheduledEnd, body.items.0.quantity or query.limit.

    details[].messageRequiredstring

    Message in pt-BR, ready to show next to the field.

    details[].codeRequiredstring

    Stable code of the problem: REQUIRED, TOO_SHORT, TOO_LONG, TOO_FEW_ITEMS, TOO_MANY_ITEMS, TOO_SMALL, TOO_LARGE, INVALID_FORMAT, INVALID_TYPE, INVALID_CHOICE, UNKNOWN_FIELD, INVALID_JSON, TIMEZONE_REQUIRED, INVALID_VALUE or a rule-specific code (for example END_BEFORE_START, PAST_DUE_DATE).

    requestIdNullablestring

    Identifier of the request, equal to the X-Request-Id header; give it to support.