Credentials and keys
This page explains the two credential formats Monaiq gives you, where to get them, and what happens when you rotate.
The two formats
Section titled “The two formats”The API key is the secret that authenticates you to the Monaiq APIs.
The encoded credential is a single portable string that starts SIDUB_LIC_. It bundles the
license id, the service key id, the service key public member and the API key into one value, so
you configure one setting instead of four. Both SDKs take it directly, and it is the format the
quickstarts use.
The Node client also accepts the four parts individually, as apiKey, licenseId, serviceKeyId
and serviceKeyPublicMember, for cases where your configuration already holds them separately.
Where to get them
Section titled “Where to get them”Go to monaiq.com/manage/credentials. The page shows “Your API key”, and mints one for you the first time you visit, so there is no separate create step.
If you work through an assistant, the profile tool retrieves your credentials as well. See
AI-assisted setup.
Putting one into a project
Section titled “Putting one into a project”Read the value from configuration rather than writing it into a file that is checked in.
- .NET. Set
LicensingServiceOptions.EncodedCredentialfrom a configuration key. The .NET quickstart reads it fromLicensing:EncodedCredential, so you can supply the real value from user secrets while you develop and from the host’s configuration in production without the code changing. - Node. Pass
encodedCredentialfrom the environment. The Node and React quickstart readsMONAIQ_CREDENTIAL.
If you would rather not do the plumbing yourself, the provision_api_key_config tool returns the
exact commands and file edits for your project.
Rotating
Section titled “Rotating”Rotate from the Credentials page in the portal, or with the rotate_api_key tool from an assistant
or any MCP client.
Because of that, rotate deliberately:
- Know which deployments, environments and machines hold the current value.
- Rotate.
- Update every one of them with the new value.
For a single application that reads from one secret store this is quick. For several environments, plan the order before you press the button rather than after.
Rotate when a key may have been exposed, when someone who had access to it leaves, or on whatever schedule your own policy sets.
If you bought a product rather than built one
Section titled “If you bought a product rather than built one”Credentials for something you bought are on the license detail page in your account, alongside its features and billing plan. See Your licenses.