Push API allows you to manage device registration and notifications. By sending HTTP request you can register, tag, change profile attribute of user/devices. You can also send notification and get the details of sent notification via REST API.
Maximum 1000 Unique External IDs in a Single REST API Request:
When making a request, you can include up to 1000 unique external IDs for processing. This limitation is in place to ensure the efficiency and proper handling of requests. If you need to include more than 1000 different external IDs, you would need to split them across multiple requests. This helps maintain the performance and reliability of the API.
Delete a User
This request serves to completely delete all information about users from Netmera.
In order to benefit from this service, it is necessary to submit an offer from the panel.
You can contact the success manager for the offer.
Disable Push
Following request can be used to opt-out the devices of a user or a single device from push notifications. If you opt-out a user using extId, all of the devices of that user will be opted-out from push notifications. You can opt-out a single device using deviceToken.
Following request can be used to opt-in the devices of a user or a single device from push notifications. If you opt-in a user using extId, all of the devices of that user will be opted-in from push notifications. You can opt-in a single device using deviceToken.
extIds(Required) : Array of external ids of users to tag. External ids comes from your system.
tag(Required) : Name of the tag.
Setting Category Preferences
You can set opt-in/opt-out preference for each category previously defined in Netmera panel. If any message with a category sent, opt-out users will be excluded.
extId(Required): External id of a user. External id comes from your system.
category(Required): Name of the category which is defined in Netmera panel.
enable(Required): Preference of category opt-in/out.
Adding Profile Attributes to Users
The following request is used to set profile attributes of given users.
extId(Required): External id of user to set profile attribute.
profile(Required): New profile attributes. Note that previously existing profile attributes with different keys will remain same whereas profile attributes with given keys will be overwritten.
Remove Profile Attributes From Users
The following request is used to unset profile attributes of given users.
extId(Required): External id of user to push values to profile attributes.
profile(Required): Profile attributes to push values. Note that given profile attribute must be an array.
Pulling Profile Attributes From User
The following request is used to pull profile attributes of given users.
extId(Required): External id of user to pull values from profile attributes.
profile(Required): Profile attributes to pull values. Note that given profile attribute must be an array.
Deleting Profile Attribute From All Users
The following request is used to delete all profile attributes with a specific value from all users.
extId(Required): External id of user to get devices.
pushPermitted(Optional): If this is set as true, only opt-in devices will be returned. If push permitted set as false, don't check register status fetch all devices. You can see whether register or not register with push permitted parameter in response.
curl -X GET \-H "X-netmera-api-key: your_rest_api_key" \'https://restapi.netmera.com/rest/3.0/getDeviceTokens?offset=10&max=10'
Here, you can see that offset value is sent as 10 which is number of devices in a page.
Get Segments
Two new APIs, getSegments and getSegmentUsers, have been added to Netmera APIs. Thanks to these APIs, all segments in a panel and users in these segments can be reached. You can see the details below.
Id(Required): Segment Id. You can try one of the id's in the response returned with getSegments API.
max(Optional) : Default value is 100. Maximum number of user info to fetch per page. Even if a value less than 100 is entered, it returns 100 users. You cannot enter a value greater than 1000.
offset(Optional) : Default value is 0. Offset to start fetch from.
Normally, for initially request, you don't need to send max or offset value. In response, you will a have link to fetch next page.