End users
Delete an end user's data
DELETE
/end-users/{userId}Needsworkspace.settingsDeletes everything stored about one of your users in one transaction: events, view state, checklist progress, survey responses, profiles and their entries in delivery logs. Idempotent.
Authorization
secretKeyheader
AuthorizationBearer <sk_…>A secret API key from Settings → API keys. It acts with its creator's role.
Path Parameters
userId*stringYour app's user id, URL-encoded.
Query Parameters
anonymousId?array<string>Also include these browsers' anonymous ids (repeat the parameter, at most 20).
Response Body
Deleted
application/json- response
endUser*deleted*Rows deleted per kind of data.
total*integerShell
curl -X DELETE 'https://app.cueston.com/api/end-users/string'Example Response
JSON
{
"endUser": {
"reference": "string",
"anonymousIds": 0
},
"deleted": {
"property1": 0,
"property2": 0
},
"total": 3
}