Invite

Module endpoints

GET /invites

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

Returns a paginated list of invites.

Name

Type

Example

code

= in nin

filter[code]=I12345678

expiredAt

gte lte

filter[expiredAt]=gte:2020-03-05

invitedEmail

= in nin

filter[invitedEmail][email protected]

invitedUserId

=

filter[invitedUserId]=in:fc78d28f-a8dd-49de-a22f-722fe3bd26c7,7938e446-1c77-4513-8cb0-8b1f2e9f47b9

inviterUserId

= in nin

filter[inviterUserId]=7938e446-1c77-4513-8cb0-8b1f2e9f47b9

status

= in nin

filter[status]=nin:canceled

type

=

filter[type]=invite

GET /invites/:code

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

Gets the invite details of the given code.

GET /invites/:code/validate

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

Validates the invite with the given code.

POST /invites

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

Creates a new invite.

Field

Type

Required

Description

email

string

false

Email intended for the invitation.

inviterUserId

string

false

User who generated the invitation. Format uuid.

POST /invites/:code/cancel

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

Cancels the invite of the given code.

POST /invites/send

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

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

Field

Type

Required

Description

email

string array

true

A single or an array of emails to who is intended for invitation.

inviterUserId

string

false

User who generated the invitation. Format uuid.

Last updated

Was this helpful?