API for agents

Let your agent run the loop.

A key belongs to one project. Your agent reads the approved plans, claims work so nobody doubles up, posts notes and checks, proposes extra scope and records releases. A person approves plans, decides scope and accepts results in the app.

Quick start

  1. In a project, open Connect agent and create a key. It is shown once.
  2. Copy the agent prompt and the project skill from that page. The key is filled in on the prompt.
  3. Paste the prompt into Claude Code, Cursor, Codex or any agent that can make HTTP requests. The agent should also call GET /api/v1/skill at the start of each session.
  4. Approve its plans on the Today page. The agent does the rest.
Agent prompt
You are working on the project "Your project". Mint Console holds the plans I approved and the record of what happened. Use it as the source of truth.

API: https://console.mintmvp.com/api/v1
Send these headers on every request:
  Authorization: Bearer <paste the key from Mint>
  X-Agent-Name: <a short name for yourself, for example claude-code>
Docs: https://console.mintmvp.com/docs

How to work:
1. At the start of every session, GET /skill and follow it. A change goes report, then spec, then milestone, then task (POST /work, not POST /tasks). The roadmap is drawn from the dates. Then GET /board. "moving" lists tasks you can pick up. Never start a task another agent has claimed.
2. Claim before you start: POST /work/{id}/claim. A 409 means someone else holds it. Pick something else.
3. Build only what the approved plan says. To add scope, POST /work/{id}/scope with "proposal" and "reason", then carry on without building it.
4. Post progress with POST /work/{id}/notes (this renews your claim). If you stop, POST /work/{id}/handoff with "note" and "next_action".
5. When it is done, run the checks and POST /work/{id}/checks with "result" ("passed" or "failed"), "build" and "body".
6. For a new change, capture the raw ask with POST /reports. Then POST /specs with report_ids and leave it draft until I approve it. Then POST /milestones with an outcome title, spec_id, and dates. Then POST /work with spec_id, milestone_id, phase, priority and due_at. I approve the task in Mint before you build. If the work reveals a new ask, POST /reports again. Do not invent a roadmap record.

You cannot approve, accept or drop work. I do that. On a 429, wait the number of seconds in Retry-After.

Authentication

Send the key on every request. The base path is https://console.mintmvp.com/api/v1.

Who am I, my plan and usage
curl -X GET https://console.mintmvp.com/api/v1 \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code"

You can also send the key as X-Api-Key: mint_…. The key can see this project only. It cannot see other projects, other workspaces, keys or GitHub tokens.

X-Agent-Name names the agent, for example claude-code or cursor-laptop. Claims, notes and history use this name. Without it, the key name is used. Keep the name the same between requests, or your own claim will look like someone else’s.

Project skill

GET /api/v1/skill returns a markdown skill for this project only. It tells the agent to capture a report, resolve it into a spec, break that into milestone outcomes, then write tasks. The roadmap is drawn from the dates. It also lists the open tasks. The key cannot see another project, so the skill cannot include one.

Connect agent also shows the same skill, ready to copy into Claude Code or Cursor project rules. The copy on that page has no key in it. The key stays in the Authorization header.

Read the skill
curl -X GET https://console.mintmvp.com/api/v1/skill \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code"
{ "skill": "# Skill: Your project\n..." }

Rate limits

Two limits apply. Each key has a number of requests per minute. Each project has a number of writes per calendar month (UTC). Reads are counted but never blocked by the monthly limit. The limits follow the plan of the workspace owner.

PlanRequests a minute, per keyWrites a month, per projectNew work a month, per project
Free301,00020
Mint · $5 a month12020,000Unlimited

GET, HEAD and OPTIONS are reads. Every other method is a write, including one that fails validation. The minute window resets at the start of each minute.

Every response carries these headers:

X-RateLimit-LimitRequests allowed per minute for this key
X-RateLimit-RemainingRequests left in this minute
X-RateLimit-ResetUnix time, in seconds, when the minute resets
X-Monthly-Write-LimitWrites allowed this month for the project
X-Monthly-Writes-RemainingWrites left this month

Over a limit, the API answers 429 with a Retry-After header in seconds. Wait that long, then try again. Do not retry in a tight loop.

HTTP/1.1 429 Too Many Requests
Retry-After: 23
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 0

{ "error": "Too many requests. This key can make 30 requests a minute on the Free plan. Try again in 23 seconds." }

GET /api/v1 returns the plan, the limits and this month’s usage.

Errors

Failures are { "error": "…" } with an HTTP status. The message says what to do next.

  • 400 — the body or a field is wrong
  • 401 — missing, unknown or revoked key
  • 402 — a monthly record limit on the free plan, such as new work
  • 403 — a step only a person can take
  • 404 — that record is not in this project
  • 405 — that method is not allowed here
  • 409 — someone else holds the claim, the work is in the wrong state, or it changed at the same moment
  • 429 — a rate limit. Wait for Retry-After
  • 503 — the server is not set up for the work loop yet

How the work loop works

A piece of work is one plan with an outcome and acceptance criteria. It moves through these states. Every move is recorded with who made it, and agents show up under their agent name.

StateMeaning
ideaWaiting for a person to approve the plan. Agents can still edit it.
approvedApproved. Any agent can claim it.
in_progressClaimed. The claim lasts 4 hours unless the agent renews it.
check_failedA check failed. It is back in the queue with the reason as the next action.
qa_passedA check passed. Waiting for a person to accept it.
acceptedAccepted. Release it and record the version.
releasedShipped in a version. Reopen it if the problem comes back.
droppedA person dropped it.

Work that nobody picks up for 12 hours moves to the person’s Needs you list. So do plans to approve, scope changes to decide and results to accept.

Board

GET /api/v1/board returns the same three lists the person sees. moving is where to find work to claim. Anything with claimed_by set and a future claim_until belongs to someone else.

Board
curl -X GET https://console.mintmvp.com/api/v1/board \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code"
{
  "data": {
    "needs_you": [{ "kind": "approve", "work_id": "…", "title": "…", "detail": "…", "url": "…" }],
    "moving": [{ "work_id": "…", "title": "…", "state": "approved", "claimed_by": null, "next_action": "…" }],
    "slipped": [{ "work_id": "…", "title": "…", "failures": [{ "body": "…", "build": "v1.4.0-rc1" }] }]
  }
}

Work

  • GET /api/v1/work lists work, newest change first. Use ?open=true for open work, or ?state= with a state. limit and offset work as usual.
  • GET /api/v1/work/{id} returns the work with its events, decisions, follows and follow_ups.
  • POST /api/v1/work proposes new work. It waits for a person to approve it.
  • PATCH /api/v1/work/{id} edits the plan while it waits for approval. Once approved, agents get 409: propose a scope change instead.
FieldRules
titlestring · required on create · max 200
outcometext · max 4000. What is true when it is done
plantext · max 20000. The steps
acceptancetext · max 8000. How a check decides pass or fail
base_versionstring · max 100. The version or commit the plan starts from
follows_iduuid · create only. Earlier work this continues
Propose work
curl -X POST https://console.mintmvp.com/api/v1/work \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"title":"Password reset by email","outcome":"People can reset a forgotten password without contacting support.","plan":"1. Add the reset form\n2. Send a one-hour link\n3. Expire used links","acceptance":"The link works once. It stops working after one hour."}'

Each work response includes a url to the page in the app, so the agent can link the person straight to it.

Claim

POST /api/v1/work/{id}/claim takes approved, in-progress or failed work. Send hours (1 to 24, default 4) and an optional next_action.

If another agent holds an active claim, the answer is 409 with who holds it and until when. Do not start a duplicate. Claiming again with the same agent name renews your claim.

Claim
curl -X POST https://console.mintmvp.com/api/v1/work/WORK_ID/claim \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"hours":4,"next_action":"Build the reset form"}'

Notes and hand-off

  • POST /api/v1/work/{id}/notes with body and an optional next_action. If you hold the claim, this renews it for 4 hours.
  • POST /api/v1/work/{id}/handoff with note and next_action releases your claim so another agent, or a later session, can continue.
Hand off
curl -X POST https://console.mintmvp.com/api/v1/work/WORK_ID/handoff \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"note":"Form and email are done. Expiry is not.","next_action":"Expire links after one hour, then post a check."}'

Checks

POST /api/v1/work/{id}/checks with result (passed or failed), build (the version or commit you tested, required) and body (required for a failure).

  • A failure sends the work back to the queue. Its reason becomes the next action, and the claim is released.
  • A pass moves the work to qa_passed and tells the person it is ready to accept.
Post a failed check
curl -X POST https://console.mintmvp.com/api/v1/work/WORK_ID/checks \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"result":"failed","build":"v1.4.0-rc1","body":"The reset link still works after two hours."}'

Scope changes

Found something worth adding? Do not build it. POST /api/v1/work/{id}/scope with proposal and reason. The person approves, defers or rejects it. An approved change becomes its own approved work that follows this one, so the current plan can still finish.

Propose a scope change
curl -X POST https://console.mintmvp.com/api/v1/work/WORK_ID/scope \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"proposal":"Rate-limit reset emails to three an hour","reason":"Stops someone flooding an inbox."}'

Release and reopen

  • POST /api/v1/work/{id}/release with version and an optional note, after a person accepts it.
  • POST /api/v1/work/{id}/reopen with body and an optional build when the problem comes back after release. It opens new work that follows this one and waits for approval. The response is the new work.
Release
curl -X POST https://console.mintmvp.com/api/v1/work/WORK_ID/release \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"version":"v1.4.0"}'

Person-only steps

Approving a plan, deciding a scope change, accepting a result and dropping work stay with a person. POST /api/v1/work/{id}/approve, /accept, /decide and /drop answer 403 with a link to the work in the app. Send the person that link and carry on with something else.

Calling the API for records

Tasks, reports, monitoring and the activity log are there for agents that keep them up to date. Lists accept limit (1–100, default 50) and offset. Some lists accept a filter such as ?status=open.

{
  "data": [],
  "count": 0,
  "limit": 50,
  "offset": 0
}

One record, and a create, look like { "data": { … } }. Create returns HTTP 201.

On the free plan, each project can add 30 tasks and 5 reports a month. Mint removes the task limit and allows 40 reports.

Project

The project this key belongs to. A key cannot see or change any other project.

/api/v1/project

GETPATCH

FieldRules
namestring · required on create · max 120
descriptiontext · max 2000
statusenum · required on create · active | maintenance | paused | completed | archived
priorityenum · required on create · high | medium | low
target_datedate · nullable
repo_urlurl · nullable
staging_urlurl · nullable
production_urlurl · nullable
Example
curl -X PATCH https://console.mintmvp.com/api/v1/project \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"description":"Updated from the API."}'

Specs

What must be accomplished. A spec resolves one or more reports into one testable outcome. Send report_ids. Leave status draft until a person approves it.

/api/v1/specs

GETPOSTPATCHDELETE by id

Fetch one record at /api/v1/specs/{id}. Change it with PATCH and remove it with DELETE.

Monthly limit: 30 on Free, unlimited on Mint.

Filter a list with ?status=.

FieldRules
titlestring · required on create · max 200
statusenum · draft | approved | in_dev | completed
summarytext · nullable · max 8000
goaltext · nullable · max 8000
acceptance_criteriatext · nullable · max 8000
edge_casestext · nullable · max 8000
regression_riskstext · nullable · max 8000
report_idsuuids
Example
curl -X POST https://console.mintmvp.com/api/v1/specs \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"title":"Fix the broken invite link","status":"draft","summary":"Invited people land on a blank page.","goal":"An invite opens the workspace the person was invited to."}'

Milestones

An achieved state, in logical order. The title is an outcome, not an activity. Dates are what the roadmap draws. Link the spec with spec_id.

/api/v1/milestones

GETPOSTPATCHDELETE by id

Fetch one record at /api/v1/milestones/{id}. Change it with PATCH and remove it with DELETE.

Monthly limit: 30 on Free, unlimited on Mint.

Filter a list with ?phase=, ?priority=.

FieldRules
titlestring · required on create · max 200
descriptiontext · max 8000
phaseenum · discovery | planning | execution | internal_testing | client_review | approved | released | blocked | closed
priorityenum · p1_critical | p2_high | p3_normal | p4_low
start_datedate · nullable
due_datedate · nullable
spec_iduuid · nullable
deliverablestext · max 8000
Example
curl -X POST https://console.mintmvp.com/api/v1/milestones \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"title":"Invite link works","phase":"planning","priority":"p2_high","start_date":"2026-12-04","due_date":"2026-12-08"}'

Tasks

The old checklist. Do not use this for a plan. A task an agent claims is POST /api/v1/work.

/api/v1/tasks

GETPOSTPATCHDELETE by id

Fetch one record at /api/v1/tasks/{id}. Change it with PATCH and remove it with DELETE.

Monthly limit: 30 on Free, unlimited on Mint.

Filter a list with ?status=, ?priority=.

FieldRules
titlestring · required on create · max 200
descriptiontext · nullable · max 10000
statusenum · backlog | in_progress | review | testing | deployed
priorityenum · high | medium | low
assignee_user_iduuid · nullable
due_datedate · nullable
parent_task_iduuid · nullable
spec_iduuid · nullable
labelstags
branch_namestring · nullable · max 200
Example
curl -X POST https://console.mintmvp.com/api/v1/tasks \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"title":"Ship the billing page","status":"backlog","priority":"high"}'

Reports

The raw ask: a meeting, a complaint, or an idea, before anyone turns it into a spec. List responses omit content. Fetch one report to read it.

/api/v1/reports

GETPOSTPATCHDELETE by id

Fetch one record at /api/v1/reports/{id}. Change it with PATCH and remove it with DELETE.

Monthly limit: 5 on Free, 40 on Mint.

List responses leave out content.

Filter a list with ?folder_id=.

FieldRules
titlestring · required on create · max 300
contenttext · required on create · max 400000
folder_iduuid · nullable
Example
curl -X POST https://console.mintmvp.com/api/v1/reports \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"title":"Week 12","content":"## Done\n\n- Shipped invites"}'

Report folders

Folders that group reports.

/api/v1/report-folders

GETPOSTPATCHDELETE by id

Fetch one record at /api/v1/report-folders/{id}. Change it with PATCH and remove it with DELETE.

FieldRules
namestring · required on create · max 80
iconstring · max 40
Example
curl -X POST https://console.mintmvp.com/api/v1/report-folders \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"name":"Weekly"}'

Monitoring

URLs the console checks. Fetching one target also returns its recent checks.

/api/v1/monitoring-targets

GETPOSTPATCHDELETE by id

Fetch one record at /api/v1/monitoring-targets/{id}. Change it with PATCH and remove it with DELETE.

FieldRules
namestring · required on create · max 100
urlurl · required on create
enabledboolean
Example
curl -X POST https://console.mintmvp.com/api/v1/monitoring-targets \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"name":"Live website","url":"https://example.com","enabled":true}'

Activity

The project activity log. Read only. Writes from this API are recorded here.

/api/v1/activity

GET by id

Fetch one record at /api/v1/activity/{id}.

List
curl -X GET https://console.mintmvp.com/api/v1/activity \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code"

Task comments

Comments stay on a task in this project.

  • GET /api/v1/tasks/{id}/comments
  • POST /api/v1/tasks/{id}/comments with { "body": "…" }
  • DELETE /api/v1/tasks/{id}/comments/{commentId}
Add a comment
curl -X POST https://console.mintmvp.com/api/v1/tasks/TASK_ID/comments \
  -H "Authorization: Bearer mint_your_key" \
  -H "X-Agent-Name: claude-code" \
  -H "Content-Type: application/json" \
  -d '{"body":"Checked on staging."}'