Partner API
Get access to Swayware data through our Partner API. To get started, you will need to grab your API key from Swayware team. You will receive test and production keys.
GET/partners/<partner_id>
Retrieve persons by domain
This endpoint allows you to retrieve persons associated with the domain.
Request
GET
/partners/<partner_id>curl https://api.swayware.com/partners/<partner_id>?domain=<partner_customer_domain>&limit=<limit>&page=<page> \
-H "Authorization: Bearer {PARTNER_API_KEY}"
Sample Response
{
"data": {
"current_page": 2,
"persons": [
{
"email": "leonie.dickinson@hotmail.com",
"last_seen": "2024-08-18T04:11:01.601Z"
},
{
"email": "madilyn.block9@gmail.com",
"last_seen": "2024-08-18T03:13:30.432Z"
},
{
"email": "shayna_schaefer@gmail.com",
"last_seen": "2024-08-18T12:53:44.046Z"
},
{
"email": "gunnar.okeefe@yahoo.com",
"last_seen": "2024-08-18T15:08:52.243Z"
},
{
"email": "ronaldo_fahey11@gmail.com",
"last_seen": "2024-08-18T23:58:27.011Z"
}
],
"total": 1000,
"total_pages": 200
}
}