Create a Gmail inbox trigger.
`project_integration_id` must be an authorised Google integration in this project — authorise one first, because the trigger cannot create the grant. The filters narrow which messages fire it: `label_ids`, `sender_filters` and `subject_contains` are combined, so a message must satisfy all of the ones you set. `label_ids` and `subject_contains` are lists, and a message matches when any entry in the list matches.
Request
This endpoint expects an object.
namestringRequired1-63 characters
target_typeenumRequired
Target resource type for trigger execution.
target_idstringRequiredformat: "uuid"
project_integration_idstringRequiredformat: "uuid"
descriptionstring or nullOptional<=255 characters
statusenumOptional
Lifecycle status for triggers.
label_idslist of strings or nullOptional
sender_filterslist of objects or nullOptional
subject_containslist of strings or nullOptional
payload_mappingmap from strings to any or nullOptional
task_agent_revision_idstring or nullOptionalformat: "uuid"
Response
Gmail inbox trigger created successfully
target_typeenum
Target resource type for trigger execution.
target_idstringformat: "uuid"
statusenum
Lifecycle status for triggers.
project_integration_idstringformat: "uuid"
integration_auth_principal_idstringformat: "uuid"
created_by_user_idstringformat: "uuid"
task_agent_revision_idstring or nullOptionalformat: "uuid"
trigger_type"gmail_inbox"OptionalDefaults to gmail_inbox
descriptionstring or nullOptional
mailbox_watch_idstring or nullOptionalformat: "uuid"
label_idslist of strings or nullOptional
sender_filterslist of objects or nullOptional
subject_containslist of strings or nullOptional
payload_mappingmap from strings to any or nullOptional
health_stateenumOptionalDefaults to healthy
health_reasonstring or nullOptional
watch_statusenum or nullOptional
Lifecycle/health status for Gmail mailbox watches.
watch_expiration_atstring or nullOptional