Contacts

Contacts management endpoints

Create or update a contact (upsert)

post
/v1/populations/{populationId}/contacts:upsert

Creates a new contact or updates an existing one. Create rule: request must include at least one unique identifier: clientContactId OR phone OR email. Update rule: request should include pristoContactId to update an existing record. Dynamic fields are key/value string pairs (0-255 chars).

Authorizations
X-API-KeystringRequired

API key provided by Pristo (send as header X-API-Key).

Path parameters
populationIdstring · min: 1 · max: 100Required

Population identifier (tenant segmentation / audience container).

Example: pop_123
Body
firstNamestring · max: 100 · nullableOptional
lastNamestring · max: 100 · nullableOptional
phonestring · nullableOptional

Optional. Can be provided here (in addition to identifiers).

emailstring · email · nullableOptional

Optional. Can be provided here (in addition to identifiers).

languagestring · nullableOptional

ISO 639-1 language code (recommended)

Responses
chevron-right
200

Contact updated

application/json
post
/v1/populations/{populationId}/contacts:upsert

Set contact active / inactive

post
/v1/populations/{populationId}/contacts:activation

Sets whether a contact is active. Request must include at least one identifier: pristoContactId OR clientContactId.

Authorizations
X-API-KeystringRequired

API key provided by Pristo (send as header X-API-Key).

Path parameters
populationIdstring · min: 1 · max: 100Required

Population identifier (tenant segmentation / audience container).

Example: pop_123
Body
isActivebooleanRequired
Responses
chevron-right
200

Activation updated

application/json
post
/v1/populations/{populationId}/contacts:activation

Mark contact as unsubscribed

post
/v1/populations/{populationId}/contacts:unsubscribe

Marks a contact as unsubscribed (opt-out). Request must include at least one identifier: pristoContactId OR clientContactId.

Authorizations
X-API-KeystringRequired

API key provided by Pristo (send as header X-API-Key).

Path parameters
populationIdstring · min: 1 · max: 100Required

Population identifier (tenant segmentation / audience container).

Example: pop_123
Body
Responses
chevron-right
200

Unsubscribe updated

application/json
post
/v1/populations/{populationId}/contacts:unsubscribe

Last updated