Sign in with Google: the website trades the code Google gave it. Signs in to the account linked to that Google account, else links the account with the same email when it has no password (one with a password answers 409), else creates one (201) with no password. With `invitationToken` it also accepts that invitation: the Google account's email must be the invited address, a new account gets no organization of its own, and the session acts for the inviting organization. No credential; the website calls this from its servers

post/v1/auth/google

Request

  • Base URL: https://api.evictionsapi.com
  • URL: https://api.evictionsapi.com/v1/auth/google
  • Auth: none required

Request body

codestring required
codeVerifierstring required
redirectUristring required
invitationTokenstring

Response

A new session, with the user and organization (201 when the account was just created). An Idempotency-Key header is ignored.

tokenstring required

A session token (ess_...), shown here only. Send it as Authorization: Bearer.

roleunknown required
permissionsstring[] required

What the person may change in that organization. Reading needs no permission. Empty without an organization.

Changes

No recorded changes to this operation across all 1 revision of this API.