cesto_sk_… and are sent
automatically with every request — you never set headers yourself.
Getting a key
API keys are issued by the Cesto team — there’s no self-serve portal yet.Contact us to request a key: reach out on our
community or through your Cesto contact.
Providing the key
Pass it explicitly to the constructor — typically from an environment variable:apiKey is required, and the
constructor throws without it.
Key scopes
Keys are read (default) or write-scoped:- Read covers products, user lookups, and position reads (
products.*,users.get,positions.list,positions.getHoldings). - Write is required for provisioning and managed executions
(
users.create,*.start) and for client-signed opening and closing positions (open.*,close.*,positions.submit, execution polling). A read-only key gets a403 PermissionDeniedErroron write routes.
Backend
The SDK always targets the Cesto production backend athttps://backend.cesto.co. There’s
nothing to configure — you supply a key and go.