Authorization: Bearer header. This page covers routine replacement. Create the new key,
prove it works, move the application, then revoke the old key. Your
application keeps working the whole time, and the old key stops working only
when you revoke it.
Goal: Replace a Millwork API key without interrupting the application.
You are done when: the application uses the new key and the old key returns
401.
Before you begin
SetMILLWORK_API_URL and MILLWORK_API_KEY as shown in
Make your first API call.
1
Find the old key
key_prefix) to identify the key. The list never
returns the full key. Millwork cannot show a key again after it is created.2
Create and test the replacement
200). A 401 means the new key was not accepted, most often because the value in
NEW_MILLWORK_API_KEY is not the new key; do not continue to the next step.The full replacement key appears once, in this response. Store it in the
application’s secret manager, update the application, and confirm the
application works. Reading the model catalog is a safe test of a key: it is not
a run, so it has no platform fee.3
Revoke the old key
revoked. A request using it returns 401.Revoking an organization key does not change your provider keys. Replace those separately with
Replace a provider key.