Create Gmail Inbox Trigger

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.

Authentication

AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

OR
AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

Path parameters

org_idstringRequiredformat: "uuid"
The organization ID
project_idstringRequiredformat: "uuid"
The project ID

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
idstringformat: "uuid"
target_typeenum
Target resource type for trigger execution.
target_idstringformat: "uuid"
namestring
statusenum
Lifecycle status for triggers.
project_integration_idstringformat: "uuid"
integration_auth_principal_idstringformat: "uuid"
email_addressstring
createdstring
modifiedstring
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

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
500
Internal Server Error
503
Service Unavailable Error