API guides
Swrve Privacy API​
The Swrve Privacy API is a series of REST calls for managing your Data Subject access and data erasure requests. Swrve’s service ingests first-party data on behalf of our customers, giving you the opportunity to use sophisticated targeting techniques to contact your end users. To ensure compliance with data protection and privacy laws such as the General Data Protection Regulation (GDPR), California Consumer Privacy Act (CCPA), and other equivalent legislation, Swrve provides an API to initiate data and privacy-related requests and track their progress. Read More
Swrve Inbox API​
The Inbox API returns a copy of push notifications sent to the user, so the message can be displayed and interacted with inside the application. This guide describes how the Inbox API is presented for iOS, Android, React Native, and Web. Read More
Swrve Events API​
The Swrve Events API is a series of REST calls for sending event data to Swrve from your app. Swrve authenticates all API calls to api.swrve.com using either your app API key or Identity key. Read More
Swrve Events API payloads​
You can add and send a custom event payload (swrve_payload) with every REST and SDK call to <app_id>.api.swrve.com (<app_id>.eu-api.swrve.com). This parameter is optional. This feature enables graphing of low-cardinality data. For example, creating a histogram that shows the artist a user is currently listening to when a particular event is fired. The payload histogram feature is available by request on a per-app basis. Read More
Swrve A/B Test API​
The Swrve A/B Test API enables you to fetch resources held in the Swrve service according to the different variations that are available to each user in the app. The resources are returned in JSON format. This article references Swrve’s URLs for all data and content stored in both our US and EU data centers. Read More
Swrve Referrer API​
This article explains how to send and access referrer information through the Swrve user acquisition campaign tracker. In order to make use of the functionality mentioned in this article, you must have access to the app’s API key and your personal key. Read More
Swrve Push API​
Send push notifications to a single Swrve user via a web API call with the Swrve Push API. While Swrve’s scheduled push notification service allows you to target a behavioral group of users at a predefined schedule from within Swrve, the Swrve Push API lets you send push notifications to individual users in response to events external to Swrve. Read More
Swrve Message Center API​
The Swrve Message Center is an API for campaigns that have been downloaded from Swrve and are intended to be accessible in a way where the app user is in control of the message lifecycle. This guide describes how the Message Center API is presented for iOS, Android, Unity, and Web. Read More
Session token​
Swrve allows for a session token that is a hash of your API key in the calls you make. All API calls to <app_id>.api.swrve.com are authenticated using a session token of the form app_id=user_id=timestamp=md5hash. Note that API calls to abtest.swrve.com/api/1 do not use a session token, but instead simply use the API key. Read More
Swrve Geoplace API​
The Swrve Geoplace API is a series of REST calls for creating geoplaces in Swrve to use as triggers for your geo-triggered notification campaigns. Read More