Insert/Update user API

This API adds or updates users. You can then use this data for survey targeting.

POST https://app.satismeter.com/api/users

Request Headers: 

Authorization: Bearer API_KEY
Content-Type: application/json
  • Replace the API_KEY above with your real API key (see Integration Settings / API)

Request Body:

{
  "userId": "007",
  "traits": {
    "name": "James Bond",
    "email": "007@sis.gov.uk",
    "createdAt": "2015-06-16T09:19:47.155Z",
    "plan": "Gold"
  },
"project": "PROJECT_ID"
}
  • Replace the PROJECT_ID above with your project ID (see Integration Settings / API)

Optional: Change next survey date for a user

You can change the date when the survey is shown to make sure someone is surveyed earlier/later than based on the targeting rules.

Request Body:

{
  "userId": "007",
"project": "PROJECT_ID",
  "surveyDate": "2100-01-01T00:00:00.000Z"
}
Was this article helpful?
2 out of 4 found this helpful

Articles in this section

Our Support hours:
Monday to Friday from 9:00 am - 2:00 am CET. Monday to Friday from 0:00 am - 5:00 pm PST.