---
title: "link_identity"
description: "Generated reference for the management action link_identity: its description, access metadata, payload contract, and registration status."
slug: /reference/actions/link-identity
order: 8
visibility: public
redirects_from: []
---

# link\_identity

Generated automatically from the [published contract sources](/cloud/reference/about/#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](/cloud/concepts/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

```json
{
  "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

```json
{
  "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<br>Additional properties: false |

## response

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Required fields: \["contract\_version","link\_url","expires\_in"\] |
| /<wbr>properties/<wbr>contract\_version | Required value: 1 |
| /<wbr>properties/<wbr>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\.<br><br>Type: string<br>Pattern: ^\[0\-9a\-f\]\{10\}$ |
| /<wbr>properties/<wbr>link\_url | Type: string |
| /<wbr>properties/<wbr>expires\_in | Type: integer |
| /<wbr>properties/<wbr>detail | Type: string |

## Complete payload contract

```json
{
  "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

- [Refusals](/cloud/reference/refusals/): every refusal, by surface, with its cause and its remedy
- [schemas/wire\_error\.schema\.json](/cloud/reference/sources/schemas/wire-error-schema/)
- [schemas/wire\_errors\.json](/cloud/reference/sources/schemas/wire-errors/)
- [schemas/action\_payloads\.json](/cloud/reference/sources/schemas/action-payloads/) (includes shared shapes)
- [management\_api\_contract\.md](/cloud/reference/sources/management-api-contract/)
