Skip to content
Sign in Create account

Post invitations

POST /api/v1/organisation/invitations

Manage the authenticated user’s organization profile, members, invitations, or deletion schedule.

Authenticate with a portal session token.

Request body

application/json OrggrcOrganisationInvite

  • email string (email) required
    Length: 1 to 255 characters. Example: "invitee@example.test"
  • role string or null
    One of: "admin", "developer", "security", "auditor", "billing", "support", "compliance-officer", "service", "member". Length: at most 64 characters. Example: "member"

Example

{
  "email": "invitee@example.test",
  "role": "member"
}

Responses

200 Pending invitations return 200. email_sent reports whether the mail send call completed; the invitation remains pending if it did not.

application/json object

  • invitation object required

    Any keys are accepted.

  • email_sent boolean required

    Whether the mail send call completed without throwing; this does not confirm inbox delivery.

  • message string required

Generated sample

{
  "invitation": {},
  "email_sent": true,
  "message": "string"
}
201 A new invitation was created. email_sent reports whether the mail send call completed; the invitation remains pending if it did not.

application/json object

  • invitation object required

    Any keys are accepted.

  • email_sent boolean required

    Whether the mail send call completed without throwing; this does not confirm inbox delivery.

  • message string required

Generated sample

{
  "invitation": {},
  "email_sent": true,
  "message": "string"
}
401 Authentication is required or invalid.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
403 The authenticated user is not permitted to perform this operation.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
404 The requested resource was not found.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
409 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 The request failed validation.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
429 invite_limit_reached when the organization has created 150 invitations in the last 24 hours. The body is {"error":"invite_limit_reached","message":"Daily invitation limit reached. Try again later."}. Other 429 responses on this route may still be the shared error object.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"

text/html string