link_identity

Generated automatically from the published contract sources.

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.

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

Contract description

Add a second sign-in method (another provider) to this account. Returns a link URL, valid ten minutes, that you open in a browser and complete by signing in with the other provider. Accounts are never linked by matching email addresses.

Access and action metadata

{
  "name": "link_identity",
  "resource": "account",
  "tier": "reversible",
  "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",
  "tier": "reversible",
  "scenario": "CHI-L0-04",
  "summary": "Add a second sign-in method (another provider) to this account. Returns a link URL, valid ten minutes, that you open in a browser and complete by signing 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 this call under, ten lowercase hexadecimal characters, the value the call’s record row carries; quote it when reporting 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 this call under, ten lowercase hexadecimal characters, the value the call’s record row carries; quote it when reporting the call."
      },
      "link_url": {
        "type": "string"
      },
      "expires_in": {
        "type": "integer"
      },
      "detail": {
        "type": "string"
      }
    }
  }
}

Shared contracts