Documentation Index
Fetch the complete documentation index at: https://docs.slideless.ai/llms.txt
Use this file to discover all available pages before exploring further.
For most use cases, the
slideless CLI is easier than calling this endpoint directly. The CLI command equivalents are slideless verify (exit-code-based pass/fail) and slideless whoami (full identity output).When to use
Test that an API key is valid before making destructive calls. Useful at the start of CI jobs, scripts, or interactive setup flows. The marketplacesetup-slideless skill uses this endpoint to confirm a freshly-created key works.
The endpoint is intentionally cheap — it touches Firestore once but does no storage or compute work.
Endpoint
Auth
| Header | Value |
|---|---|
Authorization | The key you want to verify (cko_… or cka_…) |
Response (200)
For an organization key (cko_):
cka_), organizationId and organizationName are null; type is "admin-api-key".
| Field | Type | Description |
|---|---|---|
success | boolean | Always true on 200 |
data.type | string | "org-api-key" or "admin-api-key" |
data.keyName | string | null | Human-readable label given at creation |
data.keyPrefix | string | null | First 8 chars (cko_abcd) — safe to display |
data.scopes | array of strings | The scopes attached to this key |
data.organizationId | string | null | The org context (null for admin keys) |
data.organizationName | string | null | The org’s display name (null for admin keys) |
data.createdAt, data.expiresAt, data.lastUsedAt | ISO 8601 string | null | Timestamps |
data.requestId | UUIDv7 string | Trace ID — include in support requests |
Errors
| Status | Code | Cause | Fix |
|---|---|---|---|
401 | unauthenticated | Missing, malformed, or revoked key | Send a valid cko_ or cka_ value in Authorization |
405 | method-not-allowed | Used GET/PUT/etc. | Use POST |
500 | internal | Backend error fetching metadata | Retry; if persistent, include requestId in support request |
Examples
curl
Node.js
Operational use
- At the start of long-running scripts. Fail fast if the key is wrong before doing any real work.
- In CI before deploys. Make sure the secret in your CI vault is still valid.
- In setup wizards. The marketplace
setup-slidelessskill calls this immediately after the user pastes the key, so users get instant feedback.