Capability Sources

Create a Gmail user label

Changed on

Creates a custom user label with its name and optional visibility settings. Requires gmail.labels or gmail.modify. Uses only the calling member's selected connected Google account. Perform writes only when explicitly requested by the user; capability discovery or selection is not authorization. Never automatically retry an uncertain write.

post/v1/capabilities/google-workspace/gmail-labels

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/capabilities/google-workspace/gmail-labels
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Request body

namestring required

User label name.

messageListVisibility'show' | 'hide'
labelListVisibility'labelShow' | 'labelShowIfUnread' | 'labelHide'

Response

Google's validated response.

idstring required
namestring required
type'user' | 'system' required

Changes

    • info

      response property details/items/path/items/ list-of-types was narrowed by removing types number from media type application/json of response 400

    • info

      added the optional property to the response with the status