read_account #

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/read_account, with a bearer credential and the action's payload as the JSON body. It also accepts GET. An MCP connection lists this action as the tool read_account.

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 #

This action reads the account your connection represents. The basic record gives its sign-in identities, standing and products. The deletion lock is given as delete_lock, or null.

Each sign-in identity gives its provider and subject. The account's standing is active or suspended.

A signed-in tool or a browser session also gets the provider-verified address, grants, signed_in_at, and passkeys. A bearer session's sign-in time is null. The passkey counts give held for this host and stranded for another host. The passkeys member is null where the host offers no passkey sign-in.

Of those four fields, an authorized computer's token receives address. The platform credential and other minted tokens receive none of the four. Your own sign-in or an authorized computer's token also gets image_generation, the month's image use, when its usage row can be read.

More about this action #

Over MCP, product_states says whether your account holds each product, and detail says what tzteam is.

A session credential, a browser session or an authorized computer's token also gets image_generation: this UTC month's used and free_images, with its next reset at resets_at. Other minted tokens and the platform credential receive no such member. If its usage row cannot be read, the member is omitted.

Access and action metadata #

{
  "name": "read_account",
  "resource": "account",
  "tier": "observe",
  "surface": "account",
  "addresses": [
    "tzcloud",
    "tztools"
  ],
  "admits": [
    "device_sign_in"
  ],
  "clients": [
    "bearer",
    "browser_session"
  ],
  "summary": "The connected account's record gives its standing. A session credential or browser session also receives `address`, `grants`, `signed_in_at`, and `passkeys`. The provider-verified `address` is null where none is held. A browser session's `signed_in_at` is its API cookie's sign-in instant, so the page can offer a sign-in link when the freshness window has passed. A bearer session's `signed_in_at` is null. `passkeys` gives the counts `held` and `stranded`, or null where the host offers no passkey ceremony.\n\nOf those four fields, an authorized computer's token receives `address`. The platform credential and other minted tokens receive none of the four.\n\nA session credential, a browser session or an authorized computer's token also receives `image_generation` when its usage row can be read. It holds this UTC month's `used` and `free_images` and the next reset at `resets_at`.",
  "annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "openWorldHint": false,
    "idempotentHint": true
  }
}

MCP catalog entry #

{
  "name": "read_account",
  "title": "Read account",
  "tier": "observe",
  "scenario": "CHI-L0-04",
  "summary": "This action reads the account your connection represents. The basic record gives its sign-in identities, standing and products. The deletion lock is given as `delete_lock`, or null.\n\nEach sign-in identity gives its provider and subject. The account's standing is active or suspended.\n\nA signed-in tool or a browser session also gets the provider-verified `address`, `grants`, `signed_in_at`, and `passkeys`. A bearer session's sign-in time is null. The passkey counts give `held` for this host and `stranded` for another host. The `passkeys` member is null where the host offers no passkey sign-in.\n\nOf those four fields, an authorized computer's token receives `address`. The platform credential and other minted tokens receive none of the four. Your own sign-in or an authorized computer's token also gets `image_generation`, the month's image use, when its usage row can be read.",
  "owners": [
    "MAPI-03",
    "WEB-L0-16",
    "ACB-L0-92",
    "ACB-L0-76"
  ]
}

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","account"]
/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/detail Over MCP alone: one sentence saying what tzteam is. Absent on the HTTP route.

Type: string
/properties/account Type: object
Required fields: ["id","created_at","standing","identities","synthetic","unbilled"]
/properties/account/properties/id Type: string
/properties/account/properties/created_at Type: string
/properties/account/properties/standing Type: string
/properties/account/properties/identities Type: array
/properties/account/properties/identities/items Type: object
Required fields: ["provider","subject"]
/properties/account/properties/identities/items/properties/provider Type: string
/properties/account/properties/identities/items/properties/subject Type: string
/properties/account/properties/identities/items/properties/address The address the provider verified when the identity was bound, with letter case kept; null if absent or unverified. For an emailed-code identity, it is the code destination and equals subject. A browser session receives this member on every identity over the wire. Every other credential receives no such member over the wire or MCP. Read anew on each call, with identities kept in binding order. Use it to display the sign-in method's address.

Type: ["string","null"]
/properties/account/properties/profiles The products your account holds under the product rule, one item per product, each by its product word, tzcloud for tzCloud. Every account holds tzcloud and tztrack. Your account holds each invite-only product where it is a member of the invite group or an operator account, or once the product is no longer invite-only. tzteam is tzTeam access, always on and managed by tzTeam, with no tools on the MCP server.

Type: array
/properties/account/properties/profiles/items Type: object
Required fields: ["product"]
Additional properties: false
/properties/account/properties/profiles/items/properties/product Type: string
/properties/account/properties/uses_tzcloud True if this account holds at least one application, excluding deleted applications; false otherwise. Omitted if that read fails.

Type: boolean
/properties/account/properties/product_states Over MCP alone: one item for each product your account can see, held saying whether your account holds it. Absent on the HTTP route.

Type: array
/properties/account/properties/product_states/items Type: object
Required fields: ["product","held"]
Additional properties: false
/properties/account/properties/product_states/items/properties/product Type: string
/properties/account/properties/product_states/items/properties/held Type: boolean
/properties/account/properties/synthetic true on a synthetic account, a billed test fixture excluded from product analytics, the estate's balance figures and the count of builder accounts; false on every other account.

Type: boolean
/properties/account/properties/unbilled true on an account a super-admin has marked unbilled, the company's own or a complimentary one, free of the per-account application limits and never charged; false on every other account.

Type: boolean
/properties/account/properties/delete_lock The reason and set time for the account's deletion lock. Null if the account is unlocked.

Type: ["object","null"]
Required fields: ["reason","set_at"]
Additional properties: false
/properties/account/properties/delete_lock/properties/reason The reason given when the lock was set.

Type: string
/properties/account/properties/delete_lock/properties/set_at When the lock was set, in ISO 8601 format in UTC to the millisecond.

Type: string
/properties/account/properties/address The provider-verified address an identity of the account carries, or null; returned to the session credential, the browser session, and an authorized computer's token alone.

Type: ["string","null"]
/properties/account/properties/grants The grants on the acting credential. Only a browser session or a signed-in tool receives this member. An operator session can carry super_admin. A device sign-in can carry device_sign_in.

Type: array
/properties/account/properties/grants/items Type: string
/properties/account/properties/signed_in_at The sign-in instant the credential carries, ISO 8601: the API cookie's own for a browser session, null for a bearer at this revision; returned to the session kinds alone, so a page renders a sign-in link once the freshness window has passed.

Type: ["string","null"]
/properties/account/properties/passkeys The account's passkey standing: two counts and nothing of a credential — no identifier, name, or date. A page and a connected tool read whether a passkey is set without the passkey page's fresh-session read. It is null where the platform serves no passkey ceremony on this host. It is returned to the session kinds alone.

Type: ["object","null"]
Required fields: ["held","stranded"]
Additional properties: false
/properties/account/properties/passkeys/properties/held How many of the account's passkeys sign in on this host: the ones registered under the current relying-party identifier.

Type: integer
Minimum: 0
/properties/account/properties/passkeys/properties/stranded How many of the account's passkeys do not sign in on this host: the ones registered for another host, or before the host was recorded; no browser offers them here, and the passkey page removes them.

Type: integer
Minimum: 0
/properties/account/properties/setup_mail_sent Whether the account's setup email was sent: true once every addressed send of it was accepted by the provider, false otherwise, a claim that sent nothing among it. Returned to the session kinds alone, so the home's phone card says the setup prompt was emailed only where it was; left out where it could not be read.

Type: boolean
/properties/account/properties/account_picture_served Whether the account picture's acts are served, read at each call. Always present for a browser session and absent for every other credential. True only when account_picture reads on; false for off, an absent row, an invalid value, no status record or a failed read. A hint for the page: each act still checks the setting itself and keeps its own refusals.

Type: boolean
/properties/account/properties/address_chosen True when a sign-in method of the account still carries the owner's chosen address verified, compared without regard to case, and that choice supplies the account's sign-in address. False if no choice was made or no verified address still matches it, including when no verified address remains. Always present for a browser session and absent for every other credential.

Type: boolean
/properties/account/properties/appearance The account's Appearance: system follows the device, light or dark holds that look on every Turn Zero screen the person signs in to. system where the account never chose. Always present for a browser session and absent for every other credential.

Type: string
Allowed values: ["system","light","dark"]
/properties/account/properties/image_generation Your account's Image Gen use this UTC month. Image Gen is listed only on the turnzero connection, the MCP address at the platform's own origin. A signed-in session or an authorized computer's token receives this member when its usage row can be read. Images past free_images draw the account's balance.

Type: object
Required fields: ["used","resets_at"]
/properties/account/properties/image_generation/properties/used The account's images counted this UTC month: delivered images and calls whose give-back failed.

Type: integer
/properties/account/properties/image_generation/properties/cap The former plans-model limit. Current responses omit this member.

Type: integer
/properties/account/properties/image_generation/properties/resets_at The first instant of the next UTC month, as an ISO 8601 instant.

Type: string
/properties/account/properties/image_generation/properties/free_images The account's free images for this UTC month.

Type: integer

Complete payload contract #

{
  "request": {
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "account"
    ],
    "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."
      },
      "detail": {
        "type": "string",
        "description": "Over MCP alone: one sentence saying what `tzteam` is. Absent on the HTTP route."
      },
      "account": {
        "type": "object",
        "required": [
          "id",
          "created_at",
          "standing",
          "identities",
          "synthetic",
          "unbilled"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "standing": {
            "type": "string"
          },
          "identities": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "provider",
                "subject"
              ],
              "properties": {
                "provider": {
                  "type": "string"
                },
                "subject": {
                  "type": "string"
                },
                "address": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The address the provider verified when the identity was bound, with letter case kept; null if absent or unverified. For an emailed-code identity, it is the code destination and equals `subject`. A browser session receives this member on every identity over the wire. Every other credential receives no such member over the wire or MCP. Read anew on each call, with identities kept in binding order. Use it to display the sign-in method's address."
                }
              }
            }
          },
          "profiles": {
            "type": "array",
            "description": "The products your account holds under the product rule, one item per product, each by its product word, `tzcloud` for tzCloud (ACB-L0-76). Every account holds `tzcloud` and `tztrack`. Your account holds each invite-only product where it is a member of the invite group or an operator account, or once the product is no longer invite-only. `tzteam` is tzTeam access, always on and managed by tzTeam, with no tools on the MCP server.",
            "items": {
              "type": "object",
              "required": [
                "product"
              ],
              "properties": {
                "product": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "uses_tzcloud": {
            "type": "boolean",
            "description": "True if this account holds at least one application, excluding deleted applications; false otherwise. Omitted if that read fails."
          },
          "product_states": {
            "type": "array",
            "description": "Over MCP alone: one item for each product your account can see, `held` saying whether your account holds it. Absent on the HTTP route.",
            "items": {
              "type": "object",
              "required": [
                "product",
                "held"
              ],
              "properties": {
                "product": {
                  "type": "string"
                },
                "held": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          "synthetic": {
            "type": "boolean",
            "description": "true on a synthetic account, a billed test fixture excluded from product analytics, the estate's balance figures and the count of builder accounts; false on every other account (ACB-L0-79; MAPI-02)."
          },
          "unbilled": {
            "type": "boolean",
            "description": "true on an account a super-admin has marked unbilled, the company's own or a complimentary one, free of the per-account application limits and never charged; false on every other account (ACB-L0-84)."
          },
          "delete_lock": {
            "type": [
              "object",
              "null"
            ],
            "description": "The reason and set time for the account's deletion lock. Null if the account is unlocked.",
            "required": [
              "reason",
              "set_at"
            ],
            "properties": {
              "reason": {
                "type": "string",
                "description": "The reason given when the lock was set."
              },
              "set_at": {
                "type": "string",
                "description": "When the lock was set, in ISO 8601 format in UTC to the millisecond."
              }
            },
            "additionalProperties": false
          },
          "address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The provider-verified address an identity of the account carries, or null; returned to the session credential, the browser session, and an authorized computer's token alone (MAPI-03; MAPI-14; WEB-L0-17)."
          },
          "grants": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The grants on the acting credential. Only a browser session or a signed-in tool receives this member. An operator session can carry `super_admin`. A device sign-in can carry `device_sign_in`."
          },
          "signed_in_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "The sign-in instant the credential carries, ISO 8601: the API cookie's own for a browser session, null for a bearer at this revision; returned to the session kinds alone, so a page renders a sign-in link once the freshness window has passed (WEB-L0-16)."
          },
          "passkeys": {
            "type": [
              "object",
              "null"
            ],
            "required": [
              "held",
              "stranded"
            ],
            "additionalProperties": false,
            "properties": {
              "held": {
                "type": "integer",
                "minimum": 0,
                "description": "How many of the account's passkeys sign in on this host: the ones registered under the current relying-party identifier."
              },
              "stranded": {
                "type": "integer",
                "minimum": 0,
                "description": "How many of the account's passkeys do not sign in on this host: the ones registered for another host, or before the host was recorded; no browser offers them here, and the passkey page removes them."
              }
            },
            "description": "The account's passkey standing: two counts and nothing of a credential — no identifier, name, or date. A page and a connected tool read whether a passkey is set without the passkey page's fresh-session read. It is null where the platform serves no passkey ceremony on this host. It is returned to the session kinds alone (ACS-L0-10)."
          },
          "setup_mail_sent": {
            "type": "boolean",
            "description": "Whether the account's setup email was sent: true once every addressed send of it was accepted by the provider, false otherwise, a claim that sent nothing among it. Returned to the session kinds alone, so the home's phone card says the setup prompt was emailed only where it was; left out where it could not be read (ACS-L0-23; WEB-L0-17)."
          },
          "account_picture_served": {
            "type": "boolean",
            "description": "Whether the account picture's acts are served, read at each call. Always present for a browser session and absent for every other credential. True only when `account_picture` reads `on`; false for `off`, an absent row, an invalid value, no status record or a failed read. A hint for the page: each act still checks the setting itself and keeps its own refusals (WEB-L0-28)."
          },
          "address_chosen": {
            "type": "boolean",
            "description": "True when a sign-in method of the account still carries the owner's chosen address verified, compared without regard to case, and that choice supplies the account's sign-in address. False if no choice was made or no verified address still matches it, including when no verified address remains. Always present for a browser session and absent for every other credential."
          },
          "appearance": {
            "type": "string",
            "enum": [
              "system",
              "light",
              "dark"
            ],
            "description": "The account's Appearance: `system` follows the device, `light` or `dark` holds that look on every Turn Zero screen the person signs in to. `system` where the account never chose. Always present for a browser session and absent for every other credential."
          },
          "image_generation": {
            "type": "object",
            "required": [
              "used",
              "resets_at"
            ],
            "properties": {
              "used": {
                "type": "integer",
                "description": "The account's images counted this UTC month: delivered images and calls whose give-back failed."
              },
              "cap": {
                "type": "integer",
                "description": "The former plans-model limit. Current responses omit this member."
              },
              "resets_at": {
                "type": "string",
                "description": "The first instant of the next UTC month, as an ISO 8601 instant."
              },
              "free_images": {
                "type": "integer",
                "description": "The account's free images for this UTC month."
              }
            },
            "description": "Your account's Image Gen use this UTC month. Image Gen is listed only on the `turnzero` connection, the MCP address at the platform's own origin. A signed-in session or an authorized computer's token receives this member when its usage row can be read. Images past `free_images` draw the account's balance."
          }
        }
      }
    }
  }
}

Shared contracts #