API and integrations
An API key connects your own system or an AI agent to your LogiRates account. You create keys in Settings → Integrations (/settings/integrations). The secret is shown only once, so copy it right away.
Key types
- API: for your own systems. You get a Client ID and a Client secret. Your system exchanges them for an access token that works for one hour. Details are in the API documentation.
- MCP: for AI agents such as Claude Code and Cursor. One key starting with lrm_. See Connect an AI agent (MCP).
An API key doesn't work as an MCP key, and the other way round.
Create a key
- Open Settings → Integrations and choose Create key.
- Enter a Key name, up to 64 characters, and pick the Key type.
- Enter your Current password. If two-factor authentication is on, also enter a code from your authenticator app, from SMS (Send code) or a recovery code.
- Choose Create key and copy the secret or the key. Choose Done when you have saved it.
After that, the list shows only the last 4 characters (Secret ends with or Key ends with), when the key was created and when it was last used.
What a key can do
- A key works with your account permissions. If you have no access to a section, such as Finances, the key doesn't either.
- A new key can't buy labels. To allow it, see Purchases via API and AI agents.
- Keys are personal. Other users in your company, including the owner, don't see your keys.
Revoke a key
- Choose Revoke next to the key.
- Confirm. Systems that use the key lose access immediately. This can't be undone.
Revoking also ends any OAuth connection made with the key and turns off webhook endpoints created through it.
Rules
- There is no limit on the number of keys.
- If your user is deactivated or your account is closed, your keys stop working.
- Keep secrets out of chats, emails and code repositories. If one leaks, revoke the key.
If something goes wrong
- The current password is incorrect. Enter the password you use to sign in.
- The code is incorrect or has expired. Request a new code or use a recovery code.
- Couldn't create the API key. Try again. Wait a minute and retry. Key actions are limited to 10 a minute.
- If you lost a secret, revoke the key and create a new one. We can't show it again.
