Mailrelay API Reference

Get a subscriber by id

GET https://{account}/api/v1/subscribers/{id}

Authentication

Requires an API key sent in the X-AUTH-TOKEN header.

Get a subscriber by id

Parameters

NameTypeRequiredDescription
id integer Yes ID of the record
include_groups boolean No Include subscriber's groups in the response.
include_tags boolean No Include subscriber's tags in the response.

Responses

StatusDescription
200 Success
404 Couldn't find record with provided ID.
401 The API key wasn't sent, is invalid or has expired
403 The API key or its user doesn't have permission to use this endpoint, or the request comes from an IP address the key doesn't allow.
429 Too many requests. You have exceeded the rate limit, wait and try again later.
500 An internal error happened. Try again later.

Response fields

NameTypeDescription
id integer ID
name string Name
email string Email
status string Status
sms_phone string SMS phone
sms_status string SMS status
whatsapp_phone string WhatsApp phone
whatsapp_status string WhatsApp status
subscribed_at string Subscribed at
subscribed_with_acceptance boolean Subscribed with acceptance
subscribe_ip string Subscribe ip
unsubscribed boolean Unsubscribed
unsubscribed_at string Unsubscribed at
unsubscribe_ip string Unsubscribe ip
unsubscribe_sent_email_id integer Unsubscribe sent email
score integer Score
address string Address
city string City
state string State
country string Country of the subscriber. The value should be in ISO 3166-1 alpha-2 format
birthday string Birthday
website string Website
time_zone string Time zone
locale string Locale
bounced boolean Bounced
bounce_category string Bounce category
reported_spam boolean Reported spam
local_ban boolean Local ban
global_ban boolean Global ban
created_at string Created at
updated_at string Updated at
groups array Groups
tags array Tags
custom_fields object Custom fields