Generated by API Evangelist
Written by API Evangelist tooling for Google's API. It is a proposal applied on top of the contract, not a document Google publishes.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Google Gmail Messages API
version: 1.0.0
extends: openapi/google-messages-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-15'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 3
- target: $.paths['/gmail/v1/users/{userId}/messages/{id}/untrash'].post
update:
x-apievangelist-phrasing:
intent: Remove a message from the trash
effect: write
questions:
- How do I restore an email from the trash?
- Can I untrash a single message?
instructions:
- text: Untrash message {id} for user {userId}.
slots:
id: path.id
userId: path.userId
- text: Restore the trashed email {id} back to the inbox.
slots:
id: path.id
method: generated
generated: '2026-11-15'
- target: $.paths['/gmail/v1/users/{userId}/messages/{id}/modify'].post
update:
x-apievangelist-phrasing:
intent: Change labels on a message
effect: write
questions:
- How do I move an email to a different label?
- Can I add or remove labels on a message?
instructions:
- text: Modify labels on message {id} for user {userId}.
slots:
id: path.id
userId: path.userId
- text: Apply new labels to email {id}.
slots:
id: path.id
method: generated
generated: '2026-11-15'
- target: $.paths['/gmail/v1/users/{userId}/messages/send'].post
update:
x-apievangelist-phrasing:
intent: Send an email
effect: write
questions:
- How do I send an email through Gmail programmatically?
- Can I send a message to recipients in the To, Cc and Bcc headers?
instructions:
- text: Send this email for user {userId}.
slots:
userId: path.userId
- text: Send a message to the recipients in the To, Cc and Bcc headers.
method: generated
generated: '2026-11-15'
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.