(bug 5231)

Improve the 'api' role to be a proper role.