jobs.create
Start a job at a home (the home is found or created from the address).
| Who | Agents can call this |
| REST | POST /v1/jobs |
| MCP tool | jobs_create |
| Writes | yes, send an Idempotency-Key |
| Area | Jobs (unlimited) |
When to use it
Start any new piece of work. The home is matched to earlier jobs at the same address.
What to tell the owner
I started the job at that address. Earlier jobs at the same home are linked.
Input
| Field | Type | Required |
|---|---|---|
shop_id | string | yes |
customer_id | string | no |
summary | string | no |
address | object | yes |
address.line1 | string | yes |
address.line2 | string | no |
address.locality | string | yes |
address.postal_code | string | yes |
address.jurisdiction | string | yes |
Example
POST https://doingwork.work/v1/jobs
content-type: application/json
Idempotency-Key: 3f1c...
{
"shop_id": "00000000-0000-4000-8000-000000000000",
"address": {
"line1": "412 Elm St",
"locality": "Coeur d'Alene",
"postal_code": "83814",
"jurisdiction": "US-ID"
}
}Output
JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.
Errors
| Code | Status | What to do |
|---|---|---|
invalid_input | 400 | A field is missing, the wrong type, or unknown. The message names the field. Fix the input; don't retry as is. |
forbidden | 403 | This worker's role can't do this, or it needs a person's own sign-in rather than an agent token. Tell the person who can. |
invalid_input, invalid_token, rate_limited | Can happen on any call. See errors. |