Organizations API
Invite a member
Create a pending invitation and send email. Rate limited per user (INVITE_RATE_LIMIT_MAX, default 10/hour). Requires org_admin or org_owner. Only org_owner can invite org_admin.
Authorization
bearerAuth AuthorizationBearer <token>
Project-scoped CLI token (sck_live_* or sck_test_*) for documented API operations that accept bearer authentication. Interactive browser operations may require a session cookie. Trigger keys (sck_trigger_* / legacy job_*) are accepted only by job trigger endpoints.
In: header
Request Body
application/json
email*string
Format
emailrole*string
Value in
"org_owner" | "org_admin" | "project_admin" | "project_editor" | "project_viewer"selectedProjects?array<>
Required for project_admin and project_editor. Must be active projects in the current organization.
Response Body
application/json
application/json
application/json
curl -X POST "https://demo.supercheck.dev/api/organizations/members/invite" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "role": "org_owner" }'{
"success": true,
"data": {
"id": "string",
"email": "string",
"role": "string",
"status": "string",
"expiresAt": "2019-08-24T14:15:22Z",
"inviteLink": "string",
"emailSent": true
}
}Empty
{
"error": "Unauthorized"
}{
"error": "string"
}Empty
Empty