Add an alias to a person
curl --request POST \
--url https://api.getlurk.com/v1/users/{id}/aliases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"alias": "<string>"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({alias: '<string>'})
};
fetch('https://api.getlurk.com/v1/users/{id}/aliases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/users/{id}/aliases"
payload = { "alias": "<string>" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"external_id": "<string>"
},
"alias": "<string>",
"person": {
"id": "<string>",
"external_id": "<string>"
},
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}People
Add an alias to a person
Says another identifier, e.g. a pre-sign-in visitor ID, was this person too, so their history shows its events and receipts. It need not have sent events. Repeating an alias answers as it is. No chains, max 20, the shared anonymous ID refused. Aliases
POST
/
v1
/
users
/
{id}
/
aliases
Add an alias to a person
curl --request POST \
--url https://api.getlurk.com/v1/users/{id}/aliases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"alias": "<string>"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({alias: '<string>'})
};
fetch('https://api.getlurk.com/v1/users/{id}/aliases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/users/{id}/aliases"
payload = { "alias": "<string>" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"external_id": "<string>"
},
"alias": "<string>",
"person": {
"id": "<string>",
"external_id": "<string>"
},
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Authorizations
Headers
Path Parameters
Body
application/json
Response
Add an alias to a person