Segmentation

post
Create New User

https://api.notifia.io/api/v1/public/segments/wh/users/{scriptId}/create
This endpoint allows you to Create New Users in Notifia Audience. All new users will automatically be added to any segments based on attributes you apply
Request
Response
Path Parameters
ScriptID
optional
string
Your Unique Script ID
Body Parameters
email
required
string
Email ID of your User //OPTIONAL
firstName
optional
string
First Name of your user //OPTIONAL
lastName
optional
string
Last Name of your user //OPTIONAL
optional
object
{key}:{value}, {key}:{value2}
200: OK
Cake successfully retrieved.
{
"status": 200,
"message": "",
"data": {
"_id": "5dbd90948ab2b95f4d38100f",
"data": {
"email": "[email protected]",
"name": "notifia”",
"id": "l3pnvoqmf4ttfiht***********”"
},
"attributes": {
"Attribute1": "AttributeData"
// If all attributes were not added succesfully, please ensure
// all attributes have been added in your Custom Attributes Dashboard
},
"user": "5c8bf30*******”",
"createdAt": "2019-11-02T14:20:04.710Z",
"updatedAt": "2019-11-02T14:20:04.710Z",
"__v": 0
}
}
404: Not Found
Could not find a cake matching this query.
{
"message": "User Email not found”"
}

put

https://api.notifia.io/api/v1/public/segments/wh/users/{userEmail}/update
Request
Response
Path Parameters
userEmail
optional
string
Email ID of the user you wish to update
Body Parameters
optional
string
optional
string
200: OK