Skip to the documentation
CLI

nextmail senders

Every command in this namespace, with its arguments, flags and examples.

Commands

What is known about the organisation behind a sender, the line the reading pane shows under an unfamiliar one, looking a sender up, and the picture shown for a sender.

Every command here also takes the global flags, such as --json, --profile and --dry-run. See the global flags

nextmail senders get

Read what is known about a sender

Scopesthreads:readNeeds a sign-inAliasesshowview

Usage

nextmail senders get <email> [flags]

Resolves a sentence or two about the organisation behind the domain of an address, the line the reading pane shows under an unfamiliar sender. Only the domain is read, so any address on it gives the same answer, a subdomain such as mail.stripe.com included, and domain names the organisation's own domain. What is known is shared by every workspace and looked up again by itself once it is 30 days old.

A domain nobody has looked up yet is a 404, and so are personal mailbox providers such as Gmail and the domains of your own workspace. research looks a domain up.

Arguments

<email>Required

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

Examples

nextmail senders get [email protected]
Print the raw JSON
nextmail senders get [email protected] --json

Also available in

API
GET /senders/{email}
TypeScript
senders.get()
Python
senders.get()
Ruby
senders.get
PHP
senders->get
Go
Senders.Get
Java
senders().get
C#
Senders.GetAsync

nextmail senders get-avatar

Fetch the picture of a sender

Scopesthreads:readNeeds a sign-in

Usage

nextmail senders get-avatar <email> [flags]

Resolves with 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. The response carries its type in Content-Type.

It is looked up the first time it is asked for and kept, so a picture not found yet can come a moment later. avatarUrl and avatarKind on get say which picture the app shows for the address, and a photo of a member, an address or a contact is served from a public URL instead.

Arguments

<email>Required

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

Flags

-o, --out <file>

Write the file here. Required on a terminal. Without it, piped output gets the raw bytes

Examples

nextmail senders get-avatar [email protected]
Save the file
nextmail senders get-avatar [email protected] --out report.pdf

Also available in

API
GET /senders/{email}/avatar
TypeScript
senders.getAvatar()
Python
senders.get_avatar()
Ruby
senders.get_avatar
PHP
senders->getAvatar
Go
Senders.GetAvatar
Java
senders().getAvatar
C#
Senders.GetAvatarAsync

nextmail senders research

Look a sender up

Scopesthreads:readNeeds a sign-in

Usage

nextmail senders research <email> [flags]

Searches the web for the organisation behind the domain of an 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 such as mail.stripe.com 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 your own 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: anything else is a 422 capability_unsupported or a 403 owner_only. A workspace looks up at most 200 new domains a day, and the next one is a 429 research_limit_reached. A domain nothing could be found about, a personal mailbox provider and a domain of your own workspace are a 404.

Arguments

<email>Required

An address of the sender. Only its domain is looked up.

Examples

nextmail senders research hello@acme-robotics.io
Print the raw JSON
nextmail senders research hello@acme-robotics.io --json

Also available in

API
POST /senders/{email}/research
TypeScript
senders.research()
Python
senders.research()
Ruby
senders.research
PHP
senders->research
Go
Senders.Research
Java
senders().research
C#
Senders.ResearchAsync