API keys
An API key lets your backend work with one shop. Create it in the dashboard, save it on your server and send it as a bearer token.
Create a key
Section titled “Create a key”In the shop, create a key with read and write permissions. The ivk_ token is shown once; save it immediately. A shop can have up to 10 keys that are not revoked; see Limits.
An agent can create the same key using its login session:
curl -X POST 'https://platform.invoise.me/api/v1/shops/{shop_id}/keys' \ -H 'Authorization: Bearer <session-token>' \ -H 'Idempotency-Key: <saved-unique-key>' \ -H 'Content-Type: application/json' \ -d '{"name":"backend","scopes":["read","write"]}'Use a session to create or change keys. An API key cannot create another key. If the account has MFA, key management may require a fresh second factor.
Call the API
Section titled “Call the API”curl 'https://platform.invoise.me/api/v1/shops/{shop_id}/payments?limit=50' \ -H 'Authorization: Bearer ivk_...'| Scope | Purpose |
|---|---|
read |
allows reading invoices and deposits. |
write |
allows creating invoices and deposits and managing webhooks. |
Request both permissions for a backend that creates payments and checks them. Do not assume write automatically includes read.
The key only works within its shop’s permissions. It cannot manage accounts or the merchant’s team. Never put it in browser code, a payment URL or a shared chat.
Restrict access by IP
Section titled “Restrict access by IP”Optionally provide allowed_ips when creating or editing a key:
{"allowed_ips":["203.0.113.10","2001:db8::/32"]}These are example addresses. Replace them with your backend’s actual egress addresses. Up to 10 IPs or CIDR ranges are allowed per key; more returns 400 too_many_allowed_ips. An empty list removes the restriction.
Rotate or revoke
Section titled “Rotate or revoke”Create a replacement key, update your backend, then revoke the old key with DELETE /api/v1/shops/{shop_id}/keys/{key_id}.
PATCH on the same path can change name, enabled, scopes or allowed_ips. Omitted fields stay unchanged. Editing does not reveal or rotate the token.
Keys work until disabled or revoked, subject to account and shop access. They are not a promise of permanent access. See the API reference for request details.