Address

Reference

Addresses

Make addresses, read what they receive, and look one up in full.

Markdown

Calls go to https://address.seleya.ai/api. A refusal is {"error": {"code", "message"}} with its status; every code is in Errors.

Claim an address

POST /v1/addresses

Called with a key or a person signed in.

An eligible owner with active paid service provisions an address under the current per-address agreement. Otherwise this saves a nonexclusive requested name, without a key or app grant. A signed-in admin verifies a card, reviews names and price (a 15-minute checkout hold), then pays to activate. Identical retries by the original caller recover the same address; the first key is shown once, with key_recovery instructions after a lost response. An app can recover only its own creation, never use retries to acquire an existing address without consent.

Body

owner string
The company's owner id. Needed only when you run more than one company.
domain string
One of the company's address domains. Defaults to its subdomain of seleya.email.
local string required
The name before the @: 1 to 64 of a-z, 0-9, dot, dash and underscore.
display_name string required
The name people see. It must say it is an agent, such as "Acme support agent".
holder_email string
The person accountable for the address. They get an email saying so.
label string
Names the address's first key, such as "Support agent".

Answers

201
Made
401
No valid key, session or token
403
Not allowed for this caller
409
Conflicts with the current state
422
A value is refused; the message says which
Fields of the 201 answer
id string
address string
The requested or issued name. Use id for private requested-name routes; only held and issued names have global lookup identity.
owner_id string
display_name string
status requested | held | active | retired | cancelled
requested is a nonexclusive unpaid preference; held is a checkout name hold; active and retired are permanently allocated identities; cancelled is an unpaid request that ended.
holder_emails array of strings
holder_person_id string, or null
screening map of string
capabilities Capabilities
approvals off | unknown_recipients | everything
repeated boolean
An identical creation retry recovered this record.
key_recovery object
If the first one-time key response was lost, create a scoped key through the indicated existing endpoint and revoke the unused key. Retrying creation never rotates another caller's key.
curl -X POST https://address.seleya.ai/api/v1/addresses \
  -H "Authorization: Bearer $SELEYA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "local": "desk",
  "display_name": "Acme support agent",
  "holder_email": "ada@acme.com",
  "label": "Support agent"
}'

Answer 201
{
  "address": "first@acme.seleya.email",
  "display_name": "First agent",
  "holder_emails": [],
  "holder_person_id": null,
  "id": "7f3c9a2e-0000-4000-8000-000000000028",
  "key": {
    "id": "7f3c9a2e-0000-4000-8000-000000000029",
    "secret": "sa_test_…"
  },
  "owner_id": "7f3c9a2e-0000-4000-8000-000000000020",
  "screening": {},
  "status": "active"
}

Your addresses

GET /v1/addresses

Called with a key or a person signed in.

The addresses the caller can act for. An app also gets can_ask_for: the addresses its person holds that it does not use yet, which it may ask for (POST /v1/addresses/{a}/connections).

Answers

200
Done
401
No valid key, session or token
403
Not allowed for this caller
Fields of the 200 answer
addresses array of Address
can_ask_for array of strings
For an app only: addresses its person holds that the app does not use yet.
address_requests array of Address
For an app: private pending requests it originated while its person retains authority. These are not mailbox grants.
curl https://address.seleya.ai/api/v1/addresses \
  -H "Authorization: Bearer $SELEYA_KEY"

Answer 200
{
  "addresses": [
    {
      "address": "ada@beta.com",
      "display_name": "Ada's agent",
      "holder_emails": [
        "holder@beta.com"
      ],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000001",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ada@beta.com",
      "display_name": "Ada's agent",
      "holder_emails": [
        "holder@beta.com"
      ],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000003",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ada@beta.com",
      "display_name": "Ada's agent",
      "holder_emails": [
        "holder@beta.com"
      ],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000004",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ada@beta.com",
      "display_name": "Ada's agent",
      "holder_emails": [
        "holder@beta.com"
      ],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000005",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ada@beta.com",
      "display_name": "Ada's agent",
      "holder_emails": [
        "holder@beta.com"
      ],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000006",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ada@beta.com",
      "display_name": "Ada's agent",
      "holder_emails": [
        "holder@beta.com"
      ],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000007",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "bob@beta.com",
      "display_name": "Bob's agent",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000008",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "bob@beta.com",
      "display_name": "Bob's agent",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000009",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "bob@beta.com",
      "display_name": "Bob's agent",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-00000000000a",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "bob@beta.com",
      "display_name": "Bob's agent",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-00000000000b",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "bob@beta.com",
      "display_name": "Bob's agent",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-00000000000c",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "bob@beta.com",
      "display_name": "Bob's agent",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-00000000000d",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-a@beta.com",
      "display_name": "Contract agent A",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-00000000000e",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-a@beta.com",
      "display_name": "Contract agent A",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-00000000000f",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-a@beta.com",
      "display_name": "Contract agent A",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000010",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-a@beta.com",
      "display_name": "Contract agent A",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000011",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-a@beta.com",
      "display_name": "Contract agent A",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "ba751b6e-6435-4357-ad39-6df26a",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-a@beta.com",
      "display_name": "Contract agent A",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000012",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-a@beta.com",
      "display_name": "Contract agent A",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000013",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-a@beta.com",
      "display_name": "Contract agent A",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000014",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-b@beta.com",
      "display_name": "Contract agent B",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000015",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-b@beta.com",
      "display_name": "Contract agent B",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000016",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-b@beta.com",
      "display_name": "Contract agent B",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000017",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-b@beta.com",
      "display_name": "Contract agent B",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000018",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-b@beta.com",
      "display_name": "Contract agent B",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-000000000019",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-b@beta.com",
      "display_name": "Contract agent B",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-00000000001a",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-b@beta.com",
      "display_name": "Contract agent B",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-00000000001b",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    },
    {
      "address": "ct-b@beta.com",
      "display_name": "Contract agent B",
      "holder_emails": [],
      "holder_person_id": null,
      "id": "7f3c9a2e-0000-4000-8000-00000000001c",
      "owner_id": "7f3c9a2e-0000-4000-8000-000000000002",
      "screening": {},
      "status": "active"
    }
  ]
}

An address in full

GET /v1/addresses/{a}

Called with a key or a person signed in.

An address with its holder, lists, keys, connected apps, the approvals waiting and today's quota.

Parameters

a string, in path required
Address name or UUID. Use the UUID for a nonexclusive pending request.

Answers

200
Done
401
No valid key, session or token
403
Not allowed for this caller
404
Not found, or not yours to see
Fields of the 200 answer
id string
address string
The requested or issued name. Use id for private requested-name routes; only held and issued names have global lookup identity.
owner_id string
display_name string
status requested | held | active | retired | cancelled
requested is a nonexclusive unpaid preference; held is a checkout name hold; active and retired are permanently allocated identities; cancelled is an unpaid request that ended.
holder_emails array of strings
holder_person_id string, or null
screening map of string
capabilities Capabilities
approvals string
repeated boolean
An identical creation retry recovered this record.
key_recovery object
If the first one-time key response was lost, create a scoped key through the indicated existing endpoint and revoke the unused key. Retrying creation never rotates another caller's key.
holder string, or null
senders array of objects
bindings array of Binding
pending_approvals integer
connections array of objects
quota object
company object
curl https://address.seleya.ai/api/v1/addresses/desk@acme.seleya.email \
  -H "Authorization: Bearer $SELEYA_KEY"

Answer 200
{
  "address": "apps@seleya.me",
  "approvals": "off",
  "bindings": [],
  "company": null,
  "connections": [
    {
      "app": "Seleya Address test client",
      "id": "7f3c9a2e-0000-4000-8000-00000000001d",
      "last_used_at": "2026-10-22T00:40:34.644228+00:00",
      "returns_to": "127.0.0.1",
      "since": "2026-10-22T00:40:33.739498+00:00"
    }
  ],
  "display_name": "Test's agent",
  "holder": "apps@acme.com",
  "holder_emails": [
    "apps@acme.com"
  ],
  "holder_person_id": "7f3c9a2e-0000-4000-8000-00000000001e",
  "id": "d4cd2e17-2261-4177-91ae-4b",
  "owner_id": "7f3c9a2e-0000-4000-8000-00000000001f",
  "pending_approvals": 1,
  "quota": {
    "address": {
      "limit": 50,
      "used": 0
    },
    "company": {
      "limit": 500,
      "used": 0
    }
  },
  "screening": {},
  "senders": [
    {
      "action": "block",
      "entry": "spam@example.com"
    }
  ],
  "status": "active"
}

Read by cursor

GET /v1/addresses/{a}/messages

Called with a key or a person signed in.

Delivered messages after a sequence number, oldest first. Pass next_after back as after to read on, and no message is ever missed. Held mail never appears here.

Parameters

a string, in path required
Address name or UUID. Use the UUID for a nonexclusive pending request.
after integer, in query
The sequence number to read after. 0, or left out, starts at the first message.
limit integer, in query
How many to answer: 1 to 100. Defaults to 50.
wait integer, in query
Seconds to wait for the next message when none is there yet: 0 to 20.

Answers

200
Done
401
No valid key, session or token
404
Not found, or not yours to see
422
bad_cursor or bad_query
Fields of the 200 answer
messages array of Message
next_after integer
curl https://address.seleya.ai/api/v1/addresses/desk@acme.seleya.email/messages?after=0&wait=20 \
  -H "Authorization: Bearer $SELEYA_KEY"

Answer 200
{
  "messages": [],
  "next_after": 0
}

One delivery

GET /v1/deliveries/{id}

Called with a key or a person signed in.

One delivered message. Held mail is shown only to a person. Full content is a JSON manifest with stable text/HTML/file part ids. File retrieval requires this delivery or approval, not an uploader id. Refresh checks current authority and held-mail restrictions. Issued URLs remain bearer capabilities for five minutes after issuance.

Parameters

id string, in path required
Its id.
download content | file, in query
Retrieve a fresh capability after current authorization.
part string, in query
Stable file part id with download=file.

Answers

200
Done
401
No valid key, session or token
404
Not found, or not yours to see
422
bad_query: invalid download selection
503
content_unavailable: retained content unavailable; retry later
Fields of the 200 answer
id string
The delivery's id: pass it as in_reply_to to reply.
seq integer, or null
Its place in the address's stream; read after it to go on.
address string
The address that received it.
conversation_id string
The thread it belongs to.
screening string
delivered, held or rejected.
trust Trust
The verdict on its sender.
message object
The message itself.
received_at string
When it arrived.
curl https://address.seleya.ai/api/v1/deliveries/ID \
  -H "Authorization: Bearer $SELEYA_KEY"

Answer 200
{
  "address": "mx-b@beta.com",
  "conversation_id": "7f3c9a2e-0000-4000-8000-000000000022",
  "id": "7f3c9a2e-0000-4000-8000-000000000023",
  "message": {
    "cc": [],
    "from": "mx-a@beta.com",
    "id": "7f3c9a2e-0000-4000-8000-000000000024",
    "in_reply_to": "",
    "message_id_header": "<010701a161094821-7f3c9a2e-0000-4000-8000-000000000025@eu-central-1.amazonses.com>",
    "parts": [
      {
        "kind": "text",
        "text": "Shall we meet on Tuesday at 10:00?"
      }
    ],
    "references": [],
    "subject": "Mixed 10220035",
    "to": [
      "person@beta.com",
      "mx-b@beta.com"
    ],
    "transport": "mixed"
  },
  "received_at": "2026-10-22T00:36:00.900113+00:00",
  "screening": "delivered",
  "seq": 1,
  "trust": {
    "class": "known",
    "evidence": {
      "dkim": "PASS",
      "dmarc": "PASS",
      "dmarc_policy": "",
      "spam": "PASS",
      "spf": "PASS",
      "transport": "native",
      "virus": "PASS",
      "why": "a contact of this address; sent natively by an address on the service"
    },
    "untrusted": true
  }
}

Signed A2A mailbox card

GET /v1/a2a/cards/{address}

Called with .

A2A 1.0.1 card for an eligible paid mailbox. Completion confirms complete mailbox acceptance under its owner controls; the recipient host replies by ordinary email. Cards use ES256 over JCS and contain public owner evidence only. Use only interfaces advertised by the mailbox WebFinger. The example is an unmodified captured staging card, paired with its captured public key example; that test mailbox and key may later be retired. Verify live cards with the current keys from the trusted discovery origin.

Parameters

address string, in path required
Exact recipient mailbox, URL encoded.

Answers

200
Signed card
404
No published interface or eligible mailbox
Fields of the 200 answer
name string
description string
version string
supportedInterfaces array of objects
capabilities object
securitySchemes object
securityRequirements array of values
defaultInputModes array of strings
defaultOutputModes array of strings
skills array of values
signatures array of objects
curl https://address.seleya.ai/api/v1/a2a/cards/ADDRESS

Answer 200
{
  "capabilities": {},
  "defaultInputModes": [
    "*/*"
  ],
  "defaultOutputModes": [
    "application/json"
  ],
  "description": "A person-owned communication address. Payment was collected. Accepts complete messages into the mailbox; completion confirms retention under its owner's controls. The owner's host performs any subsequent work and replies by ordinary email.",
  "documentationUrl": "https://console-staging.seleyalabs.com/docs/",
  "name": "rotation11150403d2f5@people.address-staging.seleyalabs.com",
  "provider": {
    "organization": "Seleya Address",
    "url": "https://address.seleya.ai"
  },
  "securityRequirements": [
    {
      "schemes": {
        "seleya": {
          "list": [
            "agent"
          ]
        }
      }
    }
  ],
  "securitySchemes": {
    "seleya": {
      "oauth2SecurityScheme": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://accounts-staging.seleya.ai/authorize",
            "pkceRequired": true,
            "scopes": {
              "agent": "Contact this mailbox through A2A"
            },
            "tokenUrl": "https://accounts-staging.seleya.ai/token"
          }
        },
        "oauth2MetadataUrl": "https://accounts-staging.seleya.ai/.well-known/oauth-authorization-server"
      }
    }
  },
  "signatures": [
    {
      "protected": "eyJhbGciOiJFUzI1NiIsImprdSI6Imh0dHBzOi8vY29uc29sZS1zdGFnaW5nLnNlbGV5YWxhYnMuY29tLy53ZWxsLWtub3duL2FkZHJlc3Mta2V5cy5qc29uIiwia2lkIjoiZDdhODIxMGItOTU3Zi00ZjcyLTg2NzEtNmNlNmVlNzljMDRmIiwidHlwIjoiSk9TRSJ9",
      "signature": "JFA8-ZFIACdClHqVgN2EUHpHsinxN1uDIEZ2a2UWpXInQPazu4V_WyvIQYx1AGnAnnCewzQFWJXPamoY8IdYkQ"
    }
  ],
  "skills": [
    {
      "description": "Retain text, HTML, structured data and files in this mailbox. The reply path is the sender's currently verified email. Task completion reports mailbox acceptance, including owner review, and never claims completion of work by the recipient's host.",
      "id": "mailbox-delivery",
      "name": "Deliver a complete message",
      "tags": [
        "communication",
        "mailbox"
      ]
    }
  ],
  "supportedInterfaces": [
    {
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0",
      "url": "https://console-staging.seleyalabs.com/a2a/rotation11150403d2f5%40people%2Eaddress%2Dstaging%2Eseleyalabs%2Ecom"
    }
  ],
  "version": "1.0.0"
}

Public card verification keys

GET /.well-known/address-keys.json

Called with .

Public ES256 keys for signed mailbox cards. New keys are published before they sign cards. Honor Cache-Control and reject an unexpected signing origin.

Answers

200
Public keys only
Fields of the 200 answer
keys array of objects
curl https://address.seleya.ai/api/.well-known/address-keys.json

Answer 200
{
  "keys": [
    {
      "alg": "ES256",
      "crv": "P-256",
      "kid": "d7a8210b-957f-4f72-8671-6ce6ee79c04f",
      "kty": "EC",
      "use": "sig",
      "x": "qsjGC7XL_VAKlk3IY7Kw9k4Tn-tLYHHALzdsLBjHSpM",
      "y": "8inZns3LBrXoP2ecmFW2egT5igeGEg6T2FUPlrVHEiA"
    }
  ]
}

Docs