Api::V1::InvitationsController API

Invitations

Get user invitations

GET /api/v1/invitations

Parameters

Name Description
token token
status accepted, cancelled, rejected, pending

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

GET /api/v1/invitations?token=foobar65

Query Parameters

token: foobar65

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE
Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY
Content-Type: application/json; charset=utf-8
ETag: W/"63aaeeb1c6dba3af4168726d2185b2e5"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: f725d3b1-bee6-4a70-98ea-72fdb3ec0008
X-Runtime: 0.012379
Content-Length: 171

Status

200 OK

Body

{
  "invitations": [
    {
      "id": 4,
      "invitation_mode": "SMS",
      "phone_number": "+33612345678",
      "status": "pending",
      "entourage_id": 28,
      "title": "Foobar",
      "inviter": {
        "display_name": "John D."
      }
    }
  ]
}