Agent gateways
Postware can be resold by the call. A gateway or marketplace holds one key, gives each of its buyers a workspace, and pays what everyone pays: nothing for a workspace's first 500 calls each month, then $0.001 for each call that succeeds.
Price
| The first 500 calls a month in each workspace | Free |
| Each successful call after that | $0.001 |
| A thousand calls | $1 |
| A call that fails (any 4xx or 5xx response) | Free |
| Monthly fee, seats, minimum | None |
Each buyer's workspace has its own 500 free calls, every month. Creating the workspace is the first of them. A month that comes to less than $0.50 is not billed. A gateway needs no card: we email one invoice after each month ends, due in 30 days.
Limits
| Workspaces | Unlimited |
| Requests | 1,200 a minute for each workspace |
| Changes in one batch call | 500 |
| Storage | 50 GB across the account |
| Egress | 50 GB a month across the account |
| Backups | 30 days |
Every account has a spend cap, $10 a month until you change it on the Billing page of the dashboard. Calls stop for the month when the total reaches it. Write to us to raise storage or egress.
Get a key
- Sign up at the dashboard with the email your invoices should go to.
- Write to contact@postware.ai and say which gateway you run.
We reply with a gateway key. It starts with pwg_, and it is the only credential you need.
Create a workspace for a buyer
curl -X POST https://api.postware.ai/platform/agent/workspaces \
-H "Authorization: Bearer pwg_your_key" \
-H "Content-Type: application/json" \
-d '{"name": "Acme"}'
{
"slug": "ws-3f9c1b7a2d4e6f8091a2b3c4",
"name": "Acme",
"status": "active",
"plan": "paid",
"api_url": "https://api.postware.ai/w/ws-3f9c1b7a2d4e6f8091a2b3c4/v1",
"created_at": "2026-12-01T10:00:00Z",
"calls_this_month": 1,
"free_calls_left": 499
}
The slug is the buyer's workspace. Store it against the buyer and send each buyer's calls to their own slug. The response carries no credential, because your gateway key is used on every call. The key reaches only the workspaces your account created.
A workspace created this way does not expire, and it comes with every model: people, organizations, deals, invoices, subscriptions, tickets and the rest of the model reference.
Call the API
Send the same key to the workspace's api_url:
curl https://api.postware.ai/w/ws-3f9c1b7a2d4e6f8091a2b3c4/v1/person \
-H "Authorization: Bearer pwg_your_key"
The HTTP API is addressed per workspace because one gateway key serves many of them, so each call has to say which. MCP is different: its address is the same for every workspace, https://api.postware.ai/mcp, and it takes a workspace's own key or a person's sign-in, not a gateway key. A buyer who wants to connect their own assistant uses that address.
These are the calls most gateways list. {model} is a model name such as person, organization or deal.
| Call | What it does |
|---|---|
GET /v1/schema | List the models |
GET /v1/schema/{model} | One model's fields, duplicate rules and an example |
GET /v1/{model} | List records |
POST /v1/{model}/query | Filter and sort records |
GET /v1/{model}/{id} | Read one record |
POST /v1/{model} | Create a record |
POST /v1/{model}/upsert | Create a record, or update the one it matches |
PATCH /v1/{model}/{id} | Update a record |
DELETE /v1/{model}/{id} | Delete a record |
POST /v1/batch | Up to 500 changes in one call |
GET /v1/search | Search across every model |
GET /v1/stats | Record counts and storage used |
The API reference has every call. The OpenAPI document for a workspace is at /v1/schema/openapi.json under its api_url.
Check or remove a workspace
curl https://api.postware.ai/platform/agent/workspaces/ws-3f9c1b7a2d4e6f8091a2b3c4 \
-H "Authorization: Bearer pwg_your_key"
curl -X DELETE https://api.postware.ai/platform/agent/workspaces/ws-3f9c1b7a2d4e6f8091a2b3c4 \
-H "Authorization: Bearer pwg_your_key"
The first returns the same fields as creating one, and is neither billed nor counted. free_calls_left is how many of the buyer's free calls remain this month, so you can pass them on to the buyer and start charging when it reaches 0. The second stops the workspace at once and removes its data 30 days later.
Errors
| Status and code | Meaning |
|---|---|
401 unauthorized | The key is not a gateway key we know |
404 not_found | The slug is not one of your workspaces |
403 plan_limit | The account reached its spend cap, storage or egress for the month |
429 rate_limited | Too many requests. Wait as long as the Retry-After header says |
None of these is billed.