Consents (evidence), memberships and personalization data written by an AI or a key (with its source) for the contact
GET
/v1/contacts/{contact}/history
const url = 'https://api.replifier.com/v1/contacts/con_01hx0000000000000000000000/history';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.replifier.com/v1/contacts/con_01hx0000000000000000000000/history \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”contact
required
string
Example
con_01hx0000000000000000000000Responses
Section titled “Responses”History
Media typeapplication/json
object
consents
required
Array<object>
object
id
required
string
listId
required
string
type
required
string
source
required
string
ip
required
string
ipDeclared
required
boolean
userAgent
required
string
uaDeclared
required
boolean
text
required
string
textVersion
required
string
actorType
required
string
actorId
required
string
occurredAt
required
string
recordedAt
required
string
copiedFromConsentId
required
List cleanup (M3.7) copied this consent from a merged duplicate: this is the id of the original.
string
memberships
required
Array<object>
object
contactId
required
string
listId
required
string
status
required
string
subscribedAt
required
string
unsubscribedAt
required
string
source
required
string
personalization
required
Array<object>
object
campaignId
required
string
name
required
string
value
required
string
updatedAt
required
string
origin
required
object
type
required
string
id
required
string
label
required
string
batchId
required
string
Example
{ "consents": [ { "actorType": "user" } ], "memberships": [ { "status": "pending" } ], "personalization": [ { "origin": { "type": "ai" } } ]}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}