API
The SmVend API lets your own software read your machines’ data and send commands: sales, stock, machine state, prices and planograms, refills. Your software uses an API key made on the API tab of Settings → Integrations.
The tab is for the Administrator, on the Pro plan or a trial, after SmVend approves your company for the API: see who can use it.

The link at the top of the card, SmVend API Spec, opens the developer documentation: api.smvend.io.
How to create an API key
Section titled “How to create an API key”- Click Create API key. The New API keys dialog opens on the API key tab.
- Enter a Name that says what the key is for, for example the name of the system that uses it.
- Under Permissions leave only what the system needs:
- Read: machine state, sales, events, stock, catalogue, collections.
- Write: prices and planograms, catalogue, refills, collections.
- Deposit: crediting a machine, free dispense, remote payments.
- If the system also checks the signature of webhooks, tick Also create a webhook signing secret. Only one active key of a company can have it: see Webhooks.
- Click Generate.
- Your new API key shows the key. Copy it and store it in a safe place now.
Your software sends the key in the Authorization: Bearer header to the /v1.2 API. Keys start with smvd_.
The same key connects an AI assistant that takes a key: see MCP.
The list of keys
Section titled “The list of keys”| Column | What it shows |
|---|---|
| Name | The name you gave |
| Permissions | Read, Write, Deposit |
| Key | The start and the end of the key. The whole key is never shown again |
| Type | API key, Revoked, or Legacy with the date it stops working |
| Created | The day the key was made |
| Valid until | The day the key ends, if it has one |
| Last used | The last day the key was used |
How to revoke a key
Section titled “How to revoke a key”Click the bin icon in the key’s row and confirm. Integrations that use the key stop working at once. A revoked key stays in the list as Revoked.
Legacy keys
Section titled “Legacy keys”Keys made before API keys appeared are marked Legacy. They stop working on the date shown in the yellow note and in the Type column. Create an API key and move your integration to the /v1.2 API before that date.
In the mobile app
Section titled “In the mobile app”In the Settings tab, Integrations, API: the list of keys, a new key and revoking a key.
See also: Webhooks, MCP, API, Webhooks and MCP.