Skip to content

Authentication

To use the WriteIQ Headless API, you must authenticate all requests using an API Key.

You can generate a wiq_ API Key directly from your WriteIQ dashboard under Developer Settings. Keep your API key secure. Do not expose it in client-side code or public repositories.

All API requests must include an Authorization header with the value Bearer <YOUR_API_KEY>.

Terminal window
curl -X GET https://api.writeiq.com/v1/articles \
-H "Authorization: Bearer wiq_YOUR_API_KEY_HERE" \
-H "Content-Type: application/json"
fetch("https://api.writeiq.com/v1/articles", {
method: "GET",
headers: {
"Authorization": "Bearer wiq_YOUR_API_KEY_HERE",
"Content-Type": "application/json"
}
})
.then(response => response.json())
.then(data => console.log(data));

If your API key is missing, invalid, or expired, the API will return a 401 Unauthorized response:

{
"error": "Missing or invalid Authorization header"
}