Agents is in beta. Access is currently limited to selected enterprise and agency accounts. To request it, talk to your account manager or book a demo with our sales team.
Base URL
/api/v1/business. Every request is a JSON POST (a few reads are GET), and every response is JSON.
Authentication
Every request requires your Writesonic API key in theX-API-Key header.
How to find your API key
1
Log in to Writesonic
Go to app.writesonic.com and sign in.
2
Open the API Dashboard
Hover over your profile picture in the top-right corner and select API Dashboard.
3
Activate the API
Switch the activation toggle on to enable API access.
4
Reveal your API key
Click Reveal API Key and copy it.
Scoping a request
Your API key is scoped to a single workspace. Most endpoints act on a single project within it, which you name with a request header.GET /whoami is the one call that needs no X-Project-Id. Call it first, it returns your identity, your teams, and the projects in the active workspace. Use a project’s id from that response as the X-Project-Id header on every other call.Your first request
1
Get your projects
id of the project you want to work with from the projects array.2
Query that project's tasks
Error responses
MCP or REST?
The Agents API and the Agents MCP server are two front doors to the same tools.- Reach for REST when you’re writing code, a backend job, a script, an integration.
- Reach for MCP when you want an AI assistant (Claude, ChatGPT) to call these tools for you in natural language.