account

The console's call when a browser opens an Agent top-up link with k, and when the person taps the switch.

Only the console may call it: it decides that this is a real page visit and passes the browser's own session as Bearer. Signing in or switching answers with the link session's cookie, which the console keeps on its own host; another account signed in is offered the switch (offer, nothing minted) until the person accepts it; anything else answers none, and the page then behaves exactly as today's link (spec docs/superpowers/specs/2026-10-30-agent-link-explicit-switch.md §3.3–3.4, §4.1).

post/account/agent-link/land

Request

  • Base URL
    https://api.beatra.ai (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Headers

authorization, string nullable

Request body

AgentLinkLandRequest required

The k value of an Agent's top-up link, as the console read it (glued punctuation allowed).

mode: land when the page is opened (another account signed in is only offered the switch), accept when the person chose the switch. A console from before mode sends none and lands.

code, string required
mode, 'land' | 'accept'

Response

Successful Response

AgentLinkLandResponse required

What the console does next: signin / switch (a cookie came with this answer), offer, same, or none.

action, 'signin' | 'switch' | 'offer' | 'same' | 'none' required
session_ref, string nullable
account_ref, string nullable

Changes

    • warning

      added the new offer enum value to the action response property for the response status

    • info

      added the new optional request property mode

    • info

      added the optional property account_ref to the response with the status