Invites allow you to control user registration by requiring invite codes. This is useful for private instances or controlled access environments.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/diced/zipline/llms.txt
Use this file to discover all available pages before exploring further.
Enabling Invites
Invites must be enabled in your Zipline configuration:If invites are enabled, users must provide a valid invite code during registration. Without invites enabled, registration may be open to anyone depending on your configuration.
Creating Invites
Administrators can create invite codes through the API:Invite Parameters
expiresAt- When the invite expires (ISO 8601 date string or “never”)maxUses- Maximum number of times the invite can be used (optional)
Expiration Options
Set a specific expiration date:Usage Limits
Limit invite to a specific number of uses:Managing Invites
List All Invites
Retrieve all invite codes:- Invite code
- Current usage count
- Maximum uses
- Expiration date
- Creator information
Get Invite Details
Retrieve information about a specific invite by ID or code:Delete Invite
Revoke an invite code:Invite Validation
When a user registers with an invite code, Zipline automatically validates:Web Invite Validation
You can validate an invite code without registering:- Expired
- Fully used
- Non-existent
Registration with Invites
When registering with an invite code:Invite Validation Errors
Common error responses:"Invites aren't enabled"- Invites are disabled in configuration"Invalid invite code"- Code doesn’t exist, is expired, or is fully used
Invite Data Model
Each invite contains:Invite Code Generation
Invite codes are automatically generated using cryptographically secure random characters. The length is controlled by theINVITES_LENGTH configuration option.
Default length: 12 characters
Tracking Invite Usage
Monitor which invites are being used:Best Practices
Security Recommendations:
- Set expiration dates on invites to limit their validity window
- Use
maxUses: 1for invites sent to specific individuals - Regularly audit active invites and delete unused ones
- Monitor invite usage in server logs
- Rotate invite codes periodically for shared invites