Show a Team

List all user's pending team membership invitations.


Method Uri Auth Permissions
GET /v1/invitations Bearer JWT-Token none

Headers

The API requires a header Accept and Authorization to be submitted with the request:

{
    "Accept": "application/json",
    "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..." 
}

Success Responses

Condition : All required data provided is valid and added to the request body.

Code : 200 Okay

Content example : Response will reflect back the entities:

[
  {
    "id": "5c9969e8-97a8-43f0-bf06-b0e1322ff44c",
    "team_id": "f8efff22-3ce8-4199-891e-c71fbef61ee2",
    "email": "email@stimuliz.com",
    "token": "ebjrlPjndfCVGQli",
    "created_at": "2020-08-11T20:35:09.000000Z",
    "updated_at": "2020-08-11T20:35:09.000000Z",
    "deleted_at": null
  }
]

Error Responses

Condition : If the user is not logged in or header data is imcomplete.

Code : 401 Unauthorized

Content example :

{
  "message": "Unauthenticated."
}