Constructor
string
required
Your secret API key,
lyra_sk_…. See Where to find your identifiers.string
default:"https://app.concatflow.com"
The Concatflow API origin. A trailing
/ is removed.Error:
- if
apiKeydoes not start withlyra_sk_; - if it runs in a browser (a global
windowexists). Your key would be sent to every visitor.
Resources
Every method returns a promise. A non-2xx answer rejects with a
ConcatflowError.
Runtime
- Uses the global
fetchof Node 18 and later. - ESM only:
import, notrequire. - Your key is sent as
Authorization: Bearer lyra_sk_…. It never appears in error messages.
Exports
encodePartition({ customer_id: "4712", region: "eu" }) returns "customer_id=4712,region=eu", the form the HTTP API expects.