Skip to main content

App manifest reference

An app manifest is a JSON document that describes an app: where its API lives, how a connection signs in, and the actions and triggers it offers in workflows. One generic runtime runs every manifest:

There are two kinds of manifest:

Official appsCustom apps
WhereEmbedded JSON files shipped with Blokkio (Blokkio.Infrastructure/Apps/Manifests/*.json)Stored on the custom app (connection definition) in your project
What it holdsEverything: presentation, base URL, auth variants, actions, triggersactions, triggers and the testRequest method and body; the rest comes from the custom app's fields
ValidationEvery field. An invalid file stops the catalogue sync (official apps are loaded into the app catalogue on start-up)Actions, triggers and testRequest, when the app is saved. Paths may also be absolute https:// URLs

Manifests are camelCase JSON. Comments (//, /* */) and trailing commas are allowed.

The catalogue API (GET /api/apps) marks every entry with two flags that aren't part of any manifest: official is true for apps built from an embedded manifest, and generic is true only for Any REST API, the generic templates (API Key, Bearer Token, Basic Auth, OAuth 2.0, AI Provider), which are neither official nor custom (official: false). The app lists them on the Generic tab of Apps.

A complete example​

A shortened version of the official GitHub manifest (github.json):

{
"slug": "github",
"name": "GitHub",
"version": "1.0.0",
"category": "Developer tools",
"description": "Repositories, issues, pull requests and releases on GitHub.",
"icon": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>…</svg>",
"docsUrl": "https://docs.github.com/en/rest",
"kind": "http",
"baseUrl": "https://api.github.com",
"defaultHeaders": {
"Accept": "application/vnd.github+json",
"X-GitHub-Api-Version": "2022-11-28"
},
"allowedDomains": ["api.github.com"],
"testRequest": { "method": "GET", "path": "/user" },
"auth": [
{ "key": "oauth", "label": "Sign in with GitHub", "type": "OAuth2", "platformOAuthApp": true, "config": { "parameters": [ … ] } },
{ "key": "token", "label": "Personal access token", "type": "BearerToken", "config": { "parameters": [ … ] } }
],
"actions": [
{
"key": "create_issue",
"name": "Create issue",
"description": "Opens a new issue in a repository.",
"method": "POST",
"path": "/repos/{owner}/{repo}/issues",
"inputs": [
{ "key": "owner", "label": "Owner", "type": "string", "required": true, "in": "path" },
{ "key": "repo", "label": "Repository", "type": "string", "required": true, "in": "path" },
{ "key": "title", "label": "Title", "type": "string", "required": true, "in": "body" },
{ "key": "body", "label": "Body", "type": "text", "in": "body" },
{ "key": "labels", "label": "Labels", "type": "array", "in": "body", "description": "Label names." }
],
"output": {
"schema": {
"type": "object",
"properties": { "number": { "type": "number" }, "html_url": { "type": "string" } }
}
}
}
],
"triggers": [
{
"key": "new_issue",
"name": "New issue",
"type": "polling",
"request": {
"method": "GET",
"path": "/repos/{owner}/{repo}/issues",
"query": { "state": "all", "sort": "created", "direction": "desc", "per_page": "50" }
},
"inputs": [
{ "key": "owner", "label": "Owner", "type": "string", "required": true, "in": "path" },
{ "key": "repo", "label": "Repository", "type": "string", "required": true, "in": "path" }
],
"itemsPath": "$",
"dedupKey": "id",
"orderBy": "created_at",
"excludeIfPresent": ["pull_request"]
}
]
}

Top-level fields​

These fields are read from official manifests. A custom app sets the equivalent values in the builder (see Custom apps), and the validator ignores them in a custom manifest, except testRequest, whose method and body a custom manifest may carry.

FieldTypeRequiredDescription
slugstringYesCatalogue key. Lowercase letters, digits and -, starting with a letter or digit, at most 49 characters. Must match the file name (github in github.json) and be unique.
namestringYesDisplay name.
versionstringYesSemantic version, for example 1.0.0 or 1.1.0-beta.1. Stored on the definition as its app version.
categorystringYesCatalogue category, for example Developer tools.
descriptionstringNoAt most 1000 characters.
iconstringNoSVG markup or an https:// URL, at most 65,536 characters. See Icons.
docsUrlstringNoAbsolute https:// URL of the provider's API docs. Shown as API docs on the app page.
kindstringNohttp (default), database, sftp, imap or smtp. Only http apps can have baseUrl, actions and triggers.
baseUrlstringhttp onlyAbsolute https:// URL that action and trigger paths are relative to. Its path is kept: https://api.notion.com/v1 + /pages gives https://api.notion.com/v1/pages, and / is the base URL itself. It may contain connection fields, see Base URL from connection fields.
defaultHeadersobjectNoHeaders added to every request made with the app's connections, unless the request already sets them. Names must be valid HTTP header names. Authorization isn't allowed: credentials belong in an auth variant.
allowedDomainsstring[]http onlyHosts credentials may be sent to. At least one, and one must match the host of baseUrl. Host names or globs such as *.slack.com, without scheme, port or path.
testRequestobjecthttp: YesThe request Test connection sends. See Test request.
okPathstringNoDot path to a boolean success flag in the response, for APIs that answer 200 with an error. See Errors in a 2xx response.
errorPathstringNoDot path to the error in the response.
oauthProviderstringNoOfficial apps. Provider whose platform OAuth client the app shares when its own Apps:OAuth:{slug} isn't configured: google or microsoft (Apps:OAuth:google, Apps:OAuth:microsoft).
authobject[]YesOne or more auth variants.
actionsobject[]NoActions.
triggersobject[]NoTriggers.

Test request​

Test connection sends testRequest with the connection's credentials, the app's default headers and its base URL. A 2xx response means the connection works.

FieldTypeDefaultDescription
methodstringGETGET, HEAD or POST.
pathstringStarts with / and is relative to baseUrl. May include a query string. Required in official manifests. A custom app keeps its test path in the builder's Test request field instead.
bodyobjectPOST only: a JSON object sent as application/json, for example a GraphQL query.
unsupportedstringInstead of path, for APIs with no harmless request to check credentials with (a Teams workflow URL only accepts new messages). Test connection then checks the connection's fields, the URL and the allowed domains without sending anything, and shows this text.

Linear's API is GraphQL, so its test request posts a small query:

"testRequest": { "method": "POST", "path": "/graphql", "body": { "query": "{ viewer { id } }" } }

Base URL from connection fields​

Some APIs put the credential or the account in the address. A {field} in baseUrl is replaced with that connection field when a request is made (after environment overrides and secret:// references):

baseUrlUsed byResult
{webhook_url}Discord (webhook), Microsoft Teams (webhook)The field holds the whole https:// URL, including its query string.
https://api.telegram.org/bot{bot_token}TelegramThe value is inserted into the path, URL-escaped (: is kept).
https://api.twilio.com/2010-04-01/Accounts/{username}TwilioThe Account SID from the Basic auth username.
https://{password|afterLast:-}.api.mailchimp.com/3.0MailchimpafterLast:- takes the text after the last - of the API key (…-us6 → us6). In the host only letters, digits, - and . are allowed.
https://{subdomain|subdomain}.zendesk.com/api/v2Zendesk, Jira, Shopify, Pipedrivesubdomain keeps the first label of what the user pasted: acme, acme.zendesk.com and https://acme.zendesk.com/agent all give acme.
https://{api_host}TypeformA whole host from a field (api.typeform.com or an EU host). Validation fills it with the field's default.

Every auth variant must have a parameter with that key. The filled URL is still checked against allowedDomains, so a pasted URL on another host is refused. When a field is empty, requests fail with Connection 'X': the field 'bot_token' is empty; it's needed to build the app's URL. An app whose base URL uses a sensitive field can't have triggers.

Icons​

An icon is either an https:// URL or static SVG markup. SVG must start with <svg and must not contain <script, <foreignObject, event handler attributes (onclick= and so on), javascript: URLs, or href / xlink:href references to anything other than a fragment in the same document (#id). Official icons are monochrome line icons that use currentColor.

Auth variants​

Each entry in auth is one way to connect. The catalogue sync creates one connection definition per variant: the first variant gets the app's slug, every other variant gets slug.key (for example github and github.token). The catalogue groups them back into one app by the part of the slug before the first ..

FieldTypeDescription
keystringVariant key. Lowercase letters, digits and _, starting with a letter or digit, at most 64 characters. Unique within the app, and slug.key must stay within 100 characters.
labelstringShown on the app page, for example Sign in with GitHub or Personal access token. Required.
typestringOAuth2, ApiKey, BearerToken, BasicAuth, AIProvider, Fields or None. Bearer and Basic are accepted as short forms of BearerToken and BasicAuth.
platformOAuthAppbooleanOAuth2 only. The client id and secret come from the server configuration (Apps:OAuth:{slug}), so users connect in one click.
configobjectThe connection definition config: an object with a parameters array (and, for OAuth 2.0, sources). Not needed for None.

Rules per type:

  • http apps can't use Fields. Every other kind (database, sftp, imap, smtp) must use Fields. Its connection fields are fixed per kind (see Non-HTTP connections).
  • Every parameter in config.parameters needs a key (unique) and a ui object.
  • OAuth2 must define auth_url and access_token_url with an https:// default value.
  • With platformOAuthApp: true, client_id and client_secret must not be user-editable. Leave them out, or set "isShown": false.
  • A parameter whose key contains secret must not ship a default value.

The parameter format is the same one connection definitions use. See OAuth 2.0, API Key, Bearer Token and Basic Auth. The bearer variant from github.json:

{
"key": "token",
"label": "Personal access token",
"type": "BearerToken",
"config": {
"parameters": [
{ "key": "token", "placement": "header", "displayName": "Personal access token", "sensitive": true, "allowSecretRef": true,
"ui": { "type": "String", "default": "", "isShown": true, "label": "Personal access token (classic or fine-grained)" } },
{ "key": "header_prefix", "placement": "none", "displayName": "Header Prefix",
"ui": { "type": "String", "default": "Bearer", "isShown": false } }
]
}
}

The OAuth variant of slack.json ships its authorize URL, token URL and scopes as hidden defaults, and no client credentials:

{
"key": "oauth",
"label": "Add to Slack",
"type": "OAuth2",
"platformOAuthApp": true,
"config": {
"sources": { "token_type": "Bearer", "access_token": "access_token", "refresh_token": "refresh_token", "access_token_expiresIn": "expires_in" },
"parameters": [
{ "key": "grant_type", "phase": ["token", "refresh"], "placement": "body", "displayName": "Grant Type",
"ui": { "type": "String", "default": "authorization_code", "isShown": false } },
{ "key": "auth_url", "phase": ["auth"], "placement": "none", "displayName": "Auth URL",
"ui": { "type": "String", "default": "https://slack.com/oauth/v2/authorize", "isShown": false } },
{ "key": "access_token_url", "phase": ["token"], "placement": "none", "displayName": "Access Token URL",
"ui": { "type": "String", "default": "https://slack.com/api/oauth.v2.access", "isShown": false } },
{ "key": "scope", "phase": ["auth"], "placement": "query", "displayName": "Bot scopes",
"ui": { "type": "String", "default": "chat:write,channels:read,groups:read,channels:history,groups:history,users:read,reactions:write", "isShown": false } },
{ "key": "client_authentication", "phase": ["token", "refresh"], "placement": "none", "displayName": "Client Authentication",
"ui": { "type": "String", "default": "body", "isShown": false } }
]
}
}

Per-account OAuth servers and token headers​

auth_url, access_token_url and refresh_token_url may contain {field} placeholders in the host, filled from the variant's own parameters with the same rules as the base URL (Zendesk: https://{subdomain|subdomain}.zendesk.com/oauth/tokens; Shopify's client-credentials token endpoint). The sample host must be on allowedDomains. A hidden token_header parameter sends the access token in another header instead of Authorization (Shopify: X-Shopify-Access-Token with an empty header_prefix).

Actions​

An action is one HTTP request. In a workflow it runs as an App Action node.

FieldTypeDefaultDescription
keystringLowercase letters, digits and _ (for example create_issue), at most 64 characters, unique within the app. Saved workflows reference it, so don't rename it.
namestringDisplay name. Required.
descriptionstringShown in the toolbox and the node panel.
methodstringGETGET, POST, PUT, PATCH, DELETE or HEAD, in upper case.
pathstringStarts with / and is relative to the base URL, or an absolute https:// URL. In an official app an absolute URL must be on allowedDomains (Dropbox uploads go to content.dropboxapi.com while the base URL is api.dropboxapi.com). {name} placeholders are filled from path inputs.
queryobjectConstant query parameters (string values). Query inputs with the same name replace them.
headersobjectConstant headers. Header inputs with the same name replace them, and these headers win over the app's default headers.
bodyobjectA constant JSON body that body inputs are merged into, for example a GraphQL query. Not allowed for GET and HEAD.
bodyTypestringjsonjson sends application/json. form sends application/x-www-form-urlencoded, with bracket notation for nesting (metadata[plan]=pro, items[0][price]=x). multipart (actions only) sends multipart/form-data: file inputs become file parts, other values text fields (objects as JSON). related and raw (actions only) are for uploads. binary (actions only) sends the raw bytes of the action's one file input as the body (text as UTF-8); other body inputs must go to argsHeader.
argsHeaderstringActions only. Send the JSON object built from the (non-file) body inputs in this header instead of the body, with non-ASCII characters escaped as \uXXXX (Dropbox Dropbox-API-Arg).
bodyPathstringDot path that body inputs are placed under, unless an input sets its own bodyPath.
inputsobject[][]The inputs users fill in on the node.
paginationobjectPagination, or null.
outputobjectOutput: an optional select path and a JSON schema.
messageobjectBuild an email from the in: "message" inputs: { "bodyPath": "raw", "encoding": "base64url" }.
prefetchobjectA request sent first whose response fills empty inputs.
errorPathstringDot path of errors this action returns in a 2xx body, for example a GraphQL mutation's data.productCreate.userErrors. A non-empty value fails the step with its message(s). See Errors in a 2xx response.
timeoutSecondsnumberSuggested time limit per request, 1–300 (default 30). Used when the step leaves its own empty; set it for big uploads and downloads.
maxResponseSizeMbnumberSuggested response size limit, 1–1024 MB (default 250). Used when the step leaves its own empty.

Inputs​

Inputs are shared by actions and triggers. Each input becomes a field on the node. On an App Action, string values can contain expressions such as {{ $nodes['Webhook'].body.title }}. App Trigger inputs must be fixed values: polling runs outside a workflow execution, so there is nothing to evaluate an expression against. A workflow whose App Trigger input contains {{ fails validation with Trigger input "x" contains an expression ({{ … }}). App Trigger inputs must be fixed values: expressions can't be evaluated when polling., and a trigger enabled before that check fails each poll with a similar message.

FieldTypeDefaultDescription
keystringLowercase letters, digits and _, at most 64 characters, unique within the action. The node stores the value under this key.
namestringkeyThe name on the wire: the path placeholder, query parameter, header or body field. Use it when the API's name isn't a valid key, for example "key": "team_id", "name": "teamId".
labelstringField label. Required.
descriptionstringHelp text under the field.
placeholderstringPlaceholder text.
typestringstringSee Input types.
multilinebooleanby typestring and text inputs only. true shows a multi-line field (Enter adds a line break), false a one-line field. Without it, text inputs are multi-line and string inputs one line.
requiredbooleanfalseThe node can't run without a value. Path inputs must be required.
instringbodyWhere the value goes: path, query, header, body, message (a part of an email) or local (not sent; see Local inputs and templates).
bodyPathstringBody inputs only. The full dot path of the value in the body. $ means the value is the whole body.
defaultanyUsed when the node leaves the input empty.
optionsobject[]select only: [{ "value": "open", "label": "Open" }, …]. Required for select.
wrapobjectBody inputs: a template the value is wrapped in, with "$" where the value goes. Each item of an array value is wrapped: { "email": "$" } turns a@x.com, b@y.com into [{ "email": "a@x.com" }, { "email": "b@y.com" }]. Object items keep their fields and get the template's constant fields they lack, constants first (Microsoft Graph attachments use { "@odata.type": "#microsoft.graph.fileAttachment" }).
appendbooleanfalseBody inputs: add the value (or its items) to the array at bodyPath instead of replacing it. Inputs are applied in the order they're listed.
valueFromstringWhen left empty, use the value of this other input of the same action (also satisfies required). A text input filled from a file input gets the file's name.
fileFieldsobjectfile inputs in a JSON body: property names for each attachment, { "content": "content", "filename": "filename", "contentType": "type" }. content (base64) is required. The value is then always an array of attachment objects.

Input types​

The value from the node is converted to the declared type before the request is built:

TypeField on the nodeConversion
stringOne-line textSent as is.
textMulti-line text: Enter adds a line break, Ctrl/Cmd+Enter applies; the field grows to about 10 lines, then scrollsSent as is, line breaks included. Use it for messages, bodies, descriptions, comments and notes.
numberNumber"5" becomes 5, "2.5" becomes 2.5. Anything else fails with Input 'x' must be a number.
booleanToggle"true" and "false" become booleans. Anything else fails.
arrayListA JSON array string is parsed. "a, b, c" becomes ["a", "b", "c"]. A single value becomes a one-item array.
objectJSONA JSON string is parsed. Invalid JSON fails with Input 'x' is not valid JSON.
selectDropdownThe value must be one of the options values.
datetimeDate and timeDate values are sent as ISO 8601 (2026-11-13T09:30:00.0000000+00:00). Text is sent as is.
fileExpressionActions only, body inputs. A file from another block, such as {{ $nodes.Download.output.file }}, or a list of files. In a multipart or related body it's sent as a file part, in a raw body as the body itself (stored files are streamed, up to 250 MB per action); in a JSON body as base64 text, or as attachment objects with fileFields (25 MB per action). Also the attachments of an email. Text (a URL or a provider's file id) is sent as is.

Where inputs go​

inBehaviour
pathReplaces {name} in the path, URL-encoded. Must be required and scalar (not array or object), and every placeholder needs a matching path input. An empty value fails with Input 'x' is required (used in the URL path). Inside single quotes (an OData string literal such as Graph's search(q='{query}')), a ' in the value is doubled, so O'Brien is sent as O''Brien.
queryAdded as a query parameter and URL-encoded. Arrays are joined with commas, except when the wire name ends in [] (statuses[]): then the parameter is repeated per element. Empty values are left out.
headerSent as a header. The wire name must be a valid header name, and the value must not contain line breaks.
bodySet in the JSON (or form) body at the input's bodyPath, else at bodyPath.name on the action, else at the top level as name. Not allowed when the method is GET or HEAD. Empty values are left out.

Body inputs build up one object. The Linear create_issue action sends a GraphQL mutation with the inputs nested under variables.input:

{
"key": "create_issue",
"name": "Create issue",
"method": "POST",
"path": "/graphql",
"body": {
"query": "mutation IssueCreate($input: IssueCreateInput!) { issueCreate(input: $input) { success issue { id identifier title url createdAt } } }"
},
"bodyPath": "variables.input",
"inputs": [
{ "key": "team_id", "name": "teamId", "label": "Team ID", "type": "string", "required": true, "in": "body" },
{ "key": "title", "label": "Title", "type": "string", "required": true, "in": "body" },
{ "key": "label_ids", "name": "labelIds", "label": "Label IDs", "type": "array", "in": "body" }
],
"output": { "select": "data.issueCreate" }
}

With Team ID TEAM-1 and Title Broken login, the request body is:

{
"query": "mutation IssueCreate($input: IssueCreateInput!) { … }",
"variables": { "input": { "teamId": "TEAM-1", "title": "Broken login" } }
}

An input's own bodyPath puts it anywhere in the body. From Notion's create_page and Stripe's create_payment_intent:

{ "key": "database_id", "label": "Database ID", "type": "string", "in": "body", "bodyPath": "parent.database_id" }
{ "key": "automatic_payment_methods", "label": "Automatic payment methods", "type": "boolean", "in": "body",
"bodyPath": "automatic_payment_methods.enabled", "default": true }

Stripe's API expects form bodies, so its actions set "bodyType": "form". A header input sets an idempotency key:

{
"key": "create_customer",
"name": "Create customer",
"method": "POST",
"path": "/v1/customers",
"bodyType": "form",
"inputs": [
{ "key": "email", "label": "Email", "type": "string", "in": "body" },
{ "key": "metadata", "label": "Metadata", "type": "object", "in": "body" },
{ "key": "idempotency_key", "name": "Idempotency-Key", "label": "Idempotency key", "type": "string", "in": "header" }
]
}

Pagination​

With pagination, an action fetches several pages and returns all items. The fields match the HTTP Request block's pagination options:

FieldDescription
modeoffset, page, cursor, linkHeader or nextLink. Required.
paramQuery parameter that carries the offset, page number or cursor. Defaults to offset, page or cursor. Not used by linkHeader or nextLink.
startFirst offset or page number. Defaults to 1 for page and 0 for offset.
pageSizeItems per page. Required for offset. For offset and page, a page with fewer items ends the loop.
pageSizeParamQuery parameter that carries pageSize.
cursorPathcursor and nextLink, required: dot path of the next cursor (or, for nextLink, of the next page's full URL) in the response. A field whose name contains dots, like @odata.nextLink, can be written as it is. An empty value ends the loop.
itemsPathDot path of the item array in each page. Empty means the response is the array.
maxPagesPage limit, 1 to 1000. Defaults to 10. The node can turn pagination off or lower the limit.

linkHeader follows the rel="next" URL in the Link response header until there is none. nextLink follows the full URL of the next page found in the response body at cursorPath (Microsoft Graph's @odata.nextLink, many APIs' next), as it is: it already carries the query and the page token. Blokkio only follows a next link to the same server as the request it came from, so the connection's credentials never go anywhere else. Paging also stops at the first empty page.

"pagination": { "mode": "nextLink", "cursorPath": "@odata.nextLink", "itemsPath": "value", "maxPages": 10 }
"pagination": { "mode": "cursor", "param": "cursor", "cursorPath": "response_metadata.next_cursor", "itemsPath": "channels", "maxPages": 10 }
"pagination": { "mode": "linkHeader", "itemsPath": "items", "maxPages": 10 }

A paginated action outputs { "items": [...], "pages": 3 }.

Output​

FieldDescription
selectDot path of the part of the response to output, for example data.issueCreate or user. Ignored when the action paginates.
schemaA JSON schema object of the output. The editor uses it to suggest fields in the expression picker. It doesn't change the data.
messageDot path of a base64url/base64-encoded email in the response (Gmail format=raw: raw). It's parsed and its fields replace the encoded text: subject, from, fromName, fromAddress, to, cc, replyTo (address lists), date, messageId, inReplyTo, references, text, html and attachments ([{ filename, contentType, size, file }], each file usable by other blocks).
table{ "matchColumn": "<input>", "matchValue": "<input>" }. After select, a list of rows (lists of cells, header row first) becomes objects keyed by the header (Column 3 for a blank header, Name 2 for a repeated one) plus _row, the row's position in the range (header = 1). Empty rows are skipped. When the matchValue input has a value, only rows whose cell in the matchColumn column (a header name, or a column letter) equals it, ignoring case and surrounding spaces. An unknown column fails with there is no column 'X' (columns: …).
fileNameKey of an input whose value renames a downloaded file (Google Drive sends file content without a name).
fileNameFrom{ "header": "<name>", "path": "<dot path>" }: a response header that names a downloaded file, optionally a dot path into its JSON value. Dropbox: { "header": "Dropbox-API-Result", "path": "name" }. Without it, a Content-Disposition file name is used, then the last part of the URL. fileName wins over both.

The output is always an object:

Response (after select)Node output
An objectThe object
An array{ "items": [...], "count": n }
A scalar{ "value": ... }
Empty{}

So Slack's get_user action, with "select": "user", outputs the user object itself. A later node reads {{ $nodes['Get user'].profile.email }}.

Local inputs and templates​

An input with "in": "local" is shown on the node but not sent by itself. Use it in:

  • {input} placeholders in constant query and header values: "query": { "q": "'{folder_id}' in parents and trashed = false" }, "headers": { "Prefer": "outlook.timezone=\"{time_zone}\"" }. Placeholders take any input (by key or wire name). When a placeholder's value is empty, the whole parameter or header is left out, so templates also work for optional filters. An optional placeholder {name?} is replaced by nothing instead and keeps the parameter: "query": "type:ticket created>24hours {filter?}" (Zendesk New ticket).
  • a prefetch path, valueFrom, or output.table / output.fileName.

Triggers can use local inputs in their query templates too (Google Drive New file in folder).

Emails​

Some APIs take a whole email (Gmail's raw). Give the action "message": { "bodyPath": "raw", "encoding": "base64url" } and inputs with "in": "message". Blokkio builds an RFC 5322 message from them, encodes it (base64url, the default, or base64) and sets it at bodyPath of the JSON body; other body inputs (Gmail's threadId) go next to it.

Wire namePart
from, to, cc, bcc, replyToAddresses: Ada Lovelace <ada@example.com>, bob@example.com. Use type: "string" so names with commas survive. An invalid address fails with 'x' in 'to' is not a valid email address.
subjectSubject. Non-ASCII text is encoded.
text, htmlPlain and HTML bodies (both: a multipart/alternative message).
attachmentsA file input.
inReplyTo, referencesReply threading. With inReplyTo, its id is added to References and the subject gets Re: unless it has it.

Prefetch​

"prefetch": { "method": "GET", "path": "/users/me/messages/{message_id}", "query": { … }, "set": { "<input>": "<path>" } } sends a read request before the action, with the same credentials, retries and token refresh. Its path placeholders take any input of the action, usually local ones. Each set entry fills an input the user left empty from a dot path in the JSON response, or from the first non-empty of a list of paths. Paths can select an array item by a field: payload.headers[name=Message-ID].value (case-insensitive). If the prefetch answers with an error status, the step fails and the action isn't sent.

Gmail's Reply to email reads the original's threadId, From/Reply-To, Subject, Message-ID and References this way; Drive's and OneDrive's Download file read the file name for output.fileName.

Upload bodies​

bodyTypeRequest
relatedmultipart/related, the Google upload protocol (uploadType=multipart): the first part is the JSON of every body field that isn't a file, then each file with its own media type. Needs a top-level file input. Without a file the step fails with Choose a file to upload.
rawThe single body input (with "bodyPath": "$") is the whole body: a file, sent with its media type, or text as text/plain. OneDrive's PUT …:/{file_name}:/content.

Files stored by other blocks are copied to a temporary file and streamed into the request (also on retries), so uploads in multipart, related and raw bodies can be up to 250 MB per action; the copy is deleted afterwards. Files sent inside JSON (base64) or emails are held in memory and limited to 25 MB. A file response is saved to temporary storage and the action outputs { "file": …, "fileName": "…", "contentType": "…" }; the App Action's maxResponseSizeMb option (default 250, up to 1024) caps the size.

Errors in a 2xx response​

A non-2xx response fails the action with HTTP <status> <reason> and the start of the body (unless the node's Never fail on API errors option is on, which outputs error, statusCode and body instead). Some APIs answer 200 and put the error in the body. Two top-level fields cover them:

  • okPath: dot path to a boolean. When it is false, the action fails with the value at errorPath, or with "the API reported a failure". Slack uses "okPath": "ok", "errorPath": "error".
  • errorPath without okPath: a non-empty value at that path fails the action. Linear (GraphQL) uses "errorPath": "errors". For an array of { "message": … } objects, the messages are joined with ; .
  • An action's own errorPath: GraphQL mutations often report validation problems in the mutation's payload instead (Shopify: "errorPath": "data.productCreate.userErrors" on create_product). A non-empty value there fails the step with the messages, which is what the node's error port receives. It is checked before the top-level rules.

Triggers apply the same rules to every poll.

Triggers​

A trigger is a polling trigger unless it is an instant (webhook) trigger. On each poll the App Trigger runs the request, takes the item array, drops items it has already seen and starts one run per new item.

FieldTypeDefaultDescription
keystringSame rules as an action key. Unique among the app's triggers.
namestringDisplay name. Required.
descriptionstringShown in the toolbox and the node panel.
typestringpollingpolling, or webhook for an instant trigger.
requestobjectmethod (GET or POST, default GET), path, and optional query, headers, body (only with POST), bodyType and bodyPath. Same meaning as on an action.
inputsobject[][]Inputs on the trigger itself (not inside request). in must be path, query or header; body only with POST.
itemsPathstring$Where the items are: $ when the response is the array, or a dot path such as data or hits. The value must be an array, else the poll fails.
dedupKeystringDot path of the field that identifies an item, for example id or user.id. Required. Items without it are keyed by their whole JSON. Several paths joined with + make a composite key: id+updated_at starts a run for every new version of an item (Zendesk New or updated ticket).
orderBystringDot path of a field that grows with newer items (a date or a number). New items are emitted oldest first, and items older than the newest seen value are never emitted again.
orderByFormatstringdateWhat orderBy holds: date (an ISO 8601 date and time), unixSeconds (Unix time in seconds, fractions allowed: Stripe created, Slack ts) or unixMilliseconds. It lets the first successful check start runs for items created since publishing (see below). Leave it out for a plain increasing number such as an id.
excludeIfPresentstring[]Items where any of these fields is set (not null) are skipped.
onlyIfPresentstring[]Only items where all of these fields are set count; others are skipped (OneDrive file, Dropbox rev: folders are skipped).
readFromstringstartstart reads from the first page. end is for APIs that list oldest first: it follows the Link header to the last page (rel="last") and reads it together with the page before it. all is for APIs that can't sort newest first and have no Link header (Asana tasks, Airtable records): every poll, including the first, reads all pages up to maxPages and relies on dedupKey and the orderBy watermark.
paginationobjectHow to fetch the next page when one poll finds more new items than a page holds. See Trigger pagination. Can't be combined with readFrom: "end".
outputobjectschema for the expression picker. Each run receives the item itself.

How polling works:

  • First poll: items created since the trigger was published start runs (up to the last 24 hours and the newest 50, even if earlier checks failed); everything older is recorded as seen. This needs orderBy to be a date or Unix time (orderByFormat): a plain number such as an id can't be compared with the publish time, so then every item the first successful check reads is recorded as seen. With readFrom: "start", this seeding poll reads one page only: older items are behind the watermark anyway.
  • Later polls: items whose dedupKey hasn't been seen start one run each, oldest first. With readFrom: "start" a poll reads up to maxPages pages, 5 by default (see Trigger pagination).
  • Watermark: with orderBy, the trigger keeps the newest value it has seen. Items older than that are never emitted again, even after their de-duplication records expire.
  • A 401 refreshes OAuth credentials once and retries. Responses over 10 MB and non-JSON responses fail the poll.

Trigger pagination​

A trigger with readFrom: "start" expects the newest items on the first page. If more new items arrived since the last poll than one page holds, the trigger reads further pages in the same poll:

  • It reads at most maxPages pages per poll (1 to 10, default 5). If it runs out of pages before reaching items it has already seen, it saves the next page as a backlog and the next poll continues from there, so a burst bigger than the cap isn't lost. It is picked up over the following polls.
  • Before fetching another page, it checks the page it just read. It stops at the first page that contains an item already seen (its dedupKey is recorded) or an item at or older than the orderBy watermark. An empty page also stops it.
  • The seeding first poll reads only one page.

The next page comes from pagination, which has the same shape as action pagination. A trigger uses these fields:

FieldDescription
modeoffset, page, cursor or linkHeader. Required.
paramName of the parameter that carries the offset, page number or cursor. Defaults to offset, page or cursor. Not used by linkHeader.
startOffset or page number of the first request. Defaults to 1 for page and 0 for offset. The second page is start + 1 (page) or start + pageSize (offset).
pageSizeItems per page. Required for offset. For offset and page, a page with fewer items is the last one.
cursorPathcursor only, required: dot path of the next cursor in the response (a string or a number). An empty or missing cursor is the last page.
pageSizeParamParameter that carries pageSize: a query parameter for GET, a JSON body property for POST. Requires pageSize.
itemsPathDot path of the items in each page (or $). Overrides the trigger's own itemsPath.
maxPagesPages read per poll, 1 to 10. Defaults to 5.

For a GET request, the offset, page number, cursor and page size are set as query parameters. For a POST request they are set as top-level properties of the JSON body. Without pagination, the trigger follows a Link: <…>; rel="next" response header when the API sends one, which is the same as "mode": "linkHeader". This is intended, so GitHub-style APIs page without extra configuration.

Notion's new_database_item trigger queries a database with POST and passes Notion's cursor in the body as start_cursor:

{
"key": "new_database_item",
"name": "New database item",
"type": "polling",
"request": {
"method": "POST",
"path": "/databases/{database_id}/query",
"body": { "sorts": [ { "timestamp": "created_time", "direction": "descending" } ], "page_size": 50 }
},
"inputs": [
{ "key": "database_id", "label": "Database ID", "type": "string", "required": true, "in": "path" }
],
"itemsPath": "results",
"dedupKey": "id",
"orderBy": "created_time",
"pagination": { "mode": "cursor", "param": "start_cursor", "cursorPath": "next_cursor" }
}

Slack's new_channel_message uses GET /conversations.history with "pagination": { "mode": "cursor", "param": "cursor", "cursorPath": "response_metadata.next_cursor" }, so the cursor goes into the query string.

Trigger examples​

Two triggers from github.json. new_issue skips pull requests, which GitHub also returns from the issues endpoint:

{
"key": "new_issue",
"name": "New issue",
"type": "polling",
"request": {
"method": "GET",
"path": "/repos/{owner}/{repo}/issues",
"query": { "state": "all", "sort": "created", "direction": "desc", "per_page": "50" }
},
"inputs": [
{ "key": "owner", "label": "Owner", "type": "string", "required": true, "in": "path" },
{ "key": "repo", "label": "Repository", "type": "string", "required": true, "in": "path" },
{ "key": "labels", "label": "Only with labels", "type": "string", "in": "query" }
],
"itemsPath": "$",
"dedupKey": "id",
"orderBy": "created_at",
"excludeIfPresent": ["pull_request"]
}

GitHub lists stargazers oldest first, so new_star reads from the end:

{
"key": "new_star",
"name": "New star",
"type": "polling",
"request": {
"method": "GET",
"path": "/repos/{owner}/{repo}/stargazers",
"query": { "per_page": "100" },
"headers": { "Accept": "application/vnd.github.star+json" }
},
"inputs": [
{ "key": "owner", "label": "Owner", "type": "string", "required": true, "in": "path" },
{ "key": "repo", "label": "Repository", "type": "string", "required": true, "in": "path" }
],
"itemsPath": "$",
"dedupKey": "user.id",
"orderBy": "starred_at",
"readFrom": "end"
}

Instant (webhook) triggers​

A trigger with "type": "webhook" is instant: Blokkio registers a webhook with the provider when the workflow is published, verifies each delivery and starts a run per accepted event (see App triggers). It has no request, itemsPath, dedupKey or pagination; its inputs must be in: "local" (they fill templates and filters).

FieldTypeDescription
webhook.registerobjectThe request that creates the webhook: method (POST, PUT, PATCH, GET, DELETE), path (relative to the base URL, or an https URL on allowedDomains), optional query, headers, body, bodyType (json or form) and errorPath. Must send {webhook_url}. Without register the trigger is set up by hand and needs setup.
webhook.unregisterobjectThe request that removes it (same shape). Required with register. A 404 or 410 answer counts as removed.
webhook.idPathstringDot path of the provider's webhook id in the register response (id). Without it the id is {webhook_tag} (providers where Blokkio names the webhook, such as Typeform tags).
webhook.secretobjectWhere the signing secret comes from, exactly one of: generate: true (Blokkio makes a random 256-bit secret and sends it as {webhook_secret}), responsePath (the provider returns it, Stripe secret), fields (connection fields, first non-empty wins: Shopify client_secret, Slack signing_secret). Stored encrypted.
webhook.signatureobjectpreset: github, stripe, slack, shopify, hmac (with headerName, algorithm sha256/sha512/sha1, format hex/base64, prefix, optional timestampHeader) or token (the secret itself is sent in headerName, GitLab). toleranceSeconds for timestamped presets (default 300). Required for official apps.
webhook.filterobject[]Conditions every delivery must meet to start a run; others are answered 200 and ignored. Each has a path into the delivery (headers.x-github-event with lower-case header names, body.action, query.x, method) and one of equals (case-insensitive), oneOf (list) or input (a trigger input with a list or comma-separated values; empty means any).
webhook.eventIdPathstringDot path of the provider's delivery or event id (headers.x-github-delivery, body.id). A delivery with an id seen in the last 24 hours doesn't start another run.
webhook.challengeobjectA URL check the provider sends: when (a condition) and respond (dot path of the value echoed back as text), for Slack's url_verification. Answered for any known URL, also before publishing.
webhook.setupstringManual setup steps shown next to the URL in the editor (one step per line).
output.selectstringDot path into the delivery of the run's trigger output. Default body. Stripe uses body.data.object, Typeform body.form_response.

Templates in register and unregister: {input} (any trigger input) and the variables {webhook_url} (the delivery URL), {webhook_secret} (with secret.generate), {webhook_tag} (blokkio- plus a unique id) and {webhook_id} (unregister only). Path placeholders are URL-encoded and must not be empty. In query and headers a parameter with an empty placeholder is left out. In the body a string that is exactly "{name}" takes the value with its type (a list input stays a list) and an empty value removes the property; inside a longer string the text is inserted.

Lifecycle. Webhooks are registered on publish with the connection's settings for the workflow's environment, inside the publish: a refusal fails the publish with the provider's answer. A changed connection, input or environment registers a new webhook under a new URL and then removes the old one. Unpublishing, pausing, deleting the workflow or deleting the connection removes it. Deliveries arrive on /api/app-webhook/{token}.

{
"key": "new_issue_instant",
"name": "New issue (instant)",
"type": "webhook",
"inputs": [
{ "key": "owner", "label": "Owner", "type": "string", "required": true, "in": "local" },
{ "key": "repo", "label": "Repository", "type": "string", "required": true, "in": "local" }
],
"webhook": {
"register": {
"method": "POST",
"path": "/repos/{owner}/{repo}/hooks",
"body": { "name": "web", "active": true, "events": ["issues"],
"config": { "url": "{webhook_url}", "content_type": "json", "secret": "{webhook_secret}" } }
},
"unregister": { "method": "DELETE", "path": "/repos/{owner}/{repo}/hooks/{webhook_id}" },
"idPath": "id",
"secret": { "generate": true },
"signature": { "preset": "github" },
"eventIdPath": "headers.x-github-delivery",
"filter": [
{ "path": "headers.x-github-event", "equals": "issues" },
{ "path": "body.action", "equals": "opened" }
]
},
"output": { "schema": { "type": "object", "properties": { "issue": { "type": "object" } } } }
}

Validation also checks that placeholders are inputs or webhook variables, {webhook_id} is only used to unregister, {webhook_secret} needs secret.generate, filter inputs exist and official apps declare a signature and an output schema.

Paths​

Every path field (dedupKey, orderBy, itemsPath, select, bodyPath, okPath, errorPath, cursorPath) is a dot path: names separated by ., with no empty segments or spaces. Numbers index into arrays (items.0.id). $ (or an empty value, where allowed) means the root, and a leading $. is ignored.

Validation​

The validator reports every problem at once, each prefixed with the JSON path of the field, for example:

actions[2].inputs[0].in: must be one of path, query, header, body.
triggers[0].dedupKey: is required.
actions[1].path: placeholder {issue_number} has no matching path input.

Official manifests are validated when the API loads them. Any error stops the catalogue sync, and the API log lists each error with its file name (github.json: actions[0].name: is required.).

Custom app manifests are validated with the custom rules when the app is saved, through the builder or the API. An invalid manifest is rejected with 400 Bad Request and nothing is stored. Each error is keyed by its path with a manifest. prefix:

{
"title": "One or more validation errors occurred.",
"status": 400,
"errors": {
"manifest.actions[0].inputs[1].label": ["actions[0].inputs[1].label is required."],
"manifest.triggers[0].pagination": ["triggers[0].pagination can't be combined with readFrom 'end'."]
}
}

The same save also rejects a custom app whose kind isn't HTTP, keyed kind: "Custom apps are HTTP only: use the official PostgreSQL, MySQL, SQL Server, SFTP, IMAP or SMTP apps for those connections." See Custom apps: saving and validation.

Rules for actions and triggers​

These apply to official and custom manifests.

FieldMessage
key (action, trigger, input)is required. / must be lowercase letters, digits and '_' (e.g. create_issue). / duplicate action key 'x'. (also trigger and input)
name (action, trigger)is required.
errorPath (action)must be a dot path.
methodmust be one of GET, POST, PUT, PATCH, DELETE, HEAD.
pathis required. / must start with '/' (relative to baseUrl). (custom: must start with '/' (relative to the base URL) or be an https URL.) / placeholder {x} has no matching path input.
bodyTypemust be 'json', 'form', 'multipart', 'related', 'raw' or 'binary'. / a raw body needs exactly one body input, with bodyPath '$'. / a related (upload) body needs a file input. / multipart is not allowed for GET requests. / multipart is only supported for actions. (triggers) / a binary body needs exactly one 'file' body input (its bytes are the body). / a binary body carries only the file: send the other body inputs in 'argsHeader' or as query/header inputs.
bodymust be a JSON object. / is not allowed for GET requests.
bodyPathmust be a dot path.
headers.<name>is not a valid header name.
inputs[i].labelis required.
inputs[i].typemust be one of string, text, number, boolean, array, object, select, datetime, file. / file inputs need a 'json' or 'multipart' body. / file inputs are only supported for actions.
inputs[i].wrapmust be a JSON object containing "$" (where the value goes), on a body input.
inputs[i].appendis only valid for body inputs.
inputs[i].valueFrommust name another input of this request.
inputs[i].fileFieldsis only valid for file inputs. / must map 'content'.
inputs[i].inmust be one of path, query, header, body, message, local. / 'message' inputs need the action's 'message' (where the email goes). / message inputs are only supported for actions. / path input 'x' has no {x} placeholder in the path. / body inputs are not allowed for GET requests.
inputs[i].requiredpath inputs must be required.
inputs[i].type (path)path inputs must be scalar.
inputs[i].optionsa select input needs options.
inputs[i].bodyPathis only valid for body inputs. / must be a dot path (e.g. variables.input.title) or '$'.
inputs[i].name (header)is not a valid header name.
pagination.modemust be one of offset, page, cursor, linkHeader. (actions and triggers)
pagination.cursorPathis required for cursor pagination.
pagination.pageSizeis required for offset pagination.
pagination.maxPagesmust be between 1 and 1000.
output.schemamust be a JSON schema object.
output.selectmust be a dot path.
triggers[i].typemust be 'polling'.
triggers[i].request.methodmust be GET or POST.
triggers[i].request.path, .body, .headers.<name>Same messages as an action's path, body and headers.
triggers[i].dedupKeyis required. / must be a dot path.
triggers[i].itemsPathis required ('$' when the response is the array).
triggers[i].readFrommust be 'start' or 'end'.
triggers[i].orderBymust be a dot path.
triggers[i].orderByFormatmust be one of: date, unixSeconds, unixMilliseconds. / needs orderBy.
triggers[i].paginationcan't be combined with readFrom 'end'.
triggers[i].pagination.maxPagesmust be between 1 and 10 for triggers (pages read per poll).
triggers[i].pagination.itemsPathmust be a dot path or '$'.
triggers[i].pagination.pageSizeis required with pageSizeParam.
triggers[i].inputs[j].intrigger inputs must be 'path', 'query' or 'header' (body only with POST).
testRequest.methodmust be GET, HEAD or POST.
testRequest.bodyis only allowed for POST test requests. / must be a JSON object.

Rules for official manifests only​

FieldMessage
slugis required. / must be lowercase letters, digits and '-' (max 49 characters). / 'x' does not match the file name (y.json). / 'x' is used by more than one manifest.
nameis required.
versionmust be a semantic version (e.g. 1.0.0).
categoryis required.
descriptionmust be at most 1000 characters.
docsUrlmust be an absolute https URL.
iconmust be SVG markup or an https URL. / must not contain scripts. / must not reference external resources. and the other icon rules
kindmust be one of http, database, sftp, imap, smtp.
okPath, errorPathmust be a dot path.
oauthProvidermust be lowercase letters, digits and '-' (e.g. google).
baseUrlmust be an absolute https URL. / is only supported for http apps (kind 'database').
actions, triggersare only supported for http apps (kind 'database').
allowedDomainsat least one domain is required (credentials are pinned to these hosts). / must include the base URL host 'api.github.com'. / allowedDomains[0]: must be a host name or glob (e.g. api.github.com, *.slack.com).
defaultHeaders.<name>is not a valid header name. / credentials belong in an auth variant, not default headers.
testRequestis required: a harmless read request that proves the credentials work (or 'unsupported' with the reason there is none).
testRequest.pathmust be a path relative to baseUrl, starting with '/'.
testRequest.unsupportedcan't be combined with a path.
actions[i].output.schema, triggers[i].output.schemais required (it feeds the expression picker).
baseUrl placeholdersauth[0].config: the base URL uses {x}, so every auth variant needs a 'x' parameter. / placeholder {x|f}: unknown filter (supported: afterLast:<text>, subdomain). / triggers: aren't supported when the base URL contains the sensitive field 'x' (trigger state stores request URLs).
authat least one auth variant is required.
auth[i].keyduplicate auth key 'x'. / the variant slug would exceed 100 characters.
auth[i].labelis required.
auth[i].typemust be one of OAuth2, ApiKey, BearerToken, BasicAuth, AIProvider, Fields, None. / 'Fields' is for non-http kinds. / kind 'sftp' requires type 'Fields'.
auth[i].platformOAuthAppis only valid for OAuth2.
auth[i].configmust be an object with a 'parameters' array. / OAuth2 apps must define 'auth_url' with a default value. / 'auth_url' must be an https URL. / 'client_id' must not be user-editable when platformOAuthApp is true (it is injected from Apps:OAuth:github). / parameter 'client_secret' must not ship a default value.
auth[i].config.parameters[j]key: is required. / key: duplicate parameter 'x'. / ui: is required.

Errors when a request is built​

Some problems only show up when a node runs:

MessageCause
Missing required input(s): Title (title).A required input is empty and has no default.
Input 'x' is required (used in the URL path).A path input resolved to an empty value.
Input 'x' must be one of open, closed (got 'y').A select value that isn't an option.
Header input 'x' must not contain line breaks.A header value with \r or \n.
'/path' is relative but the app has no base URL.A custom app without a base URL uses a relative path.
A form body must be an object.bodyType: form with a body that isn't an object.