List messages
developed⚡ superfastLists the messages in the user's mailbox.
GET /gmail/v1/users/{userId}/messagesUsersv e5d10984 · auto-generated6 runsVersion e5d109848e · Initial generation (1 attempt) · by the agent · build 981d14a2 on isolatePropose a change
Input schema
type:object
additionalProperties:false
0:user_id
Output schema
type:object
0:messages
1:resultSizeEstimate
Possible errors
- CREDENTIALS_REQUIRED
OAuth2 credentials are missing or not yet authorized.
- INVALID_INPUT
One or more input parameters are invalid (e.g. limit out of range).
- NOT_FOUND
The specified user was not found.
- RATE_LIMITED
Too many requests were sent in a short period.
- API_ERROR
An unexpected error was returned by the Gmail API.