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
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
emailstringRequiredAn 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
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
emailstringRequiredThe address of the sender, such as
[email protected].
Headers
If-None-MatchstringThe
ETagof a picture you already hold.
Returns
image/*The picture, with its type in Content-Type and an ETag.
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
POST/senders/{email}/research
Look a sender up
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
emailstringRequiredAn 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 inRetry-After. A request refused this way is not billed. Answered requests are billed at theapiRequestsrate 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
Objects
SenderProfileobject
objectstringRequired- One of
"sender_profile" domainstringRequiredThe domain that was looked up: the organisation's own domain, which its subdomains share.
aboutstringRequiredA sentence or two in plain prose about the organisation behind it.
Up to 400 charactersavatarUrlstringRequiredThe 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}/avatarwith 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 nullavatarKindstringRequiredmemberfor the photo of somebody in the workspace or of one of its addresses or domains,contactfor a contact photo,lookupfor a picture found on Gravatar or the web, andgeneratedfor initials.One of"member""contact""lookup""generated"updatedAtstringRequiredWhen it was last looked up.
Formatdate-time