Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DataTalksClub/datamailer/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/contacts/status lets your application check exactly what Datamailer knows about a contact before sending email, showing a confirmation screen, or updating UI state. The response includes every field that determines whether a marketing or transactional send will succeed.
Endpoint
Authentication
Requires a Bearer token for the client whose slug is passed as theclient query parameter.
Query parameters
The email address to look up. Normalized to lowercase before matching.
Slug of the audience to scope the subscription lookup to. Must belong to the authenticated client’s organization.
Slug of the authenticated client. Must exactly match the bearer token’s client.
Response
Returns HTTP200 in all cases, including when the contact does not exist or is not visible to the authenticated client scope. Check exists before relying on other fields.
Internal Datamailer ID for the contact, or
null when exists is false.Normalized (lowercased) email address. Returns the requested email when
exists is false.true only when a contact record exists and the authenticated client has a subscription record for that contact in this audience. Returns false and zeroed state otherwise, hiding whether a contact exists at all outside this client’s scope.Whether the contact has a
verified_at timestamp at the contact level.ISO-8601 UTC timestamp of contact-level verification, or
null.Current email validation state. All fields return zero values when
exists is false.Whether the contact has opted out of all marketing email globally.
Whether the contact’s address has hard bounced.
Whether the contact has filed a spam complaint.
Audience-scoped subscription state.
Client-scoped subscription state. Same shape as
audience.Whether a marketing campaign email can currently be sent to this contact for this audience and client.
false if the contact is suppressed, has a non-deliverable email validation status, is not subscribed, or has not passed verification on any subscription level.Whether a transactional email can currently be sent to this contact.
false only if the contact has hard bounced or complained.Example
Request
Response — contact found
Response — contact not visible to this client
Privacy scoping: if a contact exists in Datamailer but has no subscription record for the requested
client within this audience, the response returns exists: false with all zeroed state. This prevents one client from discovering whether an email address belongs to another client’s subscriber list.