Get Registration Flags

This endpoint allows clients to retrieve the current registration settings of the PHPeerTube instance. Administrators can configure these settings to control user registration.

Endpoint

GET /registration-flags

curl -X GET "https://your-phpeertube-instance.com/registration-flags"

Response

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.

Example Response

{
    "allowRegistration": true,
    "requireRegistrationReason": false,
    "registrationApprovalDays": 7
}

Environment Variables

The values for these flags are taken from environment variables with default fallbacks: