Documentation Index
Fetch the complete documentation index at: https://docs.pangram.com/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All AI detection endpoints use the following base URL:
https://text.api.pangram.com
The plagiarism detection endpoint uses a separate base URL:
https://plagiarism.api.pangram.com
Authentication
All API requests must include your API key in the x-api-key header:
curl -X POST https://text.api.pangram.com/v3 \
-H "Content-Type: application/json" \
-H "x-api-key: <your-api-key>" \
-d '{"text": "Your text here"}'
import requests
response = requests.post(
"https://text.api.pangram.com/v3",
headers={
"Content-Type": "application/json",
"x-api-key": "<your-api-key>"
},
json={"text": "Your text here"}
)
const response = await fetch("https://text.api.pangram.com/v3", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "<your-api-key>"
},
body: JSON.stringify({ text: "Your text here" })
});
Error Codes
| Status Code | Description |
|---|
400 Bad Request | The request body is not properly formatted. |
401 Unauthorized | The x-api-key is missing, invalid, or does not have enough credits to process the request. |
500 Internal Server Error | There was an error processing the request. |
If you are running into errors, please reach out at support@pangram.com.