Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

File format reference

This page lists every key of connector.yaml (format version 1). The tutorial shows them in context.

Top level

KeyTypeRequiredDescription
idstringyesLowercase snake_case connector ID. Node kinds are connector.<id> and connector.<id>_trigger.
format_versionintegeryes1.
display_namestringyesName shown in the node picker.
descriptionstringnoOne sentence shown under the name.
categorylist of stringsnoPicker categories, for example [communication], [crm, sales].
iconstringnosimple-icons:<slug> or lucide:<name>.
docs_urlstringnoThe vendor’s developer documentation home.
provenancelist of URLsyesVendor pages the connector was written from. Enforced by tappet lint provenance.
base_urlstringnoPrefix for every request path. May be a template over credential (for per-account hosts).
authlistnoAuthentication alternatives. See Authentication. Omit for public APIs.
defaultsobjectnoheaders, query and timeout_ms applied to every request.
rate_limitobjectnoRetry and throttling policy. See Errors, retries and rate limits.
errorsobjectnoHow to detect failures and extract messages.
resourcesmapnoResources and their operations.
lookupsmapnoDynamic dropdowns and resource-locator lists. See Pagination and lookups.
url_patternsmapnoRegexes that turn pasted URLs into IDs, per parameter name.
triggersmapnoPoll 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.

KeyDefaultDescription
side_effectfalseThe 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_itemtrueRun once per input item. false runs once per node run, with all items in items.
requestA single HTTP request.
stepsSeveral requests in sequence. See Multi-step operations.
nativeName of a registered Rust hook. See Native hooks.
paginatePagination for list operations. Adds return_all / limit handling.
outputwhole bodyHow 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: []
TypeValueNotes
stringstring
numbernumber
booleanboolean
optionsone valueoptions: lists scalars or { value, label, description }; or lookup: for dynamic options.
multi_optionsarraySame option sources.
jsonany JSONEdited as JSON.
datetimeISO 8601 string
resource_locatorstring IDList mode uses lookup:; URL mode uses url_patterns.<name>; ID mode passes through. Imported { "__rl": true, ... } values are unwrapped before the connector sees them.
collectionobjectOptional fields grouped under one parameter (fields: lists them).
fixed_collectionarray of objectsRepeatable groups (fields: lists the group’s fields).
binary_propertystringName of a binary property on the input item, usually defaulting to data.
codestringMulti-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
EncoderSends
noneNo body.
jsonapplication/json.
form_urlencodedapplication/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_formmultipart/form-data. fields become text parts; each entry of files (name, binary_property, optional file_name, mime_type) becomes a streamed file part.
multipart_relatedmultipart/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_binaryThe bytes of binary_property, streamed, with its MIME type.
xmlXML built from value or fields, under root.
rfc2822_mimeA 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_when defaults to response.status < 400. Use it for APIs that return 200 with an error flag in the body.
  • retryable_when defaults to 429, connection errors, and 5xx except for non-idempotent requests of side_effect operations. Retries use exponential backoff with jitter and honor Retry-After (unless strategy: backoff). If the vendor supports idempotency keys, send one (for example Idempotency-Key: "{{ params.idempotency_key }}") and set retryable_when explicitly so 5xx responses are retried safely.
  • A 401 on an OAuth2 credential triggers one single-flight token refresh and a retry.
  • Errors surface in workflows as node errors with http_status, vendor_code, message and 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

VariableAvailable inValue
paramseverywhereResolved parameters of the node
credentialrequests, auth templatesCredential fields (secret fields included; never logged)
inputoperationsJSON of the current input item
binaryoperationsBinary properties of the current item: file_name, mime_type, file_size, file_extension
item_indexoperationsIndex of the current input item
itemsper_item: false operations; trigger cursorAll input items / all polled items
steps.<id>multi-step operationsEarlier step responses: status, headers, body, url
each, each_indexfor_each stepsCurrent element and its index
responseerrors, output, success_when, store, exists_whenstatus, headers (lowercase names), body, url
pagepaginated requestsindex, number, offset, cursor
item, indexoutput.map, output.filter, lookups, dedupe_keyCurrent element
statictriggersThe trigger’s stored state (registration IDs, secrets, cursor)
webhook_urltriggersPublic URL the vendor should call
triggerpoll triggerscursor, last_poll_at, last_poll_unix, first_poll, now
previouspoll trigger cursorThe previous cursor
requestwebhook triggersmethod, path, headers, query, body (parsed), raw_body
enveverywhereAllowlisted environment values (empty in multi-tenant mode)

Filters and functions

NameExampleResult
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.