Skip to content

UnBanning Community Members

Revoke a ban for a member in a community within your organization.

Note: Although configured as a GET route internally, this endpoint requires a JSON request body.

  • HTTP Method: GET
  • Endpoint URL: https://api.trywhiteowl.com/api/v1/communities/unban
  • Authentication: Bearer Token (API Key)

Header Type Required Description
Authorization String Yes Bearer token format: Bearer YOUR_API_KEY
Content-Type String Yes application/json

Field Type Required Description
id Number Yes The numeric identifier of the community.
member String Yes The ID or username of the member to unban.
organization String Yes Your organization identifier.

Example Payload:

{
"id": 101,
"member": "usr_9988",
"organization": "org_12345"
}

cURL

Terminal window
curl -X GET "https://api.trywhiteowl.com/api/v1/communities/unban" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": 101,
"member": "usr_9988",
"organization": "org_12345"
}'

JavaScript (Fetch)

const options = {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: 101,
member: 'usr_9988',
organization: 'org_12345'
})
};
fetch('https://api.trywhiteowl.com/api/v1/communities/unban', options)
.then(response => response.json())
.then(data => console.log(data))
.catch(err => console.error(err));

Python (Requests)

import requests
url = "https://api.trywhiteowl.com/api/v1/communities/unban"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"id": 101,
"member": "usr_9988",
"organization": "org_12345"
}
response = requests.get(url, headers=headers, json=payload)
print(response.json())

Success Response (200 OK)

{
"success": true,
"message": "Member unbanned successfully"
}

Error Responses

  • Validation / Internal Error:
{
"success": false,
"message": "There was an error unbanning member"
}