Base URL of the Thankly API, e.g. https://api.thankly.ai. No trailing slash.
OptionalclientCognito client id issued for your organisation. Required unless requireAuthentication is false.
OptionalclientCognito client secret.
Server-side only — this authenticates as your whole organisation. Load it from the environment or a secret manager; never inline it, and never let it reach a bundle a user can read.
Required unless requireAuthentication is false.
OptionalrequireSend Cognito credentials with each request. Defaults to on; turn it off only against an API running in the LOCAL stage. Deployed APIs require it.
OptionalsecretKey the cached access token is stored under. Namespace it if one process serves several orgs.
OptionalstorageWhere the access token is cached between calls. Defaults to in-memory, which is what a backend usually wants — a shared store only helps if several processes should reuse one token.
Configuration for createThanklyServer.