Skip to content
MockFlow DevelopersGet an API key

POST /boards/{boardId}/items/{itemId}/convert

Updated 8 Oct 20263 min read
POST/boards/{boardId}/items/{itemId}/convertTry it
Basehttps://api.mockflow.com/v1Scopesai:generateboards:write

Mida rebuilds the item's content as the target type and, once the new item has landed, deletes the source unless keepSource is true. See convertibleTo on GET /item-types/{type} for sensible targets.

Authorization

Authorizationstringheaderrequired

Bearer <key>. The key needs ai:generate and boards:write scopes. Create and manage keys in the developer console, or use an OAuth app to act for other people; what each scope unlocks is on the scopes page.

Path parameters

boardIdstringpathrequired
itemIdstringpathrequired

Body

application/json
callbackUrlstring

Optional. When the job this request starts finishes or fails, a short body is POSTed here once: { eventId, status, boardId, boardUrl, imageUrl }, where status is succeeded or failed and imageUrl is a picture of what the job drew, or null. Signed with the workspace's callback secret (GET /webhooks/callback-secret). https to a public host. The full job is on GET /jobs/{jobId}.

toenum<string>required

Item types, generated from the MockFlow component registry. Primitive types are drawn by the editor; frame types are rich components whose data schema is the same one the MCP render_* tool accepts.

keepSourceboolean

Defaults to false.

Response

202 · application/json
idstring
kindenum<string>

One of item.create, item.update, item.delete, item.batch, ai.generate, ai.modify, skill.apply or board.export.

statusenum<string>

One of queued, running, succeeded or failed.

progressinteger
messagestring

Human readable progress, for example "Placing kanban".

resultobject | null
Child attributes
itemIdsstring[]
updatedstring[]
deletedstring[]
creditsUsedinteger
boardTitlestring | null
skillstring | null
convertedFromstring
sourceDeletedboolean
targetenum<string>

board.export. What was drawn. One of board, frame or item.

formatenum<string>

board.export. One of png.

scaleenum<integer>

board.export. One of 1 or 2.

imageUrlstring

board.export. The PNG. Anyone with this URL can open it.

widthinteger

board.export. The image's width in pixels.

heightinteger

board.export. The image's height in pixels.

errorerror
Child attributes
codeenum<string>required

One of unauthorized, forbidden, not_found, validation_failed, conflict, plan_limit, rate_limited or internal.

messagestringrequired
detailsobject[]
docsUrlstring
upgradeUrlstring
createdAtstring
finishedAtstring | null
callbackUrlstring | null

Where the job's result is POSTed

callbackobject | null

The newest delivery to callbackUrl, once the job has finished. Null until then, and when there is no callbackUrl.

Child attributes
urlstring
deliveryIdstring
statusenum<string>

One of pending, retrying, succeeded, failed or cancelled.

attemptsinteger
responseStatusinteger | null
errorstring | null
deliveredAtstring | null
nextRetryAtstring | null

Errors

402plan_limit

The workspace plan does not allow this, or AI credits are exhausted.

429rate_limited

Too many requests.

Was this page helpful?

Sign in to MockFlow

The same account you use in the app and on the API.

Forgot your password?
or
Continue with GoogleContinue with MicrosoftContinue with Apple