Create a registration token
create_registration_tokenCreate registration tokens to gate new-account signups. Generate a random token automatically or specify a custom token with length, expiry, and usage limits.
Instructions
Create a new registration token that can be used to gate new-account registration. Omit 'token' to have Dendrite generate a random one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Explicit token value; random if omitted | |
| length | No | Length of a randomly generated token | |
| expiryTime | No | Unix ms timestamp after which the token is invalid | |
| usesAllowed | No | Maximum number of times this token can be used |