WriterzRoom API requests use Bearer token authentication. API keys are generated from the product settings area on supported plans and supplied in theDocumentation Index
Fetch the complete documentation index at: https://docs.writerzroom.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header for each request.
Authentication Overview
Authenticate
Send a Bearer token with every protected request.
Protect
Store keys in secure server-side environments.
Rotate
Replace keys after exposure or access changes.
Audit
Track usage through generation and content records.
When Authentication Applies
API authentication is required for integrations that create content, check generation status, retrieve saved content, or access account-level configuration programmatically.Applications
Embed WriterzRoom generation inside products, portals, dashboards, and internal tools.
Automation
Connect structured content workflows to editorial systems, campaign operations, and backend jobs.
Enterprise Operations
Support governed content workflows where access control, usage tracking, and auditability matter.
Request Header
Every authenticated request should include these headers.Example Request
Authentication Flow
Store it securely
Save the key in an environment variable, deployment secret, or managed secrets service.
Key Management Guidance
| Practice | Guidance |
|---|---|
| Storage | Use environment variables, deployment secrets, or managed secret stores |
| Client exposure | Do not expose API keys in frontend code |
| Repository safety | Do not commit API keys to source control |
| Rotation | Rotate keys after suspected exposure or integration changes |
| Ownership | Assign keys to controlled service environments where possible |
Operational Guidance
Where should API keys be stored?
Where should API keys be stored?
Store API keys in environment variables, deployment secrets, or a managed secrets service. Do not hardcode keys in application source code.
Can API keys be used in frontend code?
Can API keys be used in frontend code?
No. API keys should only be used from trusted backend services. Frontend applications should call your backend, and your backend should call WriterzRoom.
When should keys be rotated?
When should keys be rotated?
Rotate keys after suspected exposure, employee offboarding, vendor changes, access policy changes, or integration cleanup.
What causes authentication failure?
What causes authentication failure?
Authentication can fail when the key is missing, expired, malformed, invalid, sent without the
Bearer prefix, or used from a plan that does not include API access.Generate Content
Submit a generation request through the API.
Endpoints Reference
Review available API endpoints and expected responses.