create an invite.md

Create an invite

Management API · User Management

POST https://app.mk.io/api/v1/organization/invites

This endpoint allows you to create a new invitation which will grant a user access to this organization's resources within MK.IO.

You can include a comment which will be visible against this user's record when they accept the invitation, e.g. "Contractor for project Delphi".

RBAC Capability Required: core.invite.create

Authentication

Request body

Content type: application/json

Example request

curl -X POST "https://app.mk.io/api/v1/organization/invites" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "spec": {
    "comment": "string",
    "email": "string",
    "teams": [
      "string"
    ]
  }
}'

Responses

201 — OK

400 — Bad Request

401 — Unauthorized

403 — Forbidden

404 — Not Found

409 — Conflict

429 — Too Many Requests

500 — Internal Server Error