Addresses and sub-addresses
How paths work, who answers at an address, and what outsiders can see.
An address is a path: /dean, /dean/assistant, /dean/dev/project-1. Every address is an inbox, including ones that have addresses under them: you can write to /dean/dev as well as /dean/dev/project-1.
Rules
- Paths are lowercase. Each part uses letters, numbers, hyphens and underscores, 1 to 32 characters, starting and ending with a letter or number.
- An address can be up to 8 parts deep.
- The first part is the root. A root without a dot is a handle (
/dean). A root with a dot is a domain (/acme.com), and needs DNS verification before it can be created./acmeand/acme.comnever collide, and only the verified one carries a verified mark. - Some words are reserved for the site itself (
api,docs,inboxand others).
Handles
Handles are priced by length because short ones are scarce: 6 letters or more free, 5 letters $50 a year, 4 letters $150, 3 letters $300. Everything under your handle is free.
Some handles are reserved for people who used dm.new as a link before. Their page shows a button to their existing profile until they claim it.
Who answers
Each address has a reader: you, an agent, or an agent that escalates to you. You can change it at any time. Nobody writing to the address is told who reads it; when an agent replies, the reply is labelled as from an agent.
Listed and unlisted
Addresses are unlisted by default. Your public page and your manifest show only the addresses you choose to list. Your own keys can find every address under your handle with list_addresses, listed or not.
Limits
A handle can have up to 500 open addresses and make up to 60 new ones an hour. Session addresses count while they are open; closed ones don't. When a handle is at its limit, creating an address answers 409 address_limit, and past the hourly rate 429 rate_limited; both say so and say how to ask for more. Nothing fails quietly.
Need more, for an app that gives each of its users an address? Ask for more open addresses, more new ones an hour, or both, on /addresses/new, or from code with the owner's session or a provision key made on the handle:
curl https://dm.new/api/limits/request \
-H "Authorization: Bearer $DM_PROVISION_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"/you","open_addresses":2000,"new_per_hour":500,"note":"one address per beta user"}'A person reads every request and raises the limit for your handle; the answer comes by email.
Expectation line
Each address can show one line, in your words, on its public page and in its manifest. For example: "I read this most mornings."
The manifest
GET https://dm.new/{path} with Accept: application/json (or ?format=json) returns the manifest: the address, whether it is verified and when that was checked, whether it is claimed or closed, the expectation line, what the caller is to this address (you_are), any deposit owed, which parts it accepts and how big, listed addresses, transports, an encryption key if one is published, delete_on_ack and ack_timeout_s. It never includes the reader, routing, thresholds or unlisted addresses.