Invitations
The people asked to join an account by e-mail, each with the role the membership will hold. Whoever holds the mailed link reads what it is for with invitations:inspect and takes it up with invitations:accept; :resend mails a fresh link.
List invitations
An invitation to join the account, mailed to an address with a one-time link. Whoever holds the link reads what it is for with invitations:inspect and takes it up with invitations:accept — signed in as the invited address, or as a new user choosing a password. Accepting makes a member with the invitation's role and uses the invitation up. Listing, reading, sending and withdrawing invitations take the account.access section.
path Parameters
account_idId of the parent account.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: email asc. Sortable: none — this collection serves its documented order only.
filterAIP-160 subset (§8). Filterable: email, role, state. A field outside the list is INVALID_ARGUMENT.
List invitations › Responses
One page of invitations.
This page of invitations, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Create invitation
Invites somebody to join the account: send email, role and — for roles/sections — the grants. A mail goes to the address with a one-time link, valid for 7 days, that opens the invitation in the admin app; the link is in the mail only and never in a response. Nobody may invite with a role or a grant wider than their own: that is PERMISSION_DENIED. An address that belongs to a member, or already has a pending invitation, is ALREADY_EXISTS on email. Send a request_id to make the call safe to repeat: a repeat returns the first invitation and mails nothing.
path Parameters
account_idId of the parent account.
Create invitation › Request Body
emailThe address the invitation is mailed to, stored lowercase. One pending invitation per address: inviting it again, or inviting a member's address, is ALREADY_EXISTS. The list is ordered by it.
roleThe role the membership will hold once the invitation is accepted: roles/admin, roles/editor or roles/sections (see roles), or one of the account's own, accounts/{account}/roles/{role}. Nobody may invite with a role wider than their own: that is PERMISSION_DENIED.
grantsThe sections a roles/sections invitation grants, as {permission, level} — a section id from permissions and READ or WRITE. Empty, and refused when sent, under any other role. Nobody may grant a section they do not hold themselves.
request_idAn idempotency key you choose, at most 64 characters. Creating with a key already used in this account returns the invitation that key created, and mails nothing.
Create invitation › Responses
The created resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
emailThe address the invitation is mailed to, stored lowercase. One pending invitation per address: inviting it again, or inviting a member's address, is ALREADY_EXISTS. The list is ordered by it.
roleThe role the membership will hold once the invitation is accepted: roles/admin, roles/editor or roles/sections (see roles), or one of the account's own, accounts/{account}/roles/{role}. Nobody may invite with a role wider than their own: that is PERMISSION_DENIED.
grantsThe sections a roles/sections invitation grants, as {permission, level} — a section id from permissions and READ or WRITE. Empty, and refused when sent, under any other role. Nobody may grant a section they do not hold themselves.
inviterThe member who sent the invitation, as users/{user}; absent once that user no longer exists.
statePENDING until expire_time, then EXPIRED: the link no longer works, but the invitation stays listed for 30 days so it can be sent again with :resend — or withdrawn. An accepted invitation is gone.
expire_timeWhen the link stops working: 7 days after the invitation was sent, or sent again.
Get invitation
An invitation to join the account, mailed to an address with a one-time link. Whoever holds the link reads what it is for with invitations:inspect and takes it up with invitations:accept — signed in as the invited address, or as a new user choosing a password. Accepting makes a member with the invitation's role and uses the invitation up. Listing, reading, sending and withdrawing invitations take the account.access section.
path Parameters
account_idId of the parent account.
invitation_idId of the parent invitation.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get invitation › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
emailThe address the invitation is mailed to, stored lowercase. One pending invitation per address: inviting it again, or inviting a member's address, is ALREADY_EXISTS. The list is ordered by it.
roleThe role the membership will hold once the invitation is accepted: roles/admin, roles/editor or roles/sections (see roles), or one of the account's own, accounts/{account}/roles/{role}. Nobody may invite with a role wider than their own: that is PERMISSION_DENIED.
grantsThe sections a roles/sections invitation grants, as {permission, level} — a section id from permissions and READ or WRITE. Empty, and refused when sent, under any other role. Nobody may grant a section they do not hold themselves.
inviterThe member who sent the invitation, as users/{user}; absent once that user no longer exists.
statePENDING until expire_time, then EXPIRED: the link no longer works, but the invitation stays listed for 30 days so it can be sent again with :resend — or withdrawn. An accepted invitation is gone.
expire_timeWhen the link stops working: 7 days after the invitation was sent, or sent again.
Delete invitation
Withdraws an invitation: its link stops working at once, and the address may be invited again.
path Parameters
account_idId of the parent account.
invitation_idId of the parent invitation.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete invitation › Responses
Deleted. No body (§7).
Resend (invitation)
Mails the invitation again with a new link and a new 7 days — pending or expired alike — and answers the invitation. The previous link stops working. Sending it again hands its role out again, so it takes holding that role, as sending it did.
path Parameters
account_idId of the parent account.
invitation_idId of the parent invitation.
Resend (invitation) › Request Body optional
Resend (invitation) › Responses
The affected resource, or the method’s own response object (§10).
Accept (invitations)
Accepts an invitation: send the link's token. For a registered address, call it signed in as that address (Authorization: Bearer …) — another user's session is PERMISSION_DENIED, no session UNAUTHENTICATED. For an address nobody is registered with, send a password (at least 8 characters) and, if you like, firstname and lastname: the user is made, and the answer carries their first session token. Either way the answer has the user and the account they joined, and the invitation is used up.
Accept (invitations) › Request Body optional
Accept (invitations) › Responses
The affected resource, or the method’s own response object (§10).
Inspect (invitations)
Reads what an invitation link is for, without signing in: send the link's {"token": "…"}. Answers account_display_name, the invited email, the role the membership will hold, expire_time and user_exists — whether the address is registered, which decides how it is accepted. A link that is wrong, expired, withdrawn or already used is NOT_FOUND, all alike.
Inspect (invitations) › Request Body optional
Inspect (invitations) › Responses
The affected resource, or the method’s own response object (§10).