레퍼런스HTTP APIMembers

Invites of the workspace, newest first

GET
/v1/invites

Each invite's status is pending, accepted, revoked or expired. Tokens are never returned.

Auth: cookie session only; no scope.

Authorization

cookieSession
cookie__Host-werft_session<token>

For the web console: the browser session cookie set by POST /v1/auth/login. It holds the scopes of the user's workspace role (owner: all; admin and member: all but sessions:recover). Requests other than GET must also send X-Requested-With: werft-web.

Response Body

Success

application/json
  1. response
items*array<>
Itemsitems <= 200
Example Request
curl -X GET 'https://example.com/v1/invites'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",      "email": "user@example.com",      "role": "owner",      "invited_by": "0fdabe0c-eb7c-440a-96d2-2c65906c3777",      "status": "pending",      "expires_at": "2019-08-24T14:15:22Z",      "accepted_at": "2019-08-24T14:15:22Z",      "revoked_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z"    }  ]}