REST API & MCP integrations
API key management
Create and protect REST API credentials, understand the key list, and safely revoke or replace keys—including after a plan change.
Reviewed
1. Access and scope
Lite: US$9/month. Six thermal coil calculators, basic geometry and 10 calculations/day total (UTC). Reports and advanced engineering require higher plans. Free accounts have no engineering access. Lite costs US$9/month and includes the six thermal finned-tube calculators and basic geometry, with 10 calculations per day total (UTC). No reports, project saving, 2D/3D, exports, API, MCP, psychrometrics or builders. Lite accounts have no engineering access. The API Keys page at /api-keys manages credentials for the REST API under /api/v1/. Creating keys and using that API require Enterprise or Manufacturer with subscription status active or trialing. Lite and Professional do not include REST access.
Sign in to manage your own keys. Listing, revoking and deleting existing keys remain available after a downgrade or cancellation; that security access does not restore permission to create keys or call the REST API. A key marked Active is not proof that its owner's subscription is currently eligible.
2. Create a named key
There is no permission picker, expiration picker, rename control or rate-limit editor on this page. The current form sends calc:read and projects:read and does not set an expiration. Do not infer extra endpoints from permission names: the current REST router has calculation/refrigerant routes and health, not project-reading routes. The page does not offer a wildcard permission option.
The limit is ten stored key records per account, including revoked keys—not ten active keys. Revoking keeps the record and does not free a slot; deleting a revoked record through the page does. New Key is disabled when ten records exist, while loading, on a list error, or without an eligible plan.
- Open API Keys while signed in. Wait for the list to finish loading; resolve any loading error before creating a key.
- Choose New Key (or Create Key in the empty state). Enter a descriptive Key Name identifying the application or environment, without putting secrets or customer information in the name.
- Choose Create once and wait for the result. The name is trimmed and must be nonempty; the server accepts at most 255 characters. Cancel closes the creation dialog without creating a key.
- On success, copy the full key from the Save your API key now panel and store it securely before closing the panel, leaving the page or reloading.
3. One-time display and secure storage
REST keys begin with exk_ followed by 64 hexadecimal characters. The server stores a SHA-256 hash and a 12-character identifying prefix, not a recoverable copy of the full credential. The full key is returned only by the creation response. The list cannot reveal it later.
Use the copy button, then verify that the complete credential reached your approved secret store. If clipboard access is blocked by the browser, copy directly from the still-visible panel. A copy toast alone is not proof that a usable secret was saved. Closing the panel clears its displayed value; reloading or leaving the page loses this opportunity.
- Keep the secret in a server-side secret manager or protected environment configuration, never browser application code, public repositories, screenshots, URLs, prompts or shared calculation files.
- Use separately named keys for separate integrations when practical, within the record limit, so an incident can be contained without replacing unrelated credentials.
- If a key is lost, there is no reveal or recovery action. Identify and revoke the old record, then create and configure a replacement if the plan is eligible.
4. Read the list and counters correctly
The management response contains explicit metadata only; it excludes the hash, full key and owner identifier. The page does not display the metadata request count, permissions, expiration or per-key rate limit as table columns. There is no full request log or editable key-details view here.
Last-use bookkeeping is asynchronous and occurs after authentication and rate limiting, before endpoint permission checks and calculation completion. It can lag and does not prove a calculation succeeded.
| Display | Meaning and limitation |
|---|---|
| Name / Key | The chosen label and identifying prefix followed by an ellipsis; the prefix is not a usable credential. |
| Active / Revoked | Whether the record is enabled or revoked. Active does not certify subscription eligibility or expiration status. |
| Created / Last Used | Dates displayed using the browser's date formatting. Never means no last-use timestamp is recorded, not a complete audit guarantee. |
| Active Keys / total | Active records are counted separately from all stored records. Revoked records still count toward the maximum of ten. |
| Requests / min / Calculator Endpoints | The page shows the default 100 requests per minute and six calculator families; these are not a live usage chart or request history. |
5. Authentication, limits and request failures
For an integration, send the full REST key in the Authorization header as a Bearer credential over HTTPS. A key prefix or an MCP token will not work. The following is only a header template, not a request to run. Consult the endpoint reference for the actual input contract and units; the key-management page's short calculation example is not a complete input specification.
The default REST limit is 100 requests per minute per key. Responses that reach the limiter include X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; Reset is a Unix timestamp in seconds. The current limiter is in server-process memory, not a guaranteed shared quota across replicas. Do not treat the displayed default as a throughput guarantee.
- 401: check for a missing/malformed Bearer header, wrong credential type, truncated key or unknown key. Never paste the key into an error report.
- 403: inspect the response message for revocation, expiration, ineligible subscription or a missing endpoint permission. Creating another key does not fix a subscription restriction.
- 429: stop rapid retries and wait for the reset window. Calculation input and solver failures are separate from key management; preserve the returned error instead of interpreting it as a valid result.
text
Authorization: Bearer <EXCOIL_REST_API_KEY>6. Revoke first; delete only when appropriate
The page exposes Delete only for revoked rows. Owner checks apply to management actions, including after downgrade. Do not confuse REST revocation with revoking an independent MCP connection.
- Identify the correct record by name and prefix. Plan replacement of an in-use integration first, unless a suspected leak requires immediate revocation.
- Choose Revoke on an active row. Read the confirmation and check the key name; Cancel makes no change. Confirm Revoke key only when ready to block new requests using it.
- Wait for completion and the list refresh. The row should become Revoked, the active count should fall, and Delete should replace Revoke. A revoked key cannot be reactivated.
- To remove the remaining record and free a slot, choose Delete on the revoked row, verify the name and confirm Delete key. This permanent record removal cannot be undone.
7. Confirm the result and recover from errors
While the list is loading, the page shows a loading message. If loading fails, it shows an error and Try again; do not mistake a failed load for an empty account. A successful empty list says No API keys yet. Creation and management errors show server messages; revoke/delete errors also remain inline in the confirmation dialog.
During revoke/delete processing the confirmation controls are disabled to avoid duplicate submissions. If the request fails or its outcome is uncertain, keep the error message without secrets, reload the list and inspect the specific row before trying again. Reopening or reloading the page refreshes management state but cannot restore a newly generated full key.
- After an uncertain creation result, inspect the list for the named record before creating duplicates. If it exists but you never saved the secret, revoke it and replace it; it cannot be recovered from metadata.
- If New Key remains unavailable, check subscription eligibility, list-loading errors and the total number of records. Revoke alone does not reduce that total.
- After success, verify the expected state: Revoked for revocation; the row absent for deletion. If state remains inconsistent after reloading, do not assume the action succeeded or expose secrets while seeking help.
8. Keep MCP connections separate
MCP is managed on the separate /mcp page and uses dedicated exm_ Bearer tokens for /api/mcp. REST exk_ keys are not accepted as MCP credentials, and MCP tokens do not replace REST keys. MCP creation and use require Manufacturer with active or trialing status, not Enterprise alone.
MCP uses manual Bearer configuration, not OAuth. Its tokens have their own scopes, 7/30/90-day validity choices and revocation flow; project reading is a separate opt-in. The REST key form does not expose those controls. Listing and revoking existing MCP connections also remain available after downgrade.
Use a compatible client and the endpoint shown in the deployed MCP page; availability does not guarantee support in every AI client. Neither REST key creation nor MCP connection setup grants fabrication files, billing actions or administrative access. Detailed fabrication features remain Manufacturer-only within their actual product workflows.
