This endpoint allows clients to retrieve the current registration settings of the PHPeerTube instance. Administrators can configure these settings to control user registration.
GET /registration-flags
curl -X GET "https://your-phpeertube-instance.com/registration-flags"
The response will be a JSON object containing the following flags:
| Field | Type | Description |
|---|---|---|
allowRegistration |
boolean | true if new user registrations are currently allowed; false otherwise. |
requireRegistrationReason |
boolean | true if users are required to provide a reason for registration; false otherwise. |
registrationApprovalDays |
integer | The number of days administrators may take to approve or reject a registration. 0 indicates no specific time limit. |
{
"allowRegistration": true,
"requireRegistrationReason": false,
"registrationApprovalDays": 7
}
The values for these flags are taken from environment variables with default fallbacks:
ALLOW_REGISTRATION: Controls if new registrations are allowed. Defaults to true.REQUIRE_REGISTRATION_REASON: Controls if a reason is required for registration. Defaults to false.REGISTRATION_APPROVAL_DAYS: Sets the number of days for registration approval. Defaults to 0.