ISMS Copilot Docs

Get an API key and first completion

Create an sk-isms key in the platform console and call the OpenAI-compatible chat completions endpoint.

Prerequisites

  • An ISMS Copilot account signed in at platform.ismscopilot.com.
  • A positive prepaid credit balance (buy credits under Credits). Completions debit the balance; an empty balance fails the request.

1. Create a key

  1. Open platform.ismscopilot.com/keys.
  2. Create a key. Give it a name you will recognise later.
  3. Copy the key immediately. It starts with sk-isms- and is shown only once.
  4. Optionally set per-key spend limits (hour / day / week / month).

2. First request (curl)

curl https://api.ismscopilot.com/v1/chat/completions \
  -H "Authorization: Bearer sk-isms-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "isms-fast",
    "messages": [
      {"role": "user", "content": "List 3 ISO 27001 access control requirements."}
    ]
  }'

3. OpenAI SDK (Python)

from openai import OpenAI

client = OpenAI(
    base_url="https://api.ismscopilot.com/v1",
    api_key="sk-isms-...",
)

resp = client.chat.completions.create(
    model="isms-thinking",
    messages=[{"role": "user", "content": "Difference between SOC 2 Type 1 and Type 2?"}],
)
print(resp.choices[0].message.content)

4. OpenAI SDK (Node)

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.ismscopilot.com/v1",
  apiKey: "sk-isms-...",
});

const resp = await client.chat.completions.create({
  model: "isms-fast",
  messages: [{ role: "user", content: "Which GDPR articles cover the DPO?" }],
});
console.log(resp.choices[0].message.content);

5. List models

curl https://api.ismscopilot.com/v1/models \
  -H "Authorization: Bearer sk-isms-..."

Without a key the endpoint returns 401 with an authentication error. That is expected.

Common failures

SymptomLikely cause
401Missing or wrong Authorization: Bearer header; revoked or unknown key
429 / quota style errorCredit balance empty, or a per-key spend limit hit

Treat sk-isms-… like a password. Revoke it in the console if it leaks, and create a new one.

On this page