viakite
Dashboard

API/Organizations/Invite people by email

Invite people by email

POST/v1/orgs/{org}/invites

Up to 50 emails, with a role, a group or both. An earlier pending invite to the same email is replaced. Invites last 7 days.

Secret keyNeeds members.inviteapi.vk.viabio.me

Path parameters

orgstringrequired
The organization's id (org_…).

Body

emailsstring[]requiredup to 50 items
rolestring
A built-in role key or a custom role id.
group_idstring

Responses

The invites sent.

dataInvite[]required
Role is a built-in role key or a custom role id.
Show 11 fields
idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
org_idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
emailstring · emailrequired
rolestring
group_idstring
statusstringrequired
pendingexpired
invited_by_idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
expires_atstring · date-timerequired
A time in UTC, ISO 8601.
created_atstring · date-timerequired
A time in UTC, ISO 8601.
org_namestring
org_slugstring
next_cursorstring
Example response
1{
2 "data": [
3 {
4 "id": "inv_01JD8Q2M4W9XK3T7B5",
5 "org_id": "org_01JD8Q2M4W9XK3T7B5",
6 "email": "ada@example.com",
7 "role": "rol_01JD8Q2M4W9XK3T7B5",
8 "group_id": "grp_01JD8Q2M4W9XK3T7B5",
9 "status": "pending",
10 "invited_by_id": "id_01JD8Q2M4W9XK3T7B5",
11 "expires_at": "2026-11-21T09:30:00Z",
12 "created_at": "2026-11-21T09:30:00Z",
13 "org_name": "string",
14 "org_slug": "string"
15 }
16 ],
17 "next_cursor": "string"
18}

Errors

Every error has the same shape: error.code, a message for people and details.

StatusCode
409already_member
402member_limit
422company_emails_only
403owner_required
422validation_error