Invite

Module endpoints

GET /invites

GET https://api.slyk.io/invites

Returns a paginated list of invites.

GET /invites/:code

GET https://api.slyk.io/invites/:id

Gets the invite details of the given code.

{
  "data": {
    "code": "I87654321",
    "createdAt": "2019-07-17T11:39:26.732Z",
    "expiredAt": "2019-08-16T11:39:26.732Z",
    "invitedEmail": "foo@bar.com",
    "invitedUserId": null,
    "inviterUserId": null,
    "metadata": {},
    "status": "accepted",
    "type": "invite",
    "updatedAt": "2019-07-17T11:39:26.732Z",
    "url": "https://example.slyk.io/i/I87654321"
  }
}

GET /invites/:code/validate

GET https://api.slyk.io/invites/:code/validate

Validates the invite with the given code.

{
  "data": {
    "referrerName": "Waldo Fred"
  }
}

POST /invites

POST https://api.slyk.io/invites

Creates a new invite.

POST /invites/:code/cancel

POST https://api.slyk.io/invites/:code/cancel

Cancels the invite of the given code.

{
  "data": {
    "code": "I12345678",
    "createdAt": "2019-07-17T11:39:26.732Z",
    "expiredAt": "2019-08-16T11:39:26.732Z",
    "invitedEmail": "foo@biz.com",
    "invitedUserId": null,
    "inviterUserId": null,
    "metadata": {},
    "status": "canceled",
    "type": "invite",
    "updatedAt": "2019-07-17T11:39:26.732Z",
    "url": "https://early.slyk.io/i/I12345678"
  }
}

POST /invites/send

POST http://api.slyk.io/invites/send

Sends the invite directly to the emails to who is intended.

Last updated