Get a contact
GET
/api/v1/subscribers/{id}
Parameters
id
integer
required
path
The contact's id. The same address has a different id in each list.
Responses
200
The contact.
401
The token is missing or wrong (
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
404
No contact has this id.
Get a contact
1
2
3
curl 'https://your-domain/api/v1/subscribers/1' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
1
2
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->subscriber()->find(1);
Response
{
"subscriber": {
"id": 1,
"email": "anna@example.com",
"status": "subscribed",
"source": "signup",
"ip_address": "203.0.113.24",
"tags": [],
"FIRST_NAME": "Anna",
"LAST_NAME": "Berg"
}
}