Create API keys and API users
Give a client's developers access to the API: an API user (email and password that signs in for a one-hour token) or a long-lived API key. Both are shown once.
Who can use this. Needs Integrations create to make a key or API user. Revoke, Reset password, Disable and Enable need Integrations update.
A client's own system (an ERP, a store, an order system) calls the Ardent WMS API with a credential. Each credential belongs to one connection. The connection decides what it may call and which client's data it sees; the credential only proves who is calling. See Scopes and per-client access.
| API user (email and password) | API key | |
|---|---|---|
| How it works | The developer sends the email and password to POST /v1/auth/token and gets an access token that lasts one hour, plus a refresh token. | A long-lived key sent on every call as Authorization: Bearer ak_live_…. |
| Best for | Most partners. The recommended way. | Server-to-server integrations that cannot renew a token. |
| Lifetime | Tokens expire after one hour; the developer refreshes them. The password does not expire. | You choose: 90 days, 6 months, 1 year or 2 years (the maximum). |
| Shown | The password is shown once when it is created or reset. | The key is shown once when it is created. |
Heads up. A key or password is shown once. Ardent WMS keeps only a fingerprint and cannot show it again. Copy it, send it to the developer over a secure channel (not in a ticket or a shared chat), and do not store it in documents.
Before you start
- Your role needs Integrations create (and update to revoke or reset).
- A connection of the kind API access for a client's developers. Create one with Add connection (see Integrations). Choose the client it is for, so the credential can only reach that client's data.
- Enable the endpoints the developer needs first. A credential on a connection with no enabled endpoints can call nothing.
Create an API user
- 1
Open the connection, then Advanced > API keys (or the API keys tab on the full connection page). API users are listed under the keys, in the section API users.
- 2
Press Create API user.
- 3
Enter the Sign-in email (for example
erp@partner.com) and, if you like, a Name (optional) such as Partner ERP production.The Create API user dialog with the Sign-in email and Name fields.
Screenshot coming soon
- 4
Press Create API user. A strong password is generated and shown once, with the sign-in email. Copy it and send both to the developer together with the link to the API documentation.
Manage an API user
| State | Meaning |
|---|---|
| Active | Can sign in. |
| Locked | Five wrong passwords within 15 minutes lock that email for 15 minutes. The row says when it unlocks. A partner that is already signed in keeps working. Reset password unlocks it at once. |
| Disabled | Sign-in is stopped and every access and refresh token of this user stops working immediately. |
- Reset password
- Shows a new password once. The old password and every token issued with it stop working, and a lockout is cleared.
- Disable
- Stops sign-in and cuts off all tokens now. You can add an optional reason. Reversible.
- Enable
- The partner can sign in again with the current password. Tokens cut off when it was disabled stay revoked.
Create an API key
- 1
Open the connection, then Advanced > API keys.
- 2
Press Create key.
- 3
Enter a Name that says where the key will live, such as Production ERP. You will need it to know which key to revoke later.
- 4
Choose Expires after: 90 days, 6 months, 1 year (the default) or 2 years (maximum).
- 5
Optional: tick Test key. It starts with
ak_test_so it is easy to tell apart. It still acts on real data. The box is not shown on a sandbox connection. - 6
Press Create key, copy the key and send it to the developer.
Key states and revoking
| State | Meaning |
|---|---|
| Active | Works until its expiry date. |
| Expiring | Works, but expires within 30 days. The connection shows an Expiring health badge and raises a Key expiring alert. |
| Expired | Past its expiry date. Calls answer 401 expired_key. |
| Revoked | Stopped by a person. Calls answer 401 revoked_key. |
To stop a key, open its row menu and choose Revoke (an optional reason is kept). It stops working immediately and this cannot be undone; create a new key to replace it. To rotate without a gap, create a second key, switch the partner over, then revoke the first.
What happens next
- The credential only works while the connection is Active. Press Activate (or Go live) on the connection page when you are ready. Until then calls answer
403 connection_inactive. - Every call is logged on the connection's Requests tab with the first characters of the key it used.
- All API users and keys of one connection share one rate limit (120 requests per minute unless you change it under Edit settings).
- The key list shows Last used so you can spot keys nobody uses.
If something goes wrong
The developer lost the key or password.
It cannot be shown again. For an API user press Reset password. For a key, revoke it and create a new one.
The developer gets 401 invalid_grant when signing in.
The email or password is wrong, or a refresh token was already used or revoked. The answer is the same on purpose so it does not reveal which. If the user is Locked, reset the password.
The developer gets 403 endpoint_not_granted.
That endpoint is not enabled for the connection. Enable it on the Endpoints tab.
I do not see Create key.
The tab only appears for connections that take keys. Shopify and outbound-webhook connections authenticate another way. You also need Integrations create.
How do I give a robot or partner a key for stock moves?
Those endpoints are off by default and only an Owner can enable them. See Scopes and per-client access.
Related articles
- Scopes and per-client accessWhat an API connection is allowed to do (its enabled endpoints) and whose data it can see (one client or all, one warehouse or all). Set both before you hand out a key.
- API documentationThe public API documentation page for the clients' developers: a short walkthrough, every endpoint with examples, and a console to try calls. It needs no sign-in.
- Set up webhooksMake Ardent WMS tell another system when orders ship, stock changes and more: add a webhook address, choose events, keep the signing secret, and learn how retries, pausing and the Health tab work.
- Troubleshooting integrationsAnswers for the common integration problems: orders that don't arrive, a paused webhook, a rejected carrier key, a deactivated warehouse, refused API calls and failed messages.
- IntegrationsIntegrations lists every outside system connected to your warehouse: clients' stores, carrier accounts and API connections. Open a connection to test it, go live, pause it, manage its keys and webhooks and see its health.
Updated November 28, 2026