Leader Check Invite Code
The /leader/check/invite endpoint allows a user to check the validity of an invite code for creating a new leader profile.
Method
POST /leader/check/invite
Request Body
{
"leader_id": "3423423",
"invite_code": "BARAKA"
}
Response
{
"status": 200,
"data": {
"is_valid": true,
"retries_left": 5
}
}
Fields
-
leader_id (string, required): The unique identifier of the leader.
-
invite_code (string, required): The invite code to check.
-
is_valid (boolean): Whether the invite code is valid.
-
retries_left (number): Number of retries left for using the invite code.