Skip to the content.

Recipes

A recipe tells SyncLane.Http how to fetch one job type over HTTP: the request, how the job’s window is written into it, and where the records are in the answer. It replaces a hand-written IJobHandler for APIs that fit it.

Preview. Recipes run, page, authenticate and keep to a rate budget, and have synced five public APIs, one per paging style (samples/LiveCheck). They have not yet met the APIs of a production integration.

Starting from a curl

You rarely write a recipe from nothing. Copy a request that works, from the API’s documentation, from Postman, or from the browser’s developer tools (“Copy as cURL”), and put synclane init in front of it:

synclane init curl 'https://api.example-shop.com/v2/orders?updated_after=2026-10-01T00:00:00Z&page=1&per_page=100' \
  -H 'Authorization: Bearer <token>'
flowchart LR
    curl["A curl that works"] -->|"synclane init"| draft["orders.jsonc<br/>a comment on every guess"]
    draft -->|"synclane test"| check["two pages, no database<br/>structure, never data"]
    check -->|"fix and test again"| draft
    check -->|"ship it"| app["your app<br/>http.Recipe(...)"]
    ai["your AI assistant<br/>synclane mcp"] -.->|"the same steps, for you"| draft

init sends the request once and writes orders.jsonc from what the answer shows:

Each field it inferred has a comment above it saying why. Notes at the top say what is left for you, such as declaring the rate budget.

The token in the curl is used for that one request and is written nowhere: the recipe’s auth names a credential instead. To keep the token out of your shell history, pipe the curl in: pbpaste | synclane init on macOS, Get-Clipboard | synclane init in PowerShell.

init never replaces a file unless you pass --force; --out names another file. A URL that redirects is refused, because recipes do not follow redirects; the message says what to use instead.

Then run the recipe for two pages, without a database:

synclane test orders.jsonc
Testing example-shop/orders, from 2026-10-24 12:00 to 2026-10-31 12:00 UTC.

Page 1     100 records     412 ms
Page 2     100 records     380 ms

Fields:  id, number, status, updated_at, customer, lines, and 14 more
Key:     $.id, unique across 200 records.
Paging:  page 2 brought new records; more pages follow.

The recipe works.

test runs the recipe through the same handler a job uses.

Credentials. test reads the credential from the environment, or asks for it in the terminal without showing it. The variables are named after the credential:

Auth type Variables (for a credential named example-shop)
bearer, API key SYNCLANE_EXAMPLE_SHOP_TOKEN
basic SYNCLANE_EXAMPLE_SHOP_USERNAME, SYNCLANE_EXAMPLE_SHOP_PASSWORD
OAuth 2.0 SYNCLANE_EXAMPLE_SHOP_CLIENT_ID, SYNCLANE_EXAMPLE_SHOP_CLIENT_SECRET, SYNCLANE_EXAMPLE_SHOP_REFRESH_TOKEN

Options:

What it prints: field names, never their values. It never prints a cursor, a URL or a credential.

Exit code: 1 when the recipe does not work, so the command also runs in CI.

A repeated page: a page 2 that repeats page 1 fails the test with SL6010. It means the API ignored the paging parameter, and the message names that parameter.

Signed recipes: a recipe that signs its requests with an IRequestSigner runs your code, which test cannot load. Test it from your application.

The command is the SyncLane.Cli tool: dotnet tool install --global SyncLane.Cli. From a clone, dotnet run --project src/SyncLane.Cli -- init ... does the same.

A recipe

{
  "$schema": "https://raw.githubusercontent.com/synclane-dev/synclane/main/schemas/recipe.schema.json",
  "name": "example-shop/orders",
  "request": {
    "method": "GET",
    "url": "https://api.example-shop.com/v2/shops/{{owner.key}}/orders",
    "query": {
      "updated_after": "{{window.start}}",
      "updated_before": "{{window.end}}",
      "size": "200"
    },
    "headers": { "Accept": "application/json" }
  },
  "records": "$.content",
  "window": { "format": "iso8601" }
}

The platform and endpoint above are made up; the format is real. Comments and trailing commas are allowed. A field the format does not know is an error, so a typo is caught instead of silently ignored.

$schema makes the editor help while you write. It points at the recipe’s JSON Schema, generated from the same types HttpRecipe.Parse reads, so it never disagrees with them. VS Code, Rider and Visual Studio then:

Use the URL above, or a path to schemas/recipe.schema.json in a copy of the repository. The schema is also HttpRecipe.JsonSchema, for tools. It checks the shape; Parse still checks what a schema cannot, such as the URL’s host or a placeholder’s name. In VS Code, a recipe with comments is happiest as jsonc: name it orders.jsonc, or add "files.associations": { "recipes/*.json": "jsonc" }.

Load it and see every problem at once:

var result = HttpRecipe.Parse(File.ReadAllText("recipes/orders.json"));
if (!result.Succeeded)
{
    foreach (var error in result.Errors)
        Console.WriteLine(error);   // SL5004: Recipe 'example-shop/orders': request.query.from uses {{window.begin}}, ...
    return;
}

The same recipe can be built in C#, as new HttpRecipe { Name = ..., Request = new HttpRecipeRequest { ... } }, and checked with recipe.Validate().

Running a recipe

Declare the job type with HttpRecipeHandler, and register its recipe and where its records go (Destinations):

builder.Services.AddSyncLane(lane =>
{
    lane.ConnectionString = builder.Configuration.GetConnectionString("Postgres")!;
    lane.AddQueue("shops", queue =>
    {
        queue.Owners<ConnectedShops>();
        queue.Windowed<HttpRecipeHandler>("orders", horizon: TimeSpan.FromDays(365), slice: TimeSpan.FromDays(7), every: TimeSpan.FromMinutes(15));
    });
});

builder.Services.AddSyncLaneHttp(http =>
{
    http.Recipe("orders", File.ReadAllText("recipes/orders.json")).WriteToPostgres("shop_orders");
});

For a store of your own, a sink receives each page’s records:

public sealed class OrderSink(AppDb db) : IRecordSink
{
    public async Task WriteAsync(RecordPage page, CancellationToken cancellationToken)
    {
        foreach (var record in page.Records.EnumerateArray())
            db.Orders.Upsert(page.Job.Owner, record);   // a page can run twice: write with upserts

        await db.SaveChangesAsync(cancellationToken);
    }
}

page.Records is only valid during the call; clone what you keep. For a quick start, .WriteTo((page, cancellationToken) => ...) takes a delegate instead of a class.

Every problem is reported before anything runs. AddSyncLaneHttp throws one SyncLaneException holding every error of every recipe and setting. When the application starts, it compares recipes with the declared job types: a job type declared with HttpRecipeHandler and no recipe (SL5014), or a recipe for a type no queue declares (SL5015), stops it before any job runs.

How answers become outcomes

Answer Outcome Code
2xx Records go to the sink; the job completes.  
429 The job waits for Retry-After (at most MaxRetryAfter), or for the reset the recipe’s rate headers give (at least a second), or the queue’s throttle delay, and continues. With a rate budget, the whole budget pauses for everyone on the key, and the job waits as long as the pause. SL5105
403 with Retry-After, or whose declared remaining header says 0 The same as 429. Some APIs answer a spent limit with 403. SL5105
429 or such a 403, with a rate budget The job gives its slot back for the budget’s pause without using an attempt: the budget keeps the API safe, and pacing is not failing. SL5105
A budget’s token is further away than MaxBudgetWait The job gives its slot back without using an attempt and runs again when the token is due. Nothing is sent. SL4003
401 to an OAuth 2.0 token kept from an earlier page The token is renewed once and the page sent again.  
401, any other 403 The job is abandoned at once. The same credentials will not work on the next try. SL5106
408, 5xx Retried with the queue’s growing delay. SL5107
No answer within Timeout Retried. SL5108
DNS, connection, TLS or proxy failure Retried. The message says which; the exception’s own text is not kept. SL5109
3xx Abandoned. Redirects are not followed. SL5111
Other 4xx Abandoned: retrying gets the same answer. SL5110
Larger than MaxResponseBytes Abandoned. SL5112
Not valid JSON Retried. SL5113
Nothing at the records path Retried; some APIs answer 200 with an error now and then. SL5103, SL5104
No credential for the owner, or one that lacks a value Abandoned before anything is sent. SL5119, SL5120
The token endpoint refuses, or answers without a usable token Abandoned. SL5121, SL5123
The token endpoint answers 408, 429 or 5xx, times out or cannot be reached Retried, or waits after 429. SL5122

An abandoned job waits for you: fix the cause, then RequeueAsync. It continues from its cursor.

Settings

Setting Default What it does
Timeout 100 seconds How long one request may take, to the last byte of the answer: a page, or a token from a token endpoint.
MaxResponseBytes 16 MiB The largest answer read.
MaxRetryAfter 1 hour The longest wait taken from a Retry-After header.
MaxPagesPerJob 1,000 The most pages one job reads with page or offset paging.
UserAgent SyncLane.Http/<version> Sent when a recipe sets no User-Agent.

The requests go through the named HttpClient HttpSource.ClientName. Add handlers to it with services.AddHttpClient(HttpSource.ClientName), for a proxy for example. Do not add retry handlers: the engine already retries the job from its cursor.

Destinations

PostgreSQL

http.Recipe("orders", File.ReadAllText("recipes/orders.json"))
    .WriteToPostgres("shop_orders", table => table.VersionedBy("$.updated_at"));

SyncLane creates the table the first time a page arrives, in its own database and schema unless you name others, and keeps one row per account and record:

Column What it holds
owner, key The primary key: the account, and the record’s key. Keys are unique per account, not across accounts.
record The latest copy of the record, as jsonb.
version The version it was written with, if the destination has one.
first_seen_at When the key first arrived.
changed_at When the record last changed. Writing the same record again does not touch the row.

Each page is one statement. A page is delivered at least once, since a worker that stops between the write and the cursor save writes it again, so the table is written so that a repeat changes nothing:

Setting Default What it does
KeyedBy("$.id"), or several paths $.id, inferred What identifies a record. Paths are written $.name or $.parent.name; several make a composite key.
KeyedByContent()   Keys a record by a hash of its content, written in one canonical form. For records that never change, such as events or ledger lines: a record that changes becomes a new row with each version.
VersionedBy("$.updated_at") none A number, or an ISO 8601 time; times in different offsets compare as the same moment, never as text. Of two copies the higher version wins; a copy without a version never replaces one with.
Schema SyncLane’s schema A lower-case identifier.
ConnectionString SyncLane’s database Another database.

When no key is named, $.id is used, but only if every record of the page has one that is a string or a number and no two are equal. A guess that could merge two records is never made: otherwise the job stops with SL5125, naming the fields of the page that could serve.

With CreateSchema off, SyncLane does not create the table: run PostgresSinkSchema.Script(schema, table) in your own migration. A missing table stops the job with SL5127.

HTTP

http.Recipe("orders", File.ReadAllText("recipes/orders.json"))
    .WriteToHttp("https://sync.example.com/orders", receiver =>
    {
        receiver.Secret = builder.Configuration["Receiver:Secret"];        // whsec_…, to sign every request
        receiver.Headers["Authorization"] = builder.Configuration["Receiver:Token"]!;
    });

Each page is posted as one JSON message:

{ "type": "orders", "data": { "owner": "shop-7", "records": [ { "key": "1001", "version": 1793448000000000, "record": { } } ] } }

Keys and versions are read as for PostgreSQL: the same KeyedBy, KeyedByContent and VersionedBy, with the same $.id default. A version is a number; an ISO 8601 time arrives as microseconds since 1970, so the receiver compares numbers only.

The requests follow Standard Webhooks, so a receiver can check them with an existing library:

What SyncLane does with the answer:

Answer What happens
2xx Taken.
413 The request is split in halves until it fits. One record that still does not fit stops the job (SL5130). A page over MaxBytes (1 MB) is split before it is sent.
429, 502, 503, 504 Tried again in the page, honouring Retry-After; then, or straight away for a wait over 30 seconds, the job is postponed without using an attempt.
Other 5xx, no answer in time, network failure Tried three times with a short pause, without fetching the source again; then the attempt fails and the job runs again later (SL5129).
A redirect, 410, other 4xx The job stops (SL5128): the receiver will keep refusing. Redirects are not followed.

What the receiver does:

That is all it takes for every record to arrive once in effect: a message is sent again after anything goes wrong, and the key makes the repeat harmless. The URL, the headers and the secret are never logged; the URL must be https, except on localhost.

A sink of your own

Write an IRecordSink, and use RecordIdentity for the hard part. It reads keys and versions the same way, and removes duplicates within the page:

public sealed class OrderSink(AppDb db) : IRecordSink
{
    private static readonly RecordIdentity Identity = RecordIdentity.ByPaths("$.id").VersionedBy("$.updated_at");

    public async Task WriteAsync(RecordPage page, CancellationToken cancellationToken)
    {
        var records = Identity.Identify(page);
        if (!records.Succeeded)
            throw new JobAbandonedException(string.Join("; ", records.Errors));

        foreach (var record in records.Value!)
            db.Orders.Upsert(page.Job.Owner, record.Key, record.Version, record.Record);   // keep the newer version

        await db.SaveChangesAsync(cancellationToken);
    }
}

Then check it the way workers will treat it, from any test framework:

var result = await SinkConformance.CheckAsync(
    new OrderSink(db),
    async (owner, cancellationToken) => await db.Orders.Where(order => order.Owner == owner)
        .Select(order => new SinkSample(order.Id, order.Total)).ToListAsync(cancellationToken),
    new SinkConformanceOptions
    {
        Versioned = true,
        Record = sample => $$"""{ "id": "{{sample.Id}}", "total": {{sample.Value}}, "updated_at": "{{sample.UpdatedAt:O}}" }"""
    });

Assert.True(result.Succeeded, string.Join("\n", result.Errors));

It writes pages for owners made up for the run, and reads back what the store holds after each scenario:

Each scenario the sink fails is in the result with code SL5131, naming what it found, for example “record 2 holds 1 instead of 2”. Record turns a sample into the JSON your sink expects; leave it out for sinks that read id, value and updated_at.

Pagination

Add pagination when one request does not return everything. The job’s cursor holds where paging stands, so a job that stops for any reason continues from the page it reached, not from the first.

Type For APIs that Fields Last page
page take a page number: ?page=3 param (required), start (default 1), size, sizeParam With size: the first page shorter than it. Without: the first empty page.
offset take a record offset: ?offset=200 param (required), size (required), start (default 0), sizeParam The first page shorter than size.
cursor return a token to send back: ?cursor=abc param (required); from (a path in the answer) or fromLastRecord (a property of the last record); hasMore, size, sizeParam No token, or hasMore is false.
nextUrl return the next page’s full URL in the body from (required) No URL.
linkHeader return it in a Link header with rel="next" none No next link.
// A page number and a page size:
"pagination": { "type": "page", "param": "page", "size": 100, "sizeParam": "per_page" }

// A cursor taken from the last record, stopping on a has-more flag:
"pagination": { "type": "cursor", "param": "starting_after", "fromLastRecord": "id", "hasMore": "$.has_more" }

// The next page's URL in the body:
"pagination": { "type": "nextUrl", "from": "$.links.next" }

A field that does not apply to the type is an error (SL5017), as is a paging parameter that is also set in request.query.

Paging is guarded against the usual ways it goes wrong:

The next cursor is worked out before the sink runs, so a page whose next step cannot be followed is not written.

With nextUrl and linkHeader, pages after the first are called exactly as the API wrote the URL; the recipe’s query is not added again. Headers and body are sent with every page.

Not supported yet: a page number, offset or cursor that the API expects in the body or in a header rather than in the query, as GraphQL APIs often do. Such APIs need a hand-written handler for now.

Authentication

A recipe names a credential; it never holds one. For every page, SyncLane asks your credential store for the values of the job’s owner and adds them as the auth type says.

"auth": { "type": "bearer", "credential": "example-shop" }
type What is sent Values it needs Other fields
bearer Authorization: Bearer <Token> Token  
basic Authorization: Basic, user name and password in UTF-8 Username, and Password if there is one  
apiKey The key in a header or a query parameter Token name (required); in: header (default) or query; prefix before a key in a header, such as "Token "
oauth2 Authorization: Bearer with an access token from tokenUrl, or the token in the header name names Client credentials: ClientId, ClientSecret. Refresh token: ClientId, RefreshToken, and ClientSecret if the client has one grant: clientCredentials or refreshToken (required); tokenUrl (required); scope; clientAuth: basic (default) or body; name: a header for the token, for an API that does not take it in Authorization; prefix before it, none by default
signed Whatever your signer adds Any, including Values signer (required)

credential is required for every type. A field that does not apply to the type is an error, as with pagination. Prefer a header for an API key when the API accepts one: a URL is recorded in more places than a header, by proxies and by the API’s own access logs.

The credential store

builder.Services.AddSyncLaneHttp(http =>
{
    http.Credentials<ShopCredentials>();
    http.Recipe("orders", File.ReadAllText("recipes/orders.json")).WriteTo<OrderSink>();
});
public sealed class ShopCredentials(AppDb db, Secrets secrets) : ICredentialStore
{
    public async ValueTask<Credential?> GetAsync(CredentialKey key, CancellationToken cancellationToken)
    {
        var connection = await db.Connections.FindAsync([key.Owner, key.Name], cancellationToken);
        return connection is null ? null : new Credential { Token = secrets.Decrypt(connection.Token) };
    }

    public async ValueTask SaveRefreshTokenAsync(CredentialKey key, string refreshToken, CancellationToken cancellationToken)
    {
        var connection = await db.Connections.FindAsync([key.Owner, key.Name], cancellationToken);
        connection!.RefreshToken = secrets.Encrypt(refreshToken);
        await db.SaveChangesAsync(cancellationToken);
    }
}

OAuth 2.0

Signed requests

For APIs that want a signature, for example a hash of the method, path and time:

builder.Services.AddSyncLaneHttp(http =>
{
    http.Credentials<ShopCredentials>();
    http.Signer<ExampleHmacSigner>("example-hmac");
    http.Recipe("orders", File.ReadAllText("recipes/orders.json")).WriteTo<OrderSink>();
});
public sealed class ExampleHmacSigner(TimeProvider time) : IRequestSigner
{
    public ValueTask SignAsync(HttpRequestMessage request, Credential credential, CancellationToken cancellationToken)
    {
        var timestamp = time.GetUtcNow().ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture);
        var data = Encoding.UTF8.GetBytes($"{request.Method}\n{request.RequestUri!.PathAndQuery}\n{timestamp}");
        var signature = Convert.ToHexString(HMACSHA256.HashData(Encoding.UTF8.GetBytes(credential.Values["secret"]), data));

        request.Headers.Add("X-Timestamp", timestamp);
        request.Headers.Add("X-Signature", signature);
        return ValueTask.CompletedTask;
    }
}

The recipe says "auth": { "type": "signed", "credential": "example-shop", "signer": "example-hmac" }. The signer sees the complete request: the URL with its paging parameters, the headers and the body. It may add headers and query parameters; changing the method, scheme, host or port abandons the job (SL5124), so a signer cannot send a request somewhere the recipe does not name.

Where a credential never goes

A test holds this: every type runs through the engine against an API and a token endpoint that echo every secret they receive in bodies and exception messages, and the test searches every log line, span, metric and database row for them. What it cannot cover is tracing of HttpClient itself, if you turn it on: a key in a query string is part of the URL there. One more thing SyncLane does not pretend: .NET cannot wipe a string from memory, so a credential lives in memory as long as the page that uses it.

Rate budgets

An API’s limit belongs to an account. Declare it once in AddSyncLane, and name it in every recipe that calls the account:

lane.AddBudget("example-shop", limit: 2, per: TimeSpan.FromSeconds(1), burst: 40);
"rate": { "budget": "example-shop" }
Field Required What it is
budget yes The budget’s name, as declared with AddBudget. A recipe naming an undeclared budget stops the application at start-up (SL5023).
key no Whose bucket. Default {{owner.key}}: one bucket per owner. Write a fixed text, such as "shared-account", for owners that share one set of credentials and so one limit, or one of the owner’s values, such as {{owner.seller}}, for owners that share an account’s limit: several stores of one seller account. Only the owner’s key and values are allowed; a job whose owner lacks the value sends nothing (SL5132).
headers no Where the API’s answers say how many requests are left. See Reading what the API says.

Reading what the API says

Many APIs say on every answer how many requests are left, and when more come. Name those headers, and the budget stops at zero instead of running into a 429, and notices when another app on the same account spends the same quota:

"rate": {
  "budget": "example-shop",
  "headers": { "remaining": "X-Rate-Limit-Remaining", "reset": "X-Rate-Limit-Reset", "resetFormat": "seconds" }
}
Field What it is
headers.remaining The header with how many requests are left.
headers.remainingFormat number (default, such as 12), used/limit (such as 32/40: 8 left), or ietf: the RateLimit field of the IETF draft, such as "default";r=50;t=30, which carries its own window.
headers.reset The header with when more requests come. Not with ietf.
headers.resetFormat seconds from now (default), unix seconds, unix-ms, or http-date. Times are measured against the answer’s Date header when it has one, so the API’s clock and yours need not agree.
headers.limit The header with the API’s limit, such as X-Rate-Limit-Limit.
headers.limitFormat number (default, such as 40), or ietf: the RateLimit-Policy field of the IETF draft, such as "default";q=100;w=60 (100 requests per 60 seconds). Of several policies the tightest counts.
headers.limitWindow The seconds the limit counts over, 1 to 86,400, from the API’s documentation: 60 for “40 a minute”, 1 for “0.5 a second”. Required with number, since a bare number does not say its window. Not with ietf, which carries its own.

What SyncLane does with them:

Examples from public documentation. Check the API’s own page: these change.

API headers
ShipStation v1 { "remaining": "X-Rate-Limit-Remaining", "reset": "X-Rate-Limit-Reset" }
GitHub { "remaining": "x-ratelimit-remaining", "reset": "x-ratelimit-reset", "resetFormat": "unix" }
Walmart Marketplace { "remaining": "x-current-token-count" }
Shopify REST Admin { "remaining": "X-Shopify-Shop-Api-Call-Limit", "remainingFormat": "used/limit" }
ShipStation v1, with its limit { "remaining": "X-Rate-Limit-Remaining", "reset": "X-Rate-Limit-Reset", "limit": "X-Rate-Limit-Limit", "limitWindow": 60 }
An API following the IETF draft { "remaining": "RateLimit", "remainingFormat": "ietf", "limit": "RateLimit-Policy", "limitFormat": "ietf" }

How far it goes:

Fields

Field Required What it is
name yes A name for messages and logs.
request.method no GET (default) or POST.
request.url yes Absolute https URL. Placeholders may appear in the path and the query, never in the scheme or port. The host is written out, or made from the owner’s values when request.hosts lists where it may be.
request.hosts no For a host made from the owner’s values: every host it may be. See A host per owner.
request.query no Parameters added to the URL. Values are strings and may contain placeholders.
request.headers no Request headers. Values may contain placeholders. Host, Content-Length, Transfer-Encoding and Connection cannot be set; Authorization and Proxy-Authorization are refused, because credentials never go in a recipe.
request.body no A JSON body, for POST only. Placeholders are filled in string values.
request.allowHttp no Allow a plain http URL, and a plain http token URL. For local test servers only.
records no Where the array of records is in the answer: $ (default) for the root, or $.data.items. Property names only.
window.format no How {{window.start}} and {{window.end}} are written. Default iso8601.
pagination no How to get the next page. See Pagination.
auth no How requests are authenticated. See Authentication.
rate no The rate budget the requests draw from. See Rate budgets.

Placeholders

Placeholder Value
{{window.start}} Start of the job’s window, in window.format.
{{window.end}} End of the job’s window, in window.format.
{{owner.key}} The job’s owner key.
{{owner.<value>}} One of the owner’s values, such as {{owner.region}}: what the owner source gave in JobOwner.Values. A job whose owner lacks it sends nothing (SL5132).
{{request.id}} A new UUID for every request, the same wherever it appears in that request: for APIs that want a correlation id per call.

A placeholder is a name and nothing more: no expressions, no filters, no nesting. Any other name is an error when the recipe is loaded.

Values per owner

Many APIs need more about an account than its key: the marketplace it sells on, its region, its store’s id. The owner source gives them, beside the name:

new JobOwner(account.Id, Name: account.StoreName)
{
    Values = new Dictionary<string, string> { ["market"] = account.Market, ["region"] = account.Region }
}

and the recipe writes them where the API wants them, as {{owner.market}}. They are kept with the owner, like its name, and come with every job a worker takes: no lookup per page. An owner given without values keeps the ones it had. Names are letters, digits and underscores, starting with a letter; key is taken (SL3013).

Values are not secrets: they may land in a URL, which the API’s logs record, and in a saved cursor. Credentials go in the credential store. Like names, values are never written to a log, a trace or a metric. synclane test takes them as --value region=eu.

A host per owner

Some APIs give each account its own host: one per region, or one per store. The host may then be made from the owner’s values, if the recipe lists every host it may be:

"request": {
  "url": "https://{{owner.endpoint}}/v1/orders",
  "hosts": ["api-na.example.com", "api-eu.example.com", "api-fe.example.com"]
}

*. and a domain allows any one name under it, for a host per store: "https://{{owner.shop}}.stores.example.com/v1/orders" with "hosts": ["*.stores.example.com"]. It allows acme.stores.example.com, and neither stores.example.com nor a.acme.stores.example.com.

A job without a window cannot run a recipe that uses {{window.start}} or {{window.end}} (SL5101). Declare such job types with Windowed.

Window formats

All formats are in UTC.

Format Example
iso8601 2026-10-01T00:00:00Z
unix 1790812800
unixMilliseconds 1790812800000
date 2026-10-01. Only for windows that start and end at midnight.

What a recipe can never do

These are deliberate limits, checked when the recipe is loaded or the request is built:

Every error code is listed in errors.md.