Is there a way to modify user e-mail routing via the api?

204 Views Asked by At

I would like to be able to modify user-level e-mail routing via an API, but I can't seem to find a library that will permit this.

Am I missing something, or is this not possible?

2

There are 2 best solutions below

0
On

In case this is the aim of the OP, the admin API has support for managing routing

<atom:entry xmlns:atom='http://www.w3.org/2005/Atom' xmlns:apps="http://schemas.google.com/apps/2006">
<apps:property name='routeDestination' value='route-smtp.domain.com'/>
<apps:property name='routeRewriteTo' value='true'/>
<apps:property name='routeEnabled' value='true'/>
<apps:property name='bounceNotifications' value='true'/>
<apps:property name='accountHandling' value='can be either allAccounts | provisionedAccounts | unknownAccounts'/>
</atom:entry>
0
On

There isn't currently any way to setup user-level routing with the APIs. The closest thing would be to use the Email Settings API to setup forwarding. It isn't quite the same since the messages will still enter the user's Gmail account but it might work for your needs.