Open app

Managing API keys for your mill

Updated November 2026 · Features

Managing API keys for your mill

If your mill brings lab measurements into a separate system, that system needs its own way to read the data. An API key gives it access without tying the connection to someone’s personal login. Each key has a name so you can tell which connection it serves and decide when to keep or end access.

Who can manage keys

Mill administrators and owners find API Keys under Management. Select the mill you administer to see the keys that reach its data. Open a key by name to see the expiration date, who set it up, and recent activity; Close details puts the details away again. Mill administrators and owners can also use Revoke key to end access. The technical reference is available from API Keys to anyone who can open that screen.

Whose data it can read gives one line for each mill you can see on the key: the mill, what the key reads there, and its Mill ID, a number the connected system needs to ask for that mill’s data. Select the copy button at the end of the line to copy the ID, then pass it to the person who sets up the connection.

The Chip Lab team creates keys, changes their settings, replaces them, and extends their expiration dates. Ask the team to set up a connection for your mill.

Asking The Chip Lab for a key

Give The Chip Lab team a name that identifies the system using the key and tell the team which mills, suppliers or supplier group it needs to read. Decide who will install the key in that system and where your team keeps credentials for integrations.

The Chip Lab sees the key only once, when it is created, and passes it to the person who will install it. With it, the team can send setup details: each mill’s name, Mill ID and time zone, what the key can read, the address the system connects to, and where to find the technical reference. The setup details never include the key itself, which is always sent separately.

What a key can do

What this key can do shows that the key can read lab samples and averages. The key can read the data it was set up to reach: one or more whole mills of your company, selected suppliers at one mill, or one supplier group at one mill. A supplier-group key follows the group's current suppliers, so changing the group's members changes what the key can read, including earlier samples of a supplier added to the group. That selection is visible on the key’s details. Access is set when the key is created. If another system needs a different set of data, ask The Chip Lab to set up a separate key.

Copying a ready request from the Samples grid

When your mill has a working key, anyone who can open API Keys for the mill also sees a Copy as API request button, marked with a code sign (</>), beside the filters on the Samples grid (Chip Data › View Sample Data). Apply the filters you want first (until then the button says so when you point to it), then select it to get a request for the connected system's key: a ready cURL command, or just the request content. On a phone the action is in the More actions menu instead, once filters are applied. The cURL command has a placeholder where the key goes, and the person who installs the key puts it there.

The action builds a request for the filters and dates on screen. Some filters and look-ups cannot be copied: instead of showing a request, the app names what stops the copy and what to change. After changing it, copy again, as there may be something else to change. Held samples and validation samples are never returned. A key that reads only some of the mill's suppliers needs the screen filtered to match, and the app tells you when it does.

If the mill has keys that read different data, choose which key the request is for. The request keeps the exact dates on screen. When a window that moves forward each day would cover those same days, you can copy that instead, for a system that reads the latest samples on a schedule.

Copying a request does not use the key, and the key itself is never shown.

Replacing a key

Ask The Chip Lab to replace a working key when your organization requires a new credential. The replacement window gives your team time to install the new key. The old key’s details show when it stops working. Share that time with the person who runs the connected system, then check Usage on the new key to confirm the system has used it successfully.

Renewing a key

If the system should keep using its current key, ask The Chip Lab to renew it before the expiration date. Renewal extends the date while keeping the same key. You can see the new expiration date and renewal in the key details.

When keys expire

Every API key has an expiration date. The Chip Lab emails a reminder as the date approaches and a notice when the key expires. An expired key stops working. To restore access, ask The Chip Lab for a new key and coordinate with the person who runs the connected system.

Revoking a key

Use Revoke key when a system should lose access immediately, such as when the connection has been retired or the key may have been shared. The app asks for your password before revoking it. If the key serves more than one mill, revoking it stops access at every mill it reaches. During a replacement window, revoking either working key ends access for both.

The Revoke key dialog for a demo key: a warning that the key stops working immediately and any system using it loses access, and a field for your password

The mill’s administrators and The Chip Lab are notified when a key is created, replaced, renewed, or revoked. The email about a new key lists each mill you can see on it with its Mill ID. Use those messages to coordinate changes with the person who runs the connected system.

Reading usage

Usage shows the last successful use, a summary of the period, and recent requests. Mill administrators see activity for the selected mill. Choose dates to narrow the view when you are checking an alert or confirming that a system has started using a new key.

Usage for a demo key: the last successful use, a summary card reading 89% successful with 5 requests not answered and why, and the latest requests, one of them refused as too many samples

The summary leads with the share of requests that were answered, such as "69% successful", and the counts behind it. A bar under it splits the requests by kind of result, each in its own color: successful, refused because of the request, refused because of the key or the caller, and a fault on The Chip Lab's side. Beside it (below it on a narrow screen), the summary lists how many requests were not answered and why, with the count for each reason and, on a wider screen, a short bar showing its share. A green check means nearly every request was answered; otherwise the icon takes the color of the most serious kind of result in the period.

Rows returned counts the rows sent to the connected system. Too many samples means a search asked for more than one request can return; the system should narrow its dates or filters.

Reading the API reference

Select API reference on the API Keys screen to open the technical reference for the person who builds the connected system. The top of the page names the selected mill and shows its ID, with a button to copy it, and the example requests already use that ID, so only the key is left to add.

A contents column (On this page on a narrow screen) jumps to any section, and Filter fields finds a field by its name or description. Long sections open and close, or use Expand all. Copy buttons copy an example, an address or a link to a section. Print gives a full copy on paper or as a PDF, whatever is open or filtered on screen.

For an overview of what the lab data looks like inside the app, see Quality overview and alerts.

Have feedback or a question about this article? Let us know.