Published and preview code sites receive internal keys automatically. To connect another integration, open the business’s Settings → Developers → Manage credentials.
Create a named key with the permissions the integration needs. Copy it before closing the creation dialog; the list never reveals it again.
1
Open Settings → Developers
Choose the business that owns the site, open Settings, then Developers → Manage credentials. You must be an owner or administrator of that exact organization, with organization-wide membership. A role in another organization or access limited to selected businesses does not unlock this screen.
2
Create API key
Under Platform API keys, choose Create API key. Enter a Name (1–60 characters) and select at least one option under Permissions. Use a separate key for each integration and select only what it needs.
3
Copy once, then close
In API key created, choose Copy credential, store it securely, then choose Done. Closing the dialog clears the displayed value. Nimlio stores only a hash for keys you create here; you cannot reveal the key again.
4
Review and revoke
The list shows the name, prefix, permissions, status, last use and creation date. Choose Revoke and confirm to stop access immediately. To change permissions or replace a lost key, create another and revoke the old one.
The Developers screen keeps integration keys and site MCP connections together.
Site and plan requirements
Create a website first. Creating API keys requires Pro or Enterprise; Starter shows an upgrade dialog that opens billing for the site’s organization. Listing and revoking your own keys remain available after a downgrade. MCP connections additionally require code mode.
Available API permissions: content:read, catalog:read, booking:read, booking:write, leads:write, orders:write, events:write. Self-serve keys start with nk_pub_; only publishable keys authenticate /api/v1.
Managed by Nimlio
Nimlio provisions internal keys for site preview and publishing automatically. Rows marked Managed by Nimlio have no Revoke action. The server supplies the managed boolean; a key’s name alone does not make it managed. Self-serve keys remain revocable even if their names resemble internal keys. Internal provisioning retains the material it needs for embeds; self-serve creation does not.
For scripts, use your signed-in session with the management endpoints below. Creation accepts only name and optional scopes (a non-empty array); omitting scopes grants all seven, so set them explicitly. It returns 201, with data.key only in that response. List returns a metadata array in data, including managed, never the key or hash. Revoke returns 200; trying to revoke a managed key returns 409 conflict, with reason managed_api_key. Create, revoke and unsuspend are audited alongside their mutations. Suspension is a server status; Developers exposes create, list and revoke.
Limits apply per key and IP address each minute. Over the limit you get 429 rate_limited, except POST /api/v1/events: excess events are silently dropped and the response is still 204.
Reads: 800 per minute.
Slots, order status and events: 60 per minute.
Quotes and carts: 30 per minute.
Booking and order writes: 10 per minute.
Leads and newsletter: 5 per minute.
Photo and proof uploads: 3 per minute.
On top of that, newsletter sign-ups are capped at 100 per business per hour and cart writes at 2,000 per business per hour.
Each key also has a daily quota, 50,000 requests by default (it can differ by plan or deployment). Days are counted in the America/Bogota time zone.
Recipes
Copy-paste examples for the most common integration tasks. They use the placeholder key nk_pub_xxxxxxxx and your site's own origin; replace both with your own values.
Authenticate with a publishable key
Send the key in ONE of two headers: Authorization with a Bearer value, or X-Nimlio-Key. If both are sent with different values the request is rejected with 401 invalid_api_key, and no key at all is 401 missing_api_key. Secret keys that start with nk_sec_ are not accepted by /api/v1. A suspended key answers 403 api_key_suspended, and a password-protected site answers 403 site_locked for visitor reads. Publishable keys are safe to ship in browser code: they only read published data and write visitor-originated records.
Every endpoint in the reference declares exactly one scope, shown as a chip, and the key must hold that exact string. The scopes are content:read, catalog:read, booking:read, booking:write, leads:write, orders:write, and events:write. A key without the required scope gets the 403 response below.
Catalog lists accept limit (default 50, maximum 100) plus either offset or the cursor from the previous meta.nextCursor. When both are sent, offset wins, and a malformed cursor is 400 invalid_cursor. Never parse a cursor: pass it back as is.
CMS items differ: the items endpoint uses limit (default 25, maximum 100) and an opaque cursor, and returns data.items, data.nextCursor, and data.hasMore instead of a top-level meta.
Success is always ok true with data, and lists add meta. Failure is always ok false with an error object that has code, message, and optionally reason, fieldErrors, values, details, and requestId. The code is a small stable vocabulary: invalid_input 400 (422 when the request is well formed but cannot be processed, such as a rejected upload), unauthenticated 401, forbidden 403, not_found 404, method_not_allowed 405, conflict 409, gone 410, limit_reached 409 or 402, payload_too_large 413, unsupported_media 415 or 406, rate_limited 429, unavailable 503, internal 500. The reason gives the specific cause, such as missing_scope, invalid_cursor, business_closed (410, the store is closed), or site_unpublished and site_not_found (404, the site is not being served).
async function nimlioFetch(path, init = {}) { const res = await fetch(`https://your-site.example/api/v1${path}`, { ...init, headers: { Authorization: "Bearer nk_pub_xxxxxxxx", "Content-Type": "application/json", ...init.headers }, }); if (res.status === 204) return null; // e.g. POST /events has no body const body = await res.json(); if (body.ok) return body.data; const { code, reason, message, fieldErrors, requestId } = body.error; switch (code) { case "invalid_input": // 400 — fieldErrors maps field -> message throw new Error(`Fix the form: ${JSON.stringify(fieldErrors)}`); case "unauthenticated": // 401 — reason: missing_api_key | invalid_api_key case "forbidden": // 403 — reason: missing_scope | api_key_suspended | site_locked throw new Error(`Key problem (${reason})`); case "not_found": // 404 return null; case "rate_limited": // 429 — back off and retry await new Promise((r) => setTimeout(r, 1000)); return nimlioFetch(path, init); default: // conflict 409, limit_reached 409/402, internal 500, ... throw new Error(`${code}: ${message} (request ${requestId ?? "n/a"})`); } }
Quote requestId when you contact support. Analytics beacons (POST /api/v1/events) may answer 204 with no body.
The quote body is closed to selections: items, customer location, discount or gift codes, and the shipping rate. Any price, total, discount, currency, or businessId field is rejected with 400 client_order_fields_not_allowed. Amounts in the response are COP centavos.