API keys
What it does. Lets your own systems, such as a data warehouse or a reporting job, read your D2 data through the integration API with a key instead of a person's sign-in. A key reaches only the integration API. It reads, and one route lets it send stocking suggestions, which a person then decides.
How to use it
Admins open Settings › Account › API keys. Type a Name for the system that will use the key, pick an Expires date if it should stop working on a day, and click Create key. Leave Expires empty for a key that does not expire.
D2 shows the new key once, in an amber panel. Click Copy, put the key in that system's settings, then click I have copied it. D2 keeps only a scrambled copy of the key, so it cannot show it again.
The list shows every key: its name, its first characters, who made it and when, when it was last used, when it expires, and whether it is Active, Expired or Revoked.
To stop a key, click Revoke on its row, then Revoke key. Anything using it is refused from its next request. Revoked keys stay in the list, grayed, with who revoked them and when.
Good to know
Give each system its own key, so you can revoke one without stopping the others. To change a key, make a new one, move the system to it, then revoke the old one.
Each key can make 60 requests a minute. Last used is updated at most once a minute.
How a system sends the key is in the D2 Integration API guide, at help.d2scheduling.com/guides/integration-read-api/ (For developers, on the help site's front page).
FAQ
I lost a key. Can I see it again? No. Revoke it and make a new one.
Who can make keys? Admins only. Planners and other users do not see the section.
Can a key change anything in D2? Only one thing. A key may send stocking suggestions for a source your company registered, and a person still accepts, edits, rejects or defers each one in Items. It never changes a policy, an order or a schedule. Every other route a key reaches only reads.
Checked against the live app