API Keys & External Integrations
Phase 8 — Integrations · Step 2
Sometimes the integration you need isn't a pre-built connector. It's your own script, a custom dashboard, or another system that needs to talk to OpenFrame directly. That's what API keys are for: they let external code authenticate to the OpenFrame External API. This guide covers creating a key, keeping it safe, what the API can do, and where to find the full endpoint reference.
Quick steps
- Go to Settings → API Keys Management.
- Click Create API Key, name it for what will use it, and set an expiry if it's temporary.
- Copy the key straight away. It's shown only once.
- Open API Documentation for the endpoints, and send the key in the
X-API-Keyheader with each request.
Before you start
- You need an Admin role.
- Know what the key is for (which script or system will use it) so you can name it clearly and set a sensible expiry.
The API Keys page
Go to Settings → API Keys Management. The API Keys page shows how many keys your workspace has and a table of them:
| Column | What it shows |
|---|---|
| Name | The name you gave the key, with its description beside it |
| Status | Whether the key works, for example ACTIVE |
| Key ID | The public part of the key, starting ak_. Safe to share when you need to say which key you mean |
| Usage | How many requests have been made with the key |
| Created | When the key was created |
| Expires | The expiration date, or — if the key doesn't expire |
At the top of the page:
| Control | What it does |
|---|---|
| API Documentation | Opens the in-product API reference (Swagger) with every endpoint |
| Create API Key | Opens the form to create a key |
| Auto-refresh | How often the table reloads, or Off |
| Table settings (gear) | Tick which columns show, and drag them to change their order |
On a narrow screen, API Documentation and Create API Key move into the ⋯ menu at the top right.
Create a key
- Click Create API Key.
- API Key Name (required): name it for what uses it, e.g. Reporting integration or Nightly inventory export. Future-you needs to know which key to switch off if something leaks.
- Description (optional): a line on its purpose.
- Expiration Date (Optional): set one for keys tied to a temporary integration or a vendor; leave blank for a long-lived internal key. Short-lived is safer.
- Click Create API Key, or Cancel to close the form without creating anything.
Copy the key immediately. OpenFrame shows the full secret once, at creation. Copy it straight into your integration's secret store or password manager.
What the API can do
The API reference groups the endpoints like this:
| Area | What you can do |
|---|---|
| Devices | List and filter devices, get one device, change its status or nickname |
| Customers | List, create, read and update customers, change a customer's status, and check whether a customer can be archived |
| Tickets | List, create and update tickets, move a ticket to another status, assign or unassign it, add or remove tags, add internal notes, unlink a device or customer, and read ticket statuses, tags, filters and statistics |
| Knowledge Base | Browse folders and articles; create, rename and delete folders; create, update, publish, unpublish, archive and restore articles; move items; tag them; attach files and get download links |
| Logs | Read logs, log filters and log details |
| Tools | List the tools integrated with your workspace |
| Integration API | Pass a request through to an integrated tool's own API. The API Documentation lists which tools and calls are available |
Click API Documentation for every endpoint, its parameters and its request and response shapes. You can try requests from that page too.
Authentication
Send your key in the X-API-Key header with every request:
codeX-API-Key: ak_your_key_id.sk_your_secret_key
Treat the key like a password.
Rate limits
By default, each key can make:
| Period | Requests |
|---|---|
| Per minute | 100 |
| Per hour | 1,000 |
| Per day | 10,000 |
Every response includes X-RateLimit-Limit-Minute, X-RateLimit-Remaining-Minute, X-RateLimit-Limit-Hour and X-RateLimit-Remaining-Hour, so your integration can slow down before it hits the limit.
Error codes
| Code | Meaning |
|---|---|
200 | Success |
400 | Bad request |
401 | Invalid or missing API key |
403 | Valid key, but not allowed to do this |
429 | Rate limit exceeded |
500 | Server error |
Managing keys
Each row's ⋯ menu has Details, Edit, Regenerate and Disable. Details and Edit work like this:
| Action | What it does |
|---|---|
| Details | Opens API Key Details: the key's name, status, Key ID, Created, Expires, Total Requests, Successful Requests, Failed Requests and Last Used |
| Edit | Opens Edit API Key, where you can change the API Key Name, Description and Expiration Date, then Save Changes |
Good habits:
- One key per integration, named clearly, so switching one off doesn't break everything else.
- Rotate keys periodically, and immediately if one may have leaked.
- Set expirations on anything temporary.
- Never commit a key to source control or paste it into a ticket or chat.
Common questions
Does OpenFrame have an API? Yes. Create a key under Settings → API Keys Management, and see every endpoint in API Documentation (a Swagger reference).
What can I do with the API? Work with devices, customers, tickets and knowledge base articles, read logs, list your integrated tools, and pass requests through to an integrated tool with the Integration API.
Can I create tickets through the API? Yes. The Tickets endpoints create, update, assign, tag and move tickets between statuses, and add internal notes.
How do I authenticate API requests? Send the key in the X-API-Key header with each request.
What are the API rate limits? By default, 100 requests a minute, 1,000 an hour and 10,000 a day per key. Going over returns 429.
I lost my API key. Can I see it again? No. The full key is shown once. Create a new key, update your integration, then choose Disable on the old key.
Can API keys expire? Yes. Set an Expiration Date when you create the key.
How do I stop a key from working? Choose Disable from the key's ⋯ menu on the API Keys table.
Can I export device inventory to my own reports? Yes. Pull it from the Devices endpoints on a schedule.
Quick checklist
- Opened Settings → API Keys Management
- Created a key with a clear name (and expiry if temporary)
- Copied the secret once into a secure store
- Sent the key in the
X-API-Keyheader - Checked API Documentation for the endpoints you need and the rate limits
- Used one key per integration and planned for rotation
What's next
That completes Phase 8 — Integrations. OpenFrame is now wired to your identity provider and open to your own systems through the API. Next is Phase 9 — Security & Access Control: locking down roles, AI guardrails and audit logging before you go to production.
