Authentication and scope
Send Authorization: Bearer <workspace API key>. Keys act as the user that created them. Agency requests can include X-Client with a permitted client ID; the server verifies that relationship.
Read operations
GET /app/me returns the account profile and billing context. GET /app/campaigns lists campaigns. GET /app/replies retrieves replies. GET /app/suppressions lists excluded email addresses and domains.
Account and campaign operations
POST /app/campaigns/{id}/copy/edit edits campaign copy; /copy/approve approves it; /status changes campaign state; /budget changes the daily budget. These are authenticated POST operations and must satisfy the server’s validation and account requirements.
Error handling
Treat 400 as a request-validation failure, 401 as missing or invalid authentication, 403 as insufficient account scope and 409 as an operation that cannot proceed in the current state. Check the response body rather than repeatedly retrying a rejected write.
Example
GET /app/me
GET /app/campaigns
GET /app/replies
GET /app/suppressions
Authorization: Bearer <workspace-api-key>
X-Client: <authorised-client-id> # agency requests onlyExample values only. Use your deployment URL and keep real credentials on your server.