Address

Reference

Protections

Screening per kind of sender, allow and block lists, contacts, held mail and approvals for sends.

Markdown

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

Approval mode

PUT /v1/addresses/{a}/approvals

Called with a key or a person signed in.

Which of the address's sends wait for a person: off, unknown_recipients or everything. New addresses default to off; existing choices are preserved. A key or app may make it stricter at once; lowering it waits for a person.

Parameters

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

Body

mode off | unknown_recipients | everything required
off: the agent sends on its own. unknown_recipients: a send to anyone it has not written to before waits. everything: every send waits.

Answers

200
Done
202
Waits for a person to review the request
401
No valid key, session or token
404
Not found, or not yours to see
422
A value is refused; the message says which
Fields of the 200 answer
address string
approvals string
curl -X PUT https://address.seleya.ai/api/v1/addresses/desk@acme.seleya.email/approvals \
  -H "Authorization: Bearer $SELEYA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mode": "unknown_recipients"
}'

Answer 200
{
  "address": "desk@acme.seleya.email",
  "approvals": "unknown_recipients"
}

Add contacts

POST /v1/addresses/{a}/contacts

Called with a key or a person signed in.

A person saves trusted contacts directly. An agent requests human approval, because a contact bypasses unknown-recipient screening and send approval.

Parameters

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

Body

contacts array of strings required
1 to 100 email addresses.

Answers

200
Done
202
Waits for a person to review the request
401
No valid key, session or token
404
Not found, or not yours to see
422
A value is refused; the message says which
Fields of the 200 answer
added integer
curl -X POST https://address.seleya.ai/api/v1/addresses/desk@acme.seleya.email/contacts \
  -H "Authorization: Bearer $SELEYA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contacts": ["sam@beta.com"]
}'

Answer 200
{
  "added": 1
}

Screening per class

PUT /v1/addresses/{a}/screening

Called with a key or a person signed in.

What happens to mail from each kind of sender: delivered, held or rejected. New addresses deliver ordinary stranger and unverified mail; deterministic rejection always applies. Existing choices are preserved. Omitted classes use current product defaults when replacing this policy. A key or app may make it stricter at once; a looser setting waits for a person.

Parameters

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

Answers

200
Done
202
Waits for a person to review the request
401
No valid key, session or token
403
Not allowed for this caller
404
Not found, or not yours to see
422
A value is refused; the message says which
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 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 PUT https://address.seleya.ai/api/v1/addresses/desk@acme.seleya.email/screening \
  -H "Authorization: Bearer $SELEYA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "stranger": "held",
  "unverified": "rejected"
}'

Answer 200
{
  "address": "ct-c@beta.com",
  "display_name": "Contract agent C",
  "holder_emails": [],
  "holder_person_id": null,
  "id": "7f3c9a2e-0000-4000-8000-000000000033",
  "owner_id": "7f3c9a2e-0000-4000-8000-000000000034",
  "screening": {
    "stranger": "rejected"
  },
  "status": "active"
}

Allow and block lists

GET /v1/addresses/{a}/senders

Called with a key or a person signed in.

The address's allow and block lists.

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
404
Not found, or not yours to see
Fields of the 200 answer
senders array of objects
curl https://address.seleya.ai/api/v1/addresses/desk@acme.seleya.email/senders \
  -H "Authorization: Bearer $SELEYA_KEY"

Answer 200
{
  "senders": [
    {
      "entry": "spam.example",
      "action": "block"
    }
  ]
}

Allow or block a sender

PUT /v1/addresses/{a}/senders

Called with a key or a person signed in.

Allows or blocks a sender (an address or @domain). Blocking happens at once; allowing waits for a person when a key or app asks.

Parameters

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

Body

entry string required
A sender's address, or @domain for everyone at it. An address beats its domain.
action allow | block required
allow delivers its mail whatever its class; block drops it.

Answers

200
Done
202
Waits for a person to review the request
401
No valid key, session or token
404
Not found, or not yours to see
422
A value is refused; the message says which
Fields of the 200 answer
entry string
action string
curl -X PUT https://address.seleya.ai/api/v1/addresses/desk@acme.seleya.email/senders \
  -H "Authorization: Bearer $SELEYA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "entry": "@beta.com",
  "action": "block"
}'

Answer 200
{
  "entry": "spam.example",
  "action": "block"
}

Remove a list entry

DELETE /v1/addresses/{a}/senders/{e}

Called with a key or a person signed in.

Removes a list entry. Unblocking waits for a person when a key or app asks.

Parameters

a string, in path required
Address name or UUID. Use the UUID for a nonexclusive pending request.
e string, in path required
The list entry: an address or @domain.

Answers

202
Waits for a person to review the request
204
Done, with no body
401
No valid key, session or token
404
Not found, or not yours to see
422
A value is refused; the message says which
Fields of the 202 answer
status awaiting_approval
awaiting_approval.
approval object
The ask: its id, kind and who decides.
curl -X DELETE https://address.seleya.ai/api/v1/addresses/desk@acme.seleya.email/senders/@beta.com \
  -H "Authorization: Bearer $SELEYA_KEY"

Answer 202
{
  "status": "awaiting_approval",
  "approval": {
    "id": "7f3c9a2e-0000-4000-8000-000000000001",
    "kind": "unblock_sender",
    "summary": "unblock spam.example",
    "waits_for": "a person",
    "review_url": "https://address.seleya.ai/#/approvals"
  }
}

Block a held message's sender

POST /v1/deliveries/{id}/block

Called with a key or a person signed in.

Blocks a held message's sender and drops the message.

Parameters

id string, in path required
Its id.

Answers

200
Done
401
No valid key, session or token
404
Not found, or not yours to see
Fields of the 200 answer
blocked string
delivery string
curl -X POST https://address.seleya.ai/api/v1/deliveries/ID/block \
  -H "Authorization: Bearer $SELEYA_KEY"

Answer 200
{
  "blocked": "spam@beta.example",
  "delivery": "7f3c9a2e-0000-4000-8000-000000000001"
}

Release held mail

POST /v1/deliveries/{id}/release

Called with a key or a person signed in.

Releases held mail and makes its sender a contact. A person releases at once; a key or app's request waits for one.

Parameters

id string, in path required
Its id.

Answers

200
Done
202
Waits for a person to review the request
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
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 -X POST https://address.seleya.ai/api/v1/deliveries/ID/release \
  -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
  }
}

Held mail

GET /v1/held

Called with a key or a person signed in.

Mail held for a person. A key or app sees who sent it and why, never the text. Results are paginated with limit (1-100, default 100). Pass next_cursor as cursor with the same filters; null means the end. Each page checks current access. Held mail is oldest first; approvals are newest first. Equal timestamps use the unique id as a stable tiebreaker.

Parameters

address string, in query
One address.
limit integer, in query
cursor string, in query
The previous page's next_cursor.

Answers

200
Done
401
No valid key, session or token
403
Not allowed for this caller
404
Not found, or not yours to see
422
bad_cursor or bad_query: invalid continuation or page size
503
content_unavailable: retained message content is temporarily unavailable
Fields of the 200 answer
held array of Message
next_cursor string, or null
Continuation position, or null at the end. It is not an authorization credential.
curl https://address.seleya.ai/api/v1/held \
  -H "Authorization: Bearer $SELEYA_KEY"

Answer 200
{
  "held": []
}

Docs