Skip to content
MockFlow DevelopersGet an API key

Create a syntax-highlighted code block from a snippet of source code.

Updated 9 Nov 20261 min read

Send "type": "code_block".

Create a syntax-highlighted code block from a snippet of source code.

Also available as the MCP tool render_codeblock. The same payload works through either surface.

Fields

data
codestringrequired

Raw source code. Preserve newlines and indentation exactly.

languagestring

Programming language, lowercase (e.g. "javascript", "python", "sql", "bash")

titlestring

Short title for the code block title bar (e.g. "Bubble Sort")

Example

{
  "type": "code_block",
  "data": {
    "code": "string",
    "language": "string",
    "title": "Q4 Launch Planning"
  }
}

Add one record

POST /boards/{boardId}/items/{itemId}/records adds one of these to an item already on a board and leaves the rest of it as it is. Send the same key again to update that record instead of adding another.

Record fields

record
linestringrequired
keystring

Your own id for this record, like an issue key. Sending the same key again updates and moves that record instead of adding another.

{
  "record": {
    "line": "string",
    "key": "string"
  }
}
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