curl, and the API reference lists every endpoint.
Both have no runtime dependencies, ship their types, and are licensed Apache-2.0. Other languages: use the REST API, or generate a client from the OpenAPI file. Tell us which language you want next in an issue on either repository.
What every SDK does
- Idempotency keys. A write that can carry one gets one, made once per call and sent again on every retry. Pass your own when you have something stable, like an order ID. Details.
- Retries, only where they are safe. A connection error,
408and5xxare retried twice by default with a growing, jittered delay. A429waits for theRetry-Afterit gives. A call that makes a secret shown once (a new key, a new webhook endpoint) is not retried after a connection failure or server error. - Typed errors. Every error has a status, a code, the field it is about, a request ID, a link to its docs and one sentence on what to do next. All the codes.
- Pages. One helper walks a paged list and asks for the next page only when you want it. Pagination.
- Webhook checks. One function verifies a delivery’s signature and returns the event. Webhooks.
- A way to test your own code without the network. Testing.
Your key
An SDK needs a project key (lurk_sk_…), from LURK_KEY or passed in. Agent keys (lurk_ak_…) are for agents, not for the SDKs.
Start with a Staging project key. When you go live, use the Production project’s key: nothing else changes, because the address is the same.
What it sends about itself
Each request carries a headerx-lurk-sdk with the SDK and its version, such as typescript/0.2.1. That is all: no names, no machine details, nothing from your data. We use it to see which versions are still in use before an API change is made (see versioning). It is sent on every call and there is no separate switch, because it is how a deprecation can be done kindly. If you want to see it, run any call through a proxy, or read SDK_VERSION.
Versions
SDK versions follow semantic versioning, and follow the API’s: a new operation or field is a minor, a fix is a patch, and a breaking change of the API’s version is a major. Only the latest major version gets fixes. The SDK and the API changes are in the changelog. The packages are built from the same repository as the API and released by a pipeline that checks them against what is live in production, so an SDK never has a method the API you talk to does not yet have. Each release is published with provenance: the registry can show where it was built.Help
Open an issue on the SDK’s repository. Never include a key: therequest_id of an error is enough for us to find the call. For a security problem, write to security@getlurk.com.