Gamma API

Get an invitation to me

GET
/api/account/invitations/{id}

Any status. Refused with 403 until the caller's email is verified, when it was sent to another address, or when it is for that address's account in another region.

Who may call it: Any signed-in user, for their own account. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

id*string

Response Body

OK.

application/json
  1. response

An invitation addressed to the caller's email.

id*string
email*string
role*|

The role it gives on accepting.

status*string

One past expiresAt stays pending.

Value in"pending""accepted""rejected""canceled"
expiresAt*string
Formatdate-time
createdAt*string
Formatdate-time
organizationId*string
organizationName*string
organizationSlug*string
organizationLogo*string|null
projectId*|

The project it invites to, as a guest; null for the organization itself.

projectName*|

Null when not to a project, or the project is gone.

inviterName*string|null
inviterEmail*string
Example Request
curl -X GET 'http://localhost:3000/api/account/invitations/string'
Example Response
{  "id": "string",  "email": "string",  "role": "string",  "status": "pending",  "expiresAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "organizationId": "string",  "organizationName": "string",  "organizationSlug": "string",  "organizationLogo": "string",  "projectId": "string",  "projectName": "string",  "inviterName": "string",  "inviterEmail": "string"}