Help Centre › Credentials & Connections
Many processes need a secret: a password, an API key, a token or a 2FA code. A credential keeps that secret safe, so a process can use it at run time without anyone typing it into a step or seeing it.
1. Create a credential
- Go to Library › Credentials and add a credential.
- Choose the Type:
- Username & password
- API key
- Bearer token
- OAuth2 (client credentials) – client ID, client secret, token URL and scopes.
- Certificate – the certificate and, if needed, its private key, in PEM format.
- Authenticator (2FA / TOTP) – the code behind a two-factor app, for sites that ask for a 6-digit code.
- Enter the Application it is for, such as SAP or Outlook, and the Username where there is one.
- Enter the secret and save. It is stored encrypted and never shown again.
The type cannot be changed later, because it decides how the secret is read.
2FA codes
For an Authenticator credential, paste the secret the site gives you when you set up two-factor sign-in, either as a code or as an otpauth:// link, or use Scan / upload QR code. Before you save, click Test code to see the current 6-digit code and check it matches the one on your phone. A step such as Fill 2FA code then types the live code during a run.
2. Where the secret is kept
For a username and password, or a 2FA secret, you choose Where is this secret stored?:
- Automize vault – encrypted on Automize's servers. Every type can use it, and it is the only choice for the other types.
- Bot local keychain – the secret stays in the keychain of the machine the bot runs on. Automize never sees it. For 2FA the bot works out the code itself. The first time, an attended run asks for the secret on that machine; an unattended run with no secret stored stops instead.
3. A different secret per environment
If your company has more than one environment (for example Development and Production), a credential can hold a separate secret for each one, so a test run never logs in to the live system.
- When you create the credential, choose Which stage is this secret for?
- On the credential's page, the Stages list shows each environment and where its secret comes from. Use Add or Update on a row to give that environment its own secret.
- Change which stage the others use sets what happens for an environment with no secret of its own: Use another stage's secret, or Stop the run.
- Setting the secret for a production environment needs production rights.
Username, secret, expiry and rotation belong to each environment's row.
4. Use a credential in a process
- Log-in steps – such as Log in to website, Log into app and the SAP log-in step. Pick the credential; the bot gets the secret at run time.
- 2FA steps – Fill 2FA code (browser or desktop) and Fill 2FA in app type the current code.
- Connector steps – choose the credential as the step's connection.
- Secret variables – a variable can point at a credential and only holds the secret while the process runs.
The process's Run & debug tab shows which credentials a run will log in with, for the environment it runs in.
5. The credential's page
- Where it's used – the processes whose log-in steps use this credential. Check it before you change or revoke a secret. Credentials kept in a bot's keychain are not listed.
- Last used and Latest lookups – when and by which bot the secret was fetched. Every fetch is recorded; Full access log shows them all. Admins can also see it in Settings › Audit.
- Share – give people access.
6. Expiry, rotation and access
- Expires – after this date the secret is no longer given to bots.
- Rotation policy – how often the secret must be changed. Once it is overdue, it is refused until someone updates it. Admins are told before secrets expire or fall due.
- Permissions – credentials use the normal permission levels. Viewers see only the details, never the secret. Operators, and bots running as them, may use the secret in a run. Admins can edit, rotate and revoke it.
- Request access – if you can see a credential but not use it, its page says "You can't use this credential yet". Click Request access and the owner is asked to share it with you.
- Revoke – an admin can revoke a credential. Its secret is wiped and it can no longer be used.
A credential that is missing, expired, overdue or revoked makes the step that needs it stop. It never runs on without the secret.