Availability

Represents a user's current availability information in Google Chat, including their state (for example, Active, Away, Do Not Disturb) and any custom status.

Google WorkspaceTeam ChatMessagingCollaborationChat AppsSpacesSlash CommandsBots

Properties

Name Type Description
state string Output only. The user's current availability state.
customStatus object Optional. The user's custom status.
name string Identifier. Resource name of the user's availability. Format: `users/{user}/availability` `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`
doNotDisturbMetadata object Output only. Metadata if the user state is set to DO_NOT_DISTURB.
View JSON Schema on GitHub

JSON Schema

google-chat-integrations-for-workspace-availability-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-chat-integrations-for-workspace/json-schema/google-chat-integrations-for-workspace-availability-schema.json",
  "title": "Availability",
  "description": "Represents a user's current availability information in Google Chat, including their state (for example, Active, Away, Do Not Disturb) and any custom status.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-chat-integrations-for-workspace-users-api-openapi.yml#/components/schemas/Availability",
  "properties": {
    "state": {
      "type": "string",
      "description": "Output only. The user's current availability state.",
      "readOnly": true,
      "enum": [
        "STATE_UNSPECIFIED",
        "ACTIVE",
        "IDLE",
        "AWAY",
        "DO_NOT_DISTURB"
      ]
    },
    "customStatus": {
      "$ref": "#/$defs/CustomStatus",
      "description": "Optional. The user's custom status."
    },
    "name": {
      "description": "Identifier. Resource name of the user's availability. Format: `users/{user}/availability` `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`. The user's email address or `me` can also be used as an alias to refer to the caller. For example, `users/user@example.com` or `users/me`.",
      "type": "string"
    },
    "doNotDisturbMetadata": {
      "$ref": "#/$defs/DoNotDisturbMetadata",
      "description": "Output only. Metadata if the user state is set to DO_NOT_DISTURB."
    }
  },
  "type": "object",
  "$defs": {
    "CustomEmoji": {
      "description": "Represents a [custom emoji](https://support.google.com/chat/answer/12800149).",
      "properties": {
        "name": {
          "description": "Identifier. The resource name of the custom emoji, assigned by the server. Format: `customEmojis/{customEmoji}`",
          "type": "string"
        },
        "payload": {
          "$ref": "#/$defs/CustomEmojiPayload",
          "description": "Optional. Input only. Payload data. Required when the custom emoji is created."
        },
        "emojiName": {
          "type": "string",
          "description": "Optional. Immutable. User-provided name for the custom emoji, which is unique within the organization. Required when the custom emoji is created, output only otherwise. Emoji names must start and end with colons, must be lowercase and can only contain alphanumeric characters, hyphens, and underscores. Hyphens and underscores should be used to separate words and cannot be used consecutively. Example: `:valid-emoji-name:`"
        },
        "temporaryImageUri": {
          "description": "Output only. A temporary image URL for the custom emoji, valid for at least 10 minutes. Note that this is not populated in the response when the custom emoji is created.",
          "readOnly": true,
          "type": "string"
        },
        "uid": {
          "type": "string",
          "description": "Output only. Unique key for the custom emoji resource.",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "CustomEmojiPayload": {
      "description": "Payload data for the custom emoji.",
      "properties": {
        "filename": {
          "type": "string",
          "description": "Required. Input only. The image file name. Supported file extensions: `.png`, `.jpg`, `.gif`."
        },
        "fileContent": {
          "format": "byte",
          "description": "Required. Input only. The image used for the custom emoji. The payload must be under 256 KB and the dimension of the image must be square and between 64 and 500 pixels. The restrictions are subject to change.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CustomStatus": {
      "description": "Represents a user's custom status in Google Chat. This includes a short text message with an optional emoji that a user sets to give more context about their availability.",
      "type": "object",
      "properties": {
        "text": {
          "description": "Required. The text of the custom status. This will be a string with maximum length of 64.",
          "type": "string"
        },
        "ttl": {
          "type": "string",
          "format": "google-duration",
          "description": "Input only. The time-to-live duration after which the custom status expires."
        },
        "expireTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "The timestamp when the custom status expires."
        },
        "emoji": {
          "$ref": "#/$defs/Emoji",
          "description": "Required. The emoji of the custom status. Only Unicode emojis are supported; custom emojis are not supported."
        }
      }
    },
    "DoNotDisturbMetadata": {
      "description": "Metadata associated with the `DO_NOT_DISTURB` availability state, specifying when the state is set to expire.",
      "type": "object",
      "properties": {
        "expirationTime": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB. This can be maximum of 1 year in the future.",
          "format": "google-datetime"
        }
      }
    },
    "Emoji": {
      "properties": {
        "unicode": {
          "type": "string",
          "description": "Optional. A basic emoji represented by a unicode string."
        },
        "customEmoji": {
          "$ref": "#/$defs/CustomEmoji",
          "description": "A custom emoji."
        }
      },
      "type": "object",
      "description": "An emoji that is used as a reaction to a message."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-chat-integrations-for-workspace-availability"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.