Sign in

Create send-as alias

documented

Creates a custom "from" send-as alias.

POST /gmail/v1/users/{userId}/settings/sendAsUsersno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://gmail.googleapis.com/gmail/v1/users/{{$user_id}}/settings/sendAs" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"sendAsEmail": "{{$sendAsEmail}}", "displayName": "{{$displayName}}", "replyToAddress": "{{$replyToAddress}}", "signature": "{{$signature}}", "isDefault": {{$isDefault}}, "treatAsAlias": {{$treatAsAlias}}, "smtpMsa": {"host": "{{$smtpHost}}", "port": {{$smtpPort}}, "username": "{{$smtpUsername}}", "password": "{{$smtpPassword}}", "securityMode": "{{$smtpSecurityMode}}"}}'
Create send-as alias · Gmail · OpenIntegrations