curl -X GET "https://api.mailgreet.com/api/v1/external/subscribers?page=1&per_page=20&status=active" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "success": true, "data": { "subscribers": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "email": "john@example.com", "first_name": "John", "last_name": "Doe", "status": "active", "created_at": "2026-01-13T12:00:00Z" }, { "id": "660e8400-e29b-41d4-a716-446655440001", "email": "jane@example.com", "first_name": "Jane", "last_name": "Smith", "status": "active", "created_at": "2026-01-13T12:00:00Z" } ], "pagination": { "current_page": 1, "total_pages": 5, "total_count": 100, "per_page": 20 } } }
Retrieve a paginated list of all your subscribers
Bearer YOUR_API_KEY
active
unsubscribed
bounced
complained
Show data properties
Show Subscriber object
Show Pagination object
curl -X GET "https://api.mailgreet.com/api/v1/external/subscribers?search=john" \ -H "Authorization: Bearer YOUR_API_KEY"
curl -X GET "https://api.mailgreet.com/api/v1/external/subscribers?group_id=550e8400-e29b-41d4-a716-446655440000" \ -H "Authorization: Bearer YOUR_API_KEY"
async function getAllSubscribers() { let allSubscribers = []; let page = 1; let hasMore = true; while (hasMore) { const response = await fetch( `https://api.mailgreet.com/api/v1/external/subscribers?page=${page}&per_page=100`, { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } } ); const data = await response.json(); allSubscribers = allSubscribers.concat(data.data.subscribers); hasMore = page < data.data.pagination.total_pages; page++; } return allSubscribers; }