Skip to the documentation
API

Senders

Every operation in this group: what it accepts, what it returns and the errors it can answer with.

Operations

What is known about the organisation behind a sender: the line the reading pane shows under an unfamiliar sender, kept per domain and shared by every workspace, and the picture Nextmail shows for the sender.

GET/senders/{email}

Read what is known about a sender

Scopesthreads:readReads

A sentence or two about the organisation behind the domain of the address, once it has been looked up, with the picture the app shows for the address. Every address under a domain shares its answer, a subdomain such as mail.stripe.com included, and an answer older than 30 days is looked up again by itself. A domain nobody has looked up yet is a 404, and so are personal mailbox providers such as Gmail and the domains of this workspace: POST /senders/{email}/research looks a domain up, and GET /senders/{email}/avatar serves the picture of any sender.

Requires the threads:read scope.

Path parameters

emailstringRequired

An address of the sender, such as [email protected]. Only its domain is read.

Returns

What is known about the sender.

Errors

The errors every operation can return400401403404422429500Error catalog

Also available in

TypeScript
senders.get()
Python
senders.get()
Ruby
senders.get
PHP
senders->get
Go
Senders.Get
Java
senders().get
C#
Senders.GetAsync
CLI
nextmail senders get
MCP
getSenderProfile

GET/senders/{email}/avatar

Read the picture of a sender

Scopesthreads:readReads

The picture Nextmail found for the address on Gravatar, in the BIMI logo of its domain or on the website of its domain, as the image itself, the one the app draws when nobody in the workspace and no contact has a photo for the sender. It is looked up the first time it is asked for and kept, so a picture not found yet can come a moment later. Nothing is looked up for an account that turned off looking up contact photos in its settings, and an account looks up at most 600 pictures an hour. Send the ETag back in If-None-Match for a 304 while it is unchanged. An address with no picture is a 404.

Requires the threads:read scope.

Path parameters

emailstringRequired

The address of the sender, such as [email protected].

Headers

If-None-Matchstring

The ETag of a picture you already hold.

Returns

200binaryimage/*

The picture, with its type in Content-Type and an ETag.

304

The picture you hold is still the one.

Errors

404

resource_not_found: no picture is known for the address, or looking pictures up is turned off for the account.

The errors every operation can return400401403422429500Error catalog

Also available in

TypeScript
senders.getAvatar()
Python
senders.get_avatar()
Ruby
senders.get_avatar
PHP
senders->getAvatar
Go
Senders.GetAvatar
Java
senders().getAvatar
C#
Senders.GetAvatarAsync
CLI
nextmail senders get-avatar
MCP
getSenderProfile

POST/senders/{email}/research

Look a sender up

Scopesthreads:readReads

Searches the web for the organisation behind the domain of the address and keeps what it found, as the reading pane does the first time it shows a sender. Every address under the domain shares the answer, a subdomain included, and it is kept for 30 days before it is looked up again, so a domain that was looked up before is answered from what was kept and nothing is searched. Personal mailbox providers such as Gmail and the domains of this workspace are never looked up. Only the owner of the workspace may look senders up, with a key or an app that is not limited to particular addresses or domains, and a workspace looks up at most 200 new domains a day.

Requires the threads:read scope.

Path parameters

emailstringRequired

An address of the sender, such as [email protected]. Only its domain is read.

Returns

What was found.

Errors

404

Nothing could be found about the domain, or it is a personal mailbox provider or a domain of this workspace.

409

ai_not_configured: looking senders up is not available on this server.

429

research_limit_reached: the workspace has looked up 200 new domains today.

rate_limited: the workspace's keys and apps together made more requests in 60 seconds than its limit, 1,000 on Starter, 5,000 on Pro and 10,000 on Max, unless the workspace has a limit of its own. Wait for the seconds in Retry-After. A request refused this way is not billed. Answered requests are billed at the apiRequests rate of the plan while pay as you go is on. Per 1,000,000 requests that is $0.50 on Starter, $0.30 on Pro and $0.20 on Max.

The errors every operation can return400401403422500Error catalog

Also available in

TypeScript
senders.research()
Python
senders.research()
Ruby
senders.research
PHP
senders->research
Go
Senders.Research
Java
senders().research
C#
Senders.ResearchAsync
CLI
nextmail senders research
MCP
getSenderProfile

Objects

SenderProfileobject

objectstringRequired
One of"sender_profile"
domainstringRequired

The domain that was looked up: the organisation's own domain, which its subdomains share.

aboutstringRequired

A sentence or two in plain prose about the organisation behind it.

Up to 400 characters
avatarUrlstringRequired

The picture the app shows for the address, or null when it draws initials. A picture found on Gravatar or the website of the domain is served by GET /senders/{email}/avatar with the same credential, and a photo of a member, an address or a contact, a domain logo or the Nextmail mark by a public URL.

Can be null
avatarKindstringRequired

member for the photo of somebody in the workspace or of one of its addresses or domains, contact for a contact photo, lookup for a picture found on Gravatar or the web, and generated for initials.

One of"member""contact""lookup""generated"
updatedAtstringRequired

When it was last looked up.

Formatdate-time