Address

Reference

Sign-in

address.seleya.ai's own sign-in, through the shared Seleya sign-in (accounts.seleya.ai).

Markdown

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

Sign out

POST /v1/auth/sign-out

Called by address.seleya.ai, signed in.

address.seleya.ai's own sign-in, from its own origin.

Answers

200
Done
400
The request is malformed
401
No valid key, session or token
403
Not allowed for this caller
422
A value is refused; the message says which
429
A limit is reached

You

GET /v1/me

Called by address.seleya.ai, signed in.

The person signed in: companies, held addresses, own address.

Answers

200
Done
401
No valid key, session or token
Fields of the 200 answer
person object
companies array of objects
held array of Address
can_claim array of objects
personal object
next string
Optional relative consent path returned by email verification.

Sign in with your Seleya account

GET /v1/auth/seleya

Called by address.seleya.ai, signed in.

Sends the person to the shared Seleya sign-in (accounts.seleya.ai) and back to `next` (the console's home, or a /connect/ or /confirm/ page).

Answers

302
Off to accounts.seleya.ai
400
The request is malformed
401
No valid key, session or token
403
Not allowed for this caller
422
A value is refused; the message says which
429
A limit is reached

Back from the Seleya sign-in

GET /v1/auth/seleya/callback

Called by address.seleya.ai, signed in.

The shared sign-in returns here with its code; the person's session starts and they go on to where they were going.

Answers

302
Signed in, on to the next page
400
The request is malformed
401
No valid key, session or token
403
Not allowed for this caller
422
A value is refused; the message says which
429
A limit is reached

Address's client document

GET /v1/auth/seleya/client.json

Called by address.seleya.ai, signed in.

Seleya Address's Client ID Metadata Document for the shared sign-in.

Answers

200
The document
400
The request is malformed
401
No valid key, session or token
403
Not allowed for this caller
422
A value is refused; the message says which
429
A limit is reached
Answer 200
{
  "client_id": "https://address.seleya.ai/api/v1/auth/seleya/client.json",
  "client_name": "Seleya Address",
  "redirect_uris": [
    "https://address.seleya.ai/api/v1/auth/seleya/callback"
  ],
  "token_endpoint_auth_method": "none"
}

The shared Seleya sign-in's identity events

POST /v1/seleya/events

Called by address.seleya.ai, signed in.

For accounts.seleya.ai only, signed by Standard Webhooks with Address's identity-event secret. When a Seleya account is deleted, its person's console sessions and agent connections end at once (B2-O60).

Answers

204
Done
401
The event is not signed by the Seleya sign-in

Docs