Use the Custom Attributes API to apply customizable data or characteristics to each of your subscribers. This API will either create a new custom attribute if it doesn't already exist or update an existing one with the new value provided. You can then build segments based on that information to send targeted campaigns and journeys. This data cannot contain any sensitive or special categories of information as defined in applicable data protection and privacy laws, including the California Consumer Privacy Act (CCPA) and California Privacy Rights Act (CPRA). See a list of specific categories of data you cannot share with Attentive here.
Make a call to this endpoint for any attribute-based data. There are no limits to the amount of custom attributes that can be created. Note that you can create net-new properties with this API, however, it cannot be used to create new values for an existing UI-created property name. If a property name is created through the Attentive platform, all possible property values must also be defined in the platform. For example, if a property has possible values of "Adult, Teen, Children's", those are the only values that will be accepted through the API. This does not apply for properties with the type "Custom input", for example: Full Name. Also, please note that the API does not support arrays. For example, attempting to pass an array such as '["chicago", "new york"]' for an attribute like 'favorite_city' will result in a 400 error.
Note : The maximum length for an attribute name is 200 characters.
attributes:write
) Ok
Invalid parameter in request query or body
Unauthorized
Access Denied
The specified resource was not found
The user has sent too many requests in a given amount of time
Internal Server Error
{- "properties": {
- "age": "24",
- "birthday": "1986-11-16",
- "sign up": "2021-04-23T16:04:33Z",
- "favorite team": "Minnesota Vikings",
- "Gift card balance": "50.89",
- "VIP": "TRUE"
}, - "user": {
- "phone": "+13115552368",
- "email": "test@gmail.com",
- "externalIdentifiers": {
- "clientUserId": "string",
- "customIdentifiers": [
- {
- "name": "string",
- "value": "string"
}
]
}
}
}
Make a call to this endpoint to retrieve all custom attribute data associated with a user. You can query this endpoint by either phone or email.
Note: You must include a single query parameter, phone or email. Including both will result in a 400 error.
attributes:write
) Successfully accepted get custom attributes request
Invalid parameter in request query or body
Unauthorized
Access Denied
The specified resource was not found
The user has sent too many requests in a given amount of time
Internal Server Error
curl -i -X GET \ 'https://api.attentivemobile.com/v1/attributes/custom?phone=%2B13115552368&email=test%40gmail.com' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
[- {
- "name": "favoriteColor",
- "value": "blue"
}
]