Show an Invitation

Show an invitation if it belongs to the user.


Method Uri Auth Permissions
GET /v1/invitations/{uuid} 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": "7f1bc194-953e-45da-9674-7a1af4fe6dc9",
  "email": ...,
  "token": "nHX7SkYg7GkGPNfb",
  "user": {
    "id": "7be04b61-c774-4b7a-bb04-b7beaf751bb4",
    "firstName": ...,
    "lastName": ...,
    ...
  }
}

Error Responses

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

Code : 401 Unauthorized

Content example :

{
  "message": "Unauthenticated."
}

Condition : If the invite does not exist or is not connected to the current user.

Code : 404 Not Found

Content example :

{
  "message": "No query results for model [App\Models\Invitation]."
}