Invite API
Create and verify invite tokens for gating access to the Agentbot platform.Invite tokens are 64-character hex strings generated from
crypto.randomBytes(32). The older 12-character code format is deprecated — see legacy format below.Authentication
Create invite
Request body
Response
Errors
Verify invite
Request body
Response (valid)
The
email field was removed from the verify response. The invite codes table does not store an email column. If you previously relied on this field, use a separate user lookup after verification.Errors
List invites (admin)
Response
Errors
Create invite (admin)
Request body
Response
Errors
Legacy invite format
Deprecated: generate invite code
POST /api/invite (session auth) and POST /api/admin/invites (admin session auth).
Deprecated: validate invite code
POST /api/invites/verify, which accepts 64-character hex tokens and returns valid and plan fields.