---
title: "Land Agent Link"
method: POST
path: "/account/agent-link/land"
tags: ["account"]
---

# Land Agent Link

`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)
- URL: `https://api.beatra.ai/account/agent-link/land`
- Auth: none declared

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).

## Headers

- `authorization` string, nullable

## Request body

- AgentLinkLandRequest: 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 `200`

Successful Response

- AgentLinkLandResponse: 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

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-30** `f6a4452af6f7`: 1 warning, 2 info
  - added the new `offer` enum value to the `action` response property for the response status `200`
  - added the new optional request property `mode`
  - added the optional property `account_ref` to the response with the `200` status
- **2026-10-30** `4929accfa397`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/beatra/apis/agent-service-api/changes/account/agent-link/land/post.md)

---

[API](https://skmtc.dev/beatra/apis/agent-service-api.md) - [All operations](https://skmtc.dev/beatra/apis/agent-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/beatra/apis/agent-service-api/revisions/54a093c28eee?raw)
