Ir al contenido principal
Contacts

Get contact email preferences by ID

Retrieves the email preference state for a customer contact by their Featurebase ID.

GET
/v2/contacts/{id}/email-preferences

Important: This endpoint only supports customer contacts. Leads do not have a customer email preference surface in the public API.

Path Parameters

  • id - The Featurebase contact ID (24-character ObjectId)

Response Format

Returns a contact email preferences object with:

  • object - Always "contact_email_preferences"
  • contactId - Featurebase contact ID
  • userId - External user ID, if available
  • email - Contact email address, if available
  • preferences - Current email preference state

Preference Semantics

Each preference includes:

  • status - The stored preference state for that category
  • effectiveStatus - The final state after applying the global all preference override

Example Response

{
  "object": "contact_email_preferences",
  "contactId": "676f0f6765bdaa7d7d760f88",
  "userId": "usr_12345",
  "email": "john@example.com",
  "preferences": {
    "all": {
      "status": "unsubscribed",
      "effectiveStatus": "unsubscribed"
    },
    "postUpdates": {
      "status": "subscribed",
      "effectiveStatus": "unsubscribed"
    },
    "postComments": {
      "status": "subscribed",
      "effectiveStatus": "unsubscribed"
    },
    "commentReplies": {
      "status": "subscribed",
      "effectiveStatus": "unsubscribed"
    },
    "changelog": {
      "status": "subscribed",
      "effectiveStatus": "unsubscribed"
    }
  }
}
Authorizationstringheaderobligatorio

API key as Bearer token. Use: Authorization: Bearer sk_...

idstringobligatorio

Featurebase contact ID

Ejemplo: 507f1f77bcf86cd799439011
Featurebase-Versionenum<string>header

API version for this request. Defaults to your organization's configured API version if not specified.

Opciones disponibles: 2026-08-19.orbit, 2026-01-01.nova, 2025-12-12.clover
Ejemplo: 2026-08-19.orbit

Respuesta

application/json

Success

contactIdstringobligatorio

Featurebase contact ID

Ejemplo: 676f0f6765bdaa7d7d760f88
emailstring | null

Contact email address, if available

Ejemplo: john@example.com
objectenum<string>obligatorio

Object type identifier

Opciones disponibles: contact_email_preferences
Ejemplo: contact_email_preferences
preferencesobjectobligatorio

Email preference state for this contact, including both stored status and final effective status.

userIdstring | null

External user ID from your system, if available

Ejemplo: usr_12345