Skip to main content

Invite API

Generate and validate invite codes for gating access to the Agentbot platform. These endpoints are backend-only.
Invite codes are now persisted in the database and survive server restarts. Code generation requires internal API key authentication to prevent invite flooding. Code validation remains public.

Generate invite code

Generates a new invite code. Requires internal API key authentication via the Authorization: Bearer <INTERNAL_API_KEY> header.

Errors

Response

Validate invite code

Validates and consumes an invite code. The operation is atomic — only one concurrent request can successfully consume a given code. Once validated, the code is marked as used and cannot be reused. No authentication required.

Request body

Response (valid)

Response (invalid)

Errors