API Overview
| Endpoint | https://api.text-cloaker.com/cloakText |
| Methods | POST |
| Authentication | Bearer YOUR_API_KEY |
Input
| text (String) | The text you want to cloak. For best results, keep the text above 2000 characters. |
Output
| date (Date) | The date and time of the request. |
| cloakedText (String) | The cloaked version of the input text. |
| usedQuota (Integer) | The total cloaked characters used by this API key after this request. |
| remainingQuota (Integer) | The remaining quota of cloaked characters for this API key after this request. |
Errors
| Code 401 | No API key provided |
| Code 404 | API key not found |
| Code 429 | Too Many Requests (Rate limit exceeded) |
Quotas and Rate Limits
| Starter | 10 cloak requests / minute |
| Growth | 25 cloak requests / minute |
| Scale | 50 cloak requests / minute |
| Ultimate | 100 cloak requests / minute |
Code Examples
Node.js
const inputText = "Your text here";
import('node-fetch').then(({ default: fetch }) => {
fetch('https://api.text-cloaker.com/cloakText', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({ text: inputText })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
});
Python
import requests
input_text = "Your text here"
response = requests.post(
'https://api.text-cloaker.com/cloakText',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={'text': input_text}
)
print(response.json())
Curl
curl -X POST https://api.text-cloaker.com/cloakText
-H "Content-Type: application/json"
-H "Authorization: Bearer YOUR_API_KEY"
-d '{"text":"Your text here"}'
If you're having trouble using the API or have any questions, please contact us at aiobfuscation.com.