---
title: "share_space"
description: "Generated reference for the management action share_space: its description, access metadata, payload contract, and registration status."
slug: /reference/actions/share-space
order: 93
visibility: public
redirects_from: ["/reference/actions/share-issue-space"]
---

# share\_space

Generated automatically from the [published contract sources](/cloud/reference/about/#contract-sources).

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

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

Share an issue space you own\. Adding or removing a member or changing their access can send them one email\. Pass `space` and an existing account's sign\-in email in `add` or `remove`\. `add` sets `level`: `view`, `report`, `contribute` or `owner`, default `contribute`\. A repeat updates the member\. A missing account draws `no_such_account`\. Nothing waits for later sign\-in\.

With `add`, `restricted` and `accounts` set access as their descriptions state\. Members work at their level and cannot share\. The answer lists level, role, restricted access and any account bound\. Its `users` includes you\.

Your account needs tzTrack, which every account has\.

## Access and action metadata

```json
{
  "name": "share_space",
  "resource": "account",
  "tier": "reversible",
  "surface": "tztrack",
  "addresses": [
    "tztools"
  ],
  "product": "tztrack",
  "admits": [
    "tztrack",
    "device_sign_in"
  ],
  "summary": "Share one issue space the account owns with other accounts, each a member at one level. Adding or removing a member or changing their access can send them one email. `space` picks the space. `add` gives an existing account by the email address it signs in with, and `level` sets the member's level in the space: `view`, `report`, `contribute`, or `owner`, defaulting to `contribute`. A repeat updates that member. Use `view` to let a member list, search, and read unrestricted issues and download their attachments. `remove` gives a member by that address. With neither the call is refused `invalid_request`, pointing to `list_space_members`. An address no account signed in with is refused `no_such_account`, and nothing is kept for a later sign-in.\n\nWith `add`, `restricted` is true or false; a new member defaults to false, and omission keeps a standing member's value. Only `contribute` and `owner` can read restricted issues. `accounts` takes null or 1 to 19 distinct account ids; the plane adds the member's own account. A list bounds access to issues holding a report recorded under one of those accounts and excludes every restricted issue, whatever `restricted` says. Null clears the bound; omission keeps the standing value. Either field without `add` is refused `invalid_request`. Rows written before these fields read as before: by level, without an account bound.\n\nA space the account does not own, one shared with it among them, is refused `space_not_owned`; a member never shares, and the feedback actions stay the owner's. An account that does not hold tzTrack is refused `tztrack_required` ahead of the form and the space's ownership.\n\nThe answer carries the members, each with its account, address, level, role, restricted-issue access and the instant it was added. Viewer, Reporter, Contributor and Admin name `view`, `report`, `contribute` and `owner`, respectively. Admin is a member, never the space's owner. A bounded member also has `accounts`, including its own, and reads no restricted issue. It gives `users`, the members plus the owner. Registered while the issue service's origin is configured.",
  "annotations": {
    "readOnlyHint": false,
    "destructiveHint": true,
    "openWorldHint": false,
    "idempotentHint": true
  }
}
```

## MCP catalog entry

```json
{
  "name": "share_space",
  "title": "Share issue space",
  "tier": "reversible",
  "scenario": "API-L0-20",
  "summary": "Share an issue space you own. Adding or removing a member or changing their access can send them one email. Pass `space` and an existing account's sign-in email in `add` or `remove`. `add` sets `level`: `view`, `report`, `contribute` or `owner`, default `contribute`. A repeat updates the member. A missing account draws `no_such_account`. Nothing waits for later sign-in.\n\nWith `add`, `restricted` and `accounts` set access as their descriptions state. Members work at their level and cannot share. The answer lists level, role, restricted access and any account bound. Its `users` includes you.\n\nYour account needs tzTrack, which every account has.",
  "owners": [
    "ITS-L0-07",
    "ACB-L0-92"
  ]
}
```

## request

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Required fields: \["space"\] |
| /<wbr>properties/<wbr>space | The space to share, a lower\-case UUID of a space your account owns\.<br><br>Type: string<br>Pattern: ^\[0\-9a\-f\]\{8\}\-\[0\-9a\-f\]\{4\}\-\[0\-9a\-f\]\{4\}\-\[0\-9a\-f\]\{4\}\-\[0\-9a\-f\]\{12\}$ |
| /<wbr>properties/<wbr>add | The sign\-in email address of an existing account to add as a member, or whose level to move\. An address no account signed in with is refused `no_such_account`; nothing is kept for a later sign\-in\. Refused with `remove`\.<br><br>Type: string<br>Maximum length: 320 |
| /<wbr>properties/<wbr>level | With `add`: the member's tzTrack level in the space, `contribute` where absent\. `owner` reaches every tzTrack act on the space and makes nobody an owner: the space stays yours, and a member never shares it\. A `view` member can list, search, and read unrestricted issues and get their attachments\.<br><br>Type: string<br>Allowed values: \["view","report","contribute","owner"\] |
| /<wbr>properties/<wbr>remove | The sign\-in email address of the member to remove\. Refused with `add`\.<br><br>Type: string<br>Maximum length: 320 |
| /<wbr>properties/<wbr>restricted | With `add`: allow restricted issues at `contribute` or `owner` when true\. `view`, `report` and bounded members read none\. Omission keeps a standing member's value; a new member defaults to false\. Refused without `add`\.<br><br>Type: boolean |
| /<wbr>properties/<wbr>accounts | With `add`: null, or 1 to 19 distinct account ids\. The member's own account is added to the list\. A list bounds access to issues holding a report recorded under one of those accounts, with no restricted issue\. Null clears the bound; omission keeps the standing value\. Refused without `add`\.<br><br>Type: \["array","null"\]<br>Minimum items: 1<br>Maximum items: 19<br>uniqueItems: true |
| /<wbr>properties/<wbr>accounts/<wbr>items | Type: string<br>Minimum length: 1<br>Maximum length: 128 |

## response

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Required fields: \["contract\_version","space","members","users"\] |
| /<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>space | The space shared\.<br><br>Type: string |
| /<wbr>properties/<wbr>members | The members of the space after the call, oldest first; you, the owner, are not among them\.<br><br>Type: array |
| /<wbr>properties/<wbr>members/<wbr>items | Type: object<br>Required fields: \["account","address","level","added\_at","role","restricted"\] |
| /<wbr>properties/<wbr>members/<wbr>items/<wbr>properties/<wbr>account | The member's account identifier, the one its claims and its `person:<account>` carry\.<br><br>Type: string |
| /<wbr>properties/<wbr>members/<wbr>items/<wbr>properties/<wbr>address | The sign\-in email address the member was added by\.<br><br>Type: string |
| /<wbr>properties/<wbr>members/<wbr>items/<wbr>properties/<wbr>level | Type: string<br>Allowed values: \["view","report","contribute","owner"\] |
| /<wbr>properties/<wbr>members/<wbr>items/<wbr>properties/<wbr>added\_at | The instant the member was added, or its level last moved\.<br><br>Type: string |
| /<wbr>properties/<wbr>members/<wbr>items/<wbr>properties/<wbr>role | The level's name: `view` is Viewer, `report` Reporter, `contribute` Contributor and `owner` Admin\. Admin is a member, not the space's owner\.<br><br>Type: string |
| /<wbr>properties/<wbr>members/<wbr>items/<wbr>properties/<wbr>restricted | Whether the member can read restricted issues at its level\. False for a bounded member\. A row written before this setting follows its level: `contribute` and `owner` admit restricted issues; `view` and `report` do not\.<br><br>Type: boolean |
| /<wbr>properties/<wbr>members/<wbr>items/<wbr>properties/<wbr>accounts | The accounts bounding this member's access, including its own\. Present only for a bounded member, which reads only issues holding a report recorded under one of these accounts and never restricted issues\.<br><br>Type: array |
| /<wbr>properties/<wbr>members/<wbr>items/<wbr>properties/<wbr>accounts/<wbr>items | Type: string |
| /<wbr>properties/<wbr>users | The members plus you\.<br><br>Type: integer<br>Minimum: 1 |
| /<wbr>properties/<wbr>mail | One entry for the member this call added or removed, or whose level, account bound or restricted\-issue access it changed\. An unchanged call returns an empty array\.<br><br>Type: array |
| /<wbr>properties/<wbr>mail/<wbr>items | Type: object<br>Required fields: \["account","sent"\]<br>Additional properties: false |
| /<wbr>properties/<wbr>mail/<wbr>items/<wbr>properties/<wbr>account | The member's account identifier, as in members\[\]\.account\.<br><br>Type: string |
| /<wbr>properties/<wbr>mail/<wbr>items/<wbr>properties/<wbr>sent | True when the platform hands the email to its sender\. False when it cannot hand it off\. The share takes effect either way, and delivery is unconfirmed\.<br><br>Type: boolean |

## Complete payload contract

```json
{
  "request": {
    "type": "object",
    "required": [
      "space"
    ],
    "properties": {
      "space": {
        "type": "string",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "description": "The space to share, a lower-case UUID of a space your account owns."
      },
      "add": {
        "type": "string",
        "maxLength": 320,
        "description": "The sign-in email address of an existing account to add as a member, or whose level to move. An address no account signed in with is refused `no_such_account`; nothing is kept for a later sign-in. Refused with `remove`."
      },
      "level": {
        "type": "string",
        "enum": [
          "view",
          "report",
          "contribute",
          "owner"
        ],
        "description": "With `add`: the member's tzTrack level in the space, `contribute` where absent. `owner` reaches every tzTrack act on the space and makes nobody an owner: the space stays yours, and a member never shares it. A `view` member can list, search, and read unrestricted issues and get their attachments."
      },
      "remove": {
        "type": "string",
        "maxLength": 320,
        "description": "The sign-in email address of the member to remove. Refused with `add`."
      },
      "restricted": {
        "type": "boolean",
        "description": "With `add`: allow restricted issues at `contribute` or `owner` when true. `view`, `report` and bounded members read none. Omission keeps a standing member's value; a new member defaults to false. Refused without `add`."
      },
      "accounts": {
        "type": [
          "array",
          "null"
        ],
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "minItems": 1,
        "maxItems": 19,
        "uniqueItems": true,
        "description": "With `add`: null, or 1 to 19 distinct account ids. The member's own account is added to the list. A list bounds access to issues holding a report recorded under one of those accounts, with no restricted issue. Null clears the bound; omission keeps the standing value. Refused without `add`."
      }
    }
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "space",
      "members",
      "users"
    ],
    "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."
      },
      "space": {
        "type": "string",
        "description": "The space shared."
      },
      "members": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "account",
            "address",
            "level",
            "added_at",
            "role",
            "restricted"
          ],
          "properties": {
            "account": {
              "type": "string",
              "description": "The member's account identifier, the one its claims and its `person:<account>` carry."
            },
            "address": {
              "type": "string",
              "description": "The sign-in email address the member was added by."
            },
            "level": {
              "type": "string",
              "enum": [
                "view",
                "report",
                "contribute",
                "owner"
              ]
            },
            "added_at": {
              "type": "string",
              "description": "The instant the member was added, or its level last moved."
            },
            "role": {
              "type": "string",
              "description": "The level's name: `view` is Viewer, `report` Reporter, `contribute` Contributor and `owner` Admin. Admin is a member, not the space's owner."
            },
            "restricted": {
              "type": "boolean",
              "description": "Whether the member can read restricted issues at its level. False for a bounded member. A row written before this setting follows its level: `contribute` and `owner` admit restricted issues; `view` and `report` do not."
            },
            "accounts": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "The accounts bounding this member's access, including its own. Present only for a bounded member, which reads only issues holding a report recorded under one of these accounts and never restricted issues."
            }
          }
        },
        "description": "The members of the space after the call, oldest first; you, the owner, are not among them."
      },
      "users": {
        "type": "integer",
        "minimum": 1,
        "description": "The members plus you."
      },
      "mail": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "account",
            "sent"
          ],
          "properties": {
            "account": {
              "type": "string",
              "description": "The member's account identifier, as in members[].account."
            },
            "sent": {
              "type": "boolean",
              "description": "True when the platform hands the email to its sender. False when it cannot hand it off. The share takes effect either way, and delivery is unconfirmed."
            }
          },
          "additionalProperties": false
        },
        "description": "One entry for the member this call added or removed, or whose level, account bound or restricted-issue access it changed. An unchanged call returns an empty array."
      }
    }
  }
}
```

## 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/)
