link_identity #

View this page as Markdown

On this page

Generated automatically from the published contract sources.

A script calls this action over HTTPS at POST https://dev.turnzero.ai/api/v1/link_identity, with a bearer credential and the action's payload as the JSON body. An MCP connection lists this action as the tool link_identity.

OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts (Sign-in, sessions, and tokens).

Build metadata: Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.

Contract description #

Add a sign-in method to your account using Google, GitHub or an emailed code at a new address. Give the returned link to the account's owner. Keep it in a private handoff and out of shared chats, logs and reports. It lasts ten minutes. The owner opens it in a browser signed in to that account within the last eight hours. They authenticate with the new provider or confirm the code emailed to the new address. This adds a route to the same account and creates no account. Accounts are never linked by matching email addresses.

More about this action #

The link's browser step admits the account that requested it, freshly signed in within eight hours. With no session or a stale session, the link's page offers sign-in returning to that link. A fresh session of another account is refused. The provider's steps return an unadmitted browser to the link's page. An emailed-code start does so before sending, and confirmation does so after checking a valid code. An expired link's page shows invalid_request (400); call link_identity again.

For an emailed-code method, enter the new address on the link's page and confirm its six-digit code in the same browser. The code expires after ten minutes, and the add link must still stand. The code completes that add step alone and does not sign the browser in. The confirmation rechecks the session before taking the link ticket or linking.

An address another account holds is refused only after the code proves it. A refused linking write leaves the link available for another method within its remaining lifetime. The add sends a notice only if the address was not already verified on that account, to its previous verified addresses before the new one.

If a provider returns a sign-in method already on this account, the Already connected page reports no change. Back to sign-in options lets the owner try a different provider account or sign-in method before the link expires. The browser stays signed in to the same Turn Zero account.

Each account permits five emailed-code starts hourly, beside source and mail bounds. Resends and starts refused for malformed addresses, undeliverable domains or address limits count. Account starts or address sends past their hourly limits show a 429 page: try later, with no wait time. Addresses at the fixture domain show a 400 page: use another address. An undeliverable domain shows a 400 page: check and re-enter the address. After the code, an address another account holds shows a 409 page: nothing added; the link takes another address or method. These four pages name no refusal.

Ten wrong entries per address an hour or mail ceilings block starts with signin_code_rate_limited (429). The action returns HTTP 403 with synthetic_account_fixed for a synthetic account before it creates a link. The browser step can also return that refusal after admitting a fresh session of the fixed account. Other named refusals: invalid_request (400) for another step's code; signin_code_invalid (400) for wrong, expired or replaced codes. Provider linking refuses address_held_by_another_account or identity_already_bound (409). Matching addresses never merge accounts.

Access and action metadata #

{
  "name": "link_identity",
  "resource": "account",
  "tier": "reversible",
  "surface": "account",
  "addresses": [
    "tzcloud",
    "tztools"
  ],
  "summary": "Add a sign-in method to the signed-in account through a ten-minute browser link, using Google, GitHub or an emailed code at a new address, after fresh sign-in to that same account.",
  "annotations": {
    "readOnlyHint": false,
    "destructiveHint": false,
    "openWorldHint": true
  }
}

MCP catalog entry #

{
  "name": "link_identity",
  "title": "Link a sign-in identity",
  "tier": "reversible",
  "scenario": "CHI-L0-04",
  "summary": "Add a sign-in method to your account using Google, GitHub or an emailed code at a new address. Give the returned link to the account's owner. Keep it in a private handoff and out of shared chats, logs and reports. It lasts ten minutes. The owner opens it in a browser signed in to that account within the last eight hours. They authenticate with the new provider or confirm the code emailed to the new address. This adds a route to the same account and creates no account. Accounts are never linked by matching email addresses.",
  "owners": [
    "ACB-L0-03"
  ]
}

request #

JSON pointer Description and constraints
"" (root) Type: object
Additional properties: false

response #

JSON pointer Description and constraints
"" (root) Type: object
Required fields: ["contract_version","link_url","expires_in"]
/properties/contract_version Required value: 1
/properties/reference The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row. Quote it when you report the call.

Type: string
Pattern: ^[0-9a-f]{10}$
/properties/link_url Type: string
/properties/expires_in Type: integer
/properties/detail Type: string

Complete payload contract #

{
  "request": {
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "link_url",
      "expires_in"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "reference": {
        "type": "string",
        "pattern": "^[0-9a-f]{10}$",
        "description": "The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row. Quote it when you report the call."
      },
      "link_url": {
        "type": "string"
      },
      "expires_in": {
        "type": "integer"
      },
      "detail": {
        "type": "string"
      }
    }
  }
}

Shared contracts #