invites

Create

Invite an email or wallet address into the tenant. Provide exactly one of email or wallet_address. Any member of the tenant may send an invite; callers without tenant authority always invite at the "user" role (passing another role returns 403). A wallet invite admits that address on first SIWE login of an invite-only tenant. Optional group_ids (max 20) also add the invitee to those groups on acceptance; the caller must be allowed to add members to each (403 otherwise; 404 for a missing, retired or other-tenant group). 403 verified_email_required when the caller signed up with only a passkey and has not verified an email yet.

post/tenants/{id}/invites

Request

  • Base URL: https://api.instruxi.dev/api/v1/enforcer
  • URL: https://api.instruxi.dev/api/v1/enforcer/tenants/{id}/invites
  • Auth: one of:
    • API key in header Authorization
    • API key in header X-API-Key

Path parameters

idstring required

id

Request body

emailstring
group_idsstring[]

GroupIDs: groups (0..20 live, in this tenant) the invitee is added to on acceptance. The caller must be allowed to add members to each.

rolestring
wallet_addressstring

Response

Created

successboolean

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.