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://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 second sign-in method (another provider) to your account. Give the returned link URL to the account's owner. It is valid for ten minutes. The owner opens it in a browser and signs in with the other provider. Accounts are never linked by matching email addresses.

Access and action metadata #

{
  "name": "link_identity",
  "resource": "account",
  "tier": "reversible",
  "surface": "account",
  "addresses": [
    "tzcloud",
    "tztools"
  ],
  "summary": "Link a second federated identity to the signed-in account through the guided linking flow; linking is never by email equivalence.",
  "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 second sign-in method (another provider) to your account. Give the returned link URL to the account's owner. It is valid for ten minutes. The owner opens it in a browser and signs in with the other provider. 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 #