File format reference
This page lists every key of connector.yaml (format version 1). The tutorial
shows them in context.
Top level
| Key | Type | Required | Description |
|---|---|---|---|
id | string | yes | Lowercase snake_case connector ID. Node kinds are connector.<id> and connector.<id>_trigger. |
format_version | integer | yes | 1. |
display_name | string | yes | Name shown in the node picker. |
description | string | no | One sentence shown under the name. |
category | list of strings | no | Picker categories, for example [communication], [crm, sales]. |
icon | string | no | simple-icons:<slug> or lucide:<name>. |
docs_url | string | no | The vendor’s developer documentation home. |
provenance | list of URLs | yes | Vendor pages the connector was written from. Enforced by tappet lint provenance. |
base_url | string | no | Prefix for every request path. May be a template over credential (for per-account hosts). |
auth | list | no | Authentication alternatives. See Authentication. Omit for public APIs. |
defaults | object | no | headers, query and timeout_ms applied to every request. |
rate_limit | object | no | Retry and throttling policy. See Errors, retries and rate limits. |
errors | object | no | How to detect failures and extract messages. |
resources | map | no | Resources and their operations. |
lookups | map | no | Dynamic dropdowns and resource-locator lists. See Pagination and lookups. |
url_patterns | map | no | Regexes that turn pasted URLs into IDs, per parameter name. |
triggers | map | no | Poll and webhook triggers. See Triggers. |
Resources and operations
resources:
<resource>:
display_name: Message
description: ...
operations:
<operation>:
display_name: Send a message
description: ...
side_effect: true
per_item: true
params: [ ... ]
request: { ... } # exactly one of request, steps, native
steps: [ ... ]
native: <hook name>
paginate: { ... }
output: { ... }
errors: { ... } # overrides the connector-level errors
An operation is addressed as <resource>.<operation>, for example message.post.
| Key | Default | Description |
|---|---|---|
side_effect | false | The operation changes data. Non-idempotent requests (POST, PATCH) of a side-effect operation are not retried after a 5xx or a timeout, because the first attempt may have succeeded. 429 and connection failures are still retried. |
per_item | true | Run once per input item. false runs once per node run, with all items in items. |
request | A single HTTP request. | |
steps | Several requests in sequence. See Multi-step operations. | |
native | Name of a registered Rust hook. See Native hooks. | |
paginate | Pagination for list operations. Adds return_all / limit handling. | |
output | whole body | How the response becomes output items. |
Parameters
params:
- name: channel
display_name: Channel
type: resource_locator
required: true
default: null
description: Where to post. Pick from the list, paste an ID, or paste a link.
placeholder: C0123456789
options: []
lookup: channels
depends_on: []
show_when: { operation: [post] }
fields: []
| Type | Value | Notes |
|---|---|---|
string | string | |
number | number | |
boolean | boolean | |
options | one value | options: lists scalars or { value, label, description }; or lookup: for dynamic options. |
multi_options | array | Same option sources. |
json | any JSON | Edited as JSON. |
datetime | ISO 8601 string | |
resource_locator | string ID | List mode uses lookup:; URL mode uses url_patterns.<name>; ID mode passes through. Imported { "__rl": true, ... } values are unwrapped before the connector sees them. |
collection | object | Optional fields grouped under one parameter (fields: lists them). |
fixed_collection | array of objects | Repeatable groups (fields: lists the group’s fields). |
binary_property | string | Name of a binary property on the input item, usually defaulting to data. |
code | string | Multi-line code or query text. |
display_name defaults to the humanized name (thread_ts becomes Thread ts). show_when hides
a parameter unless every listed parameter has one of the listed values.
Requests
request:
method: POST # default GET; may be a template
path: /chat.postMessage # appended to base_url; template
url: https://... # absolute URL instead of path; template
query: { limit: 100 } # object of templates, or one template that yields an object
headers: { X-Trace: "{{ params.trace }}" }
body: { ... }
auth: none # use another auth alternative by id, or none
response: auto # auto | json | text | binary
timeout_ms: 30000
Null and empty-string query values are dropped. Header names are case-insensitive.
Bodies
body:
encoder: json # see table
fields: { ... } # object of templates, merged into the body
value: "{{ ... }}" # or one template producing the whole body
omit_empty: true # drop null / empty values (recursively)
style: brackets # form_urlencoded array and object style
files: [ ... ] # multipart_form file parts
metadata: { ... } # multipart_related JSON part
binary_property: data # raw_binary / multipart_related media part
mime_type: ... # override the binary's MIME type
root: ... # xml root element name
content_type: ... # override the Content-Type header
attachments: ... # rfc2822_mime attachments
| Encoder | Sends |
|---|---|
none | No body. |
json | application/json. |
form_urlencoded | application/x-www-form-urlencoded. Nested arrays and objects follow style: brackets (a[0][b]=1), repeat (a=1&a=2), comma (a=1,2), indices (a[0]=1). |
multipart_form | multipart/form-data. fields become text parts; each entry of files (name, binary_property, optional file_name, mime_type) becomes a streamed file part. |
multipart_related | multipart/related with a JSON metadata part and a media part from binary_property. Used by some upload APIs (for example a “simple upload with metadata”). |
raw_binary | The bytes of binary_property, streamed, with its MIME type. |
xml | XML built from value or fields, under root. |
rfc2822_mime | A MIME email message built from from, to, cc, bcc, subject, text, html and attachments. |
Output
output:
select: "$.data" # JSONPath into the body (or into value)
split: true # one item per array element (default true for arrays)
map: { id: "{{ item.id }}", name: "{{ item.name }}" } # per element, with item and index
filter: "{{ item.archived == false }}" # per element; falsy drops it
value: "{{ {'ok': true, 'id': params.id} }}" # build the output instead of reading the body
from_step: finish # multi-step: which step's response (default: last)
binary: # store the response body as a file instead of parsing it
property: data
file_name: "{{ params.file_name }}"
mime_type: application/pdf
Elements that are not objects are wrapped as { "data": ... } so every output item has an object
as its JSON. Output items are paired with the input item that produced them.
JSONPath subset
$ root (optional), .key, ['key'], [n] (negative counts from the end), and [*] or .*
wildcards. A path with a wildcard returns an array of all matches. Filter expressions are not
supported; use output.filter instead.
Errors, retries and rate limits
errors:
success_when: "{{ response.status < 400 and response.body.ok }}"
message: "{{ response.body.error }}"
vendor_code: "{{ response.body.error_code }}"
retryable_when: "{{ response.status == 429 or response.status >= 500 }}"
rate_limit:
strategy: retry_after # honor Retry-After, else exponential backoff; or: backoff
max_retries: 3
rps: 10 # per-credential token bucket
burst: 20
base_delay_ms: 500
max_delay_ms: 30000
success_whendefaults toresponse.status < 400. Use it for APIs that return200with an error flag in the body.retryable_whendefaults to429, connection errors, and5xxexcept for non-idempotent requests ofside_effectoperations. Retries use exponential backoff with jitter and honorRetry-After(unlessstrategy: backoff). If the vendor supports idempotency keys, send one (for exampleIdempotency-Key: "{{ params.idempotency_key }}") and setretryable_whenexplicitly so5xxresponses are retried safely.- A
401on an OAuth2 credential triggers one single-flight token refresh and a retry. - Errors surface in workflows as node errors with
http_status,vendor_code,messageand a redacted request summary (method and URL, no credentials).
Templates
Strings in connector files can contain {{ }} templates. The template language is a small,
sandboxed expression language with Jinja-style syntax (and, or, not, if ... else ...,
in, filters with |, attribute and index access). It is evaluated in Rust and has no access to
the network, files or the environment beyond env (empty in multi-tenant mode).
It is independent of the JavaScript expressions users write in workflows: by the time a connector runs, every user parameter is already a plain value.
A string that is exactly one {{ }} block keeps its type (number, boolean, array, object, null).
Mixed strings render as text.
Scope
| Variable | Available in | Value |
|---|---|---|
params | everywhere | Resolved parameters of the node |
credential | requests, auth templates | Credential fields (secret fields included; never logged) |
input | operations | JSON of the current input item |
binary | operations | Binary properties of the current item: file_name, mime_type, file_size, file_extension |
item_index | operations | Index of the current input item |
items | per_item: false operations; trigger cursor | All input items / all polled items |
steps.<id> | multi-step operations | Earlier step responses: status, headers, body, url |
each, each_index | for_each steps | Current element and its index |
response | errors, output, success_when, store, exists_when | status, headers (lowercase names), body, url |
page | paginated requests | index, number, offset, cursor |
item, index | output.map, output.filter, lookups, dedupe_key | Current element |
static | triggers | The trigger’s stored state (registration IDs, secrets, cursor) |
webhook_url | triggers | Public URL the vendor should call |
trigger | poll triggers | cursor, last_poll_at, last_poll_unix, first_poll, now |
previous | poll trigger cursor | The previous cursor |
request | webhook triggers | method, path, headers, query, body (parsed), raw_body |
env | everywhere | Allowlisted environment values (empty in multi-tenant mode) |
Filters and functions
| Name | Example | Result |
|---|---|---|
urlencode | {{ params.id | urlencode }} | Percent-encoded component |
base64, base64url, base64_decode | {{ credential.user ~ ':' ~ credential.pass | base64 }} | |
json, from_json | {{ params.filter | json }} | Serialize / parse JSON |
join | {{ params.tags | join(',') }} | Joins non-null values |
omit_empty | {{ params.options | omit_empty }} | Drops null and empty values |
default | {{ params.limit | default(50) }} | Fallback for missing values |
compact, to_list | {{ params.ids | to_list }} | Remove nulls; wrap a scalar in a list |
sha256, md5 | {{ input.email | lower | md5 }} | Hex digest |
a1_range | {{ a1_range(params.sheet, params.range) }} | Spreadsheet range with quoted sheet name |
mime | {{ mime(params) | base64url }} | RFC 2822 message (see rfc2822_mime) |
now(), timestamp(), uuid() | {{ now() }} | RFC 3339 time, Unix seconds, random UUID |
The standard Jinja-style filters (lower, upper, trim, replace, length, map, select,
first, last, min, max, int, float, string, dict, …) are also available.
URL patterns
url_patterns:
spreadsheet: "docs\\.google\\.com/spreadsheets/d/(?<id>[^/]+)"
channel:
- "app\\.slack\\.com/client/[^/]+/(?<id>[CGD][A-Z0-9]+)"
- "slack\\.com/archives/(?<id>[CGD][A-Z0-9]+)"
Keys are parameter names. Each pattern must have a named group id. Patterns are tried in order.