Skip to content

Build Ishtiga into the websites you ship.

Website builders and agencies can switch on a cited knowledge assistant for every customer automatically: create a workspace, verify the site, import its pages, and hand back an embed snippet — or answer questions headlessly from your own UI.

API keys and MCP access are included in Saku. Keys are created by organisation owners and admins under Developers & MCP in the app, and every fresh answer counts toward the plan's AI answer credits.

Authentication

Send your key as a bearer token on every request. Keys belong to one organisation and can only reach that organisation's workspaces. Keep them on your server — never in browser code.

Authorization: Bearer ishtiga_sk_…
Base URL: https://ishtiga.com/api/public/v1

Quick start

const res = await fetch("https://ishtiga.com/api/public/v1/ask", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ISHTIGA_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ workspaceId, question: "What are your opening hours?" }),
});
const { answer, sources } = await res.json();

Endpoints

GET/workspaces

List the workspaces in the organisation that owns the key, with each widget embed snippet.

curl -X GET https://ishtiga.com/api/public/v1/workspaces \
  -H "Authorization: Bearer $ISHTIGA_API_KEY"

Response

{ "workspaces": [{ "id": "…", "name": "Acme", "publicId": "…", "embedSnippet": "<script …>" }] }

POST/workspaces

Create a workspace for one of your customers. Counts toward your plan's workspace limit.

curl -X POST https://ishtiga.com/api/public/v1/workspaces \
  -H "Authorization: Bearer $ISHTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Acme Plumbing" }'

Response

{ "id": "…", "name": "Acme Plumbing", "publicId": "…", "embedSnippet": "<script …>" }

POST/websites

Add a website to a workspace. Returns a verification code to place as a DNS TXT record, a /.well-known file or a meta tag, and `verifyWith.widgetCode`: widget code carrying the code, so pasting it on the homepage both proves ownership and installs the chat.

curl -X POST https://ishtiga.com/api/public/v1/websites \
  -H "Authorization: Bearer $ISHTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "workspaceId": "…", "url": "acmeplumbing.com" }'

Response

{ "siteId": "…", "origin": "https://acmeplumbing.com", "verificationToken": "ishtiga-verify=…", "verifyWith": { … } }

POST/websites/verify

Check ownership. Once verified, the site may embed the widget.

curl -X POST https://ishtiga.com/api/public/v1/websites/verify \
  -H "Authorization: Bearer $ISHTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "workspaceId": "…", "siteId": "…" }'

Response

{ "verified": true, "method": "dns" }

POST/crawl

Import the verified site (robots-respecting, up to your plan's page limit) into the workspace's knowledge. Re-run to refresh.

curl -X POST https://ishtiga.com/api/public/v1/crawl \
  -H "Authorization: Bearer $ISHTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "workspaceId": "…", "siteId": "…" }'

Response

{ "pages": 12, "skipped": 3 }

POST/ask

Ask a question headlessly. Returns a cited answer and the visitor intent score. Fresh answers use your monthly allowance; cached ones are free.

curl -X POST https://ishtiga.com/api/public/v1/ask \
  -H "Authorization: Bearer $ISHTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "workspaceId": "…", "question": "Do you offer weekend call-outs?" }'

Response

{ "answer": "Yes — Saturday 8am–2pm [1].", "sources": [ … ], "intent": { "intent": "appointment", "score": 70 } }

POST/query

Ask verified workspace knowledge from an AI agent. The response includes grounded status, PII-masked answer and citations, deterministic intent, and PII redaction counts.

curl -X POST https://ishtiga.com/api/public/v1/query \
  -H "Authorization: Bearer $ISHTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "workspaceId": "…", "query": "Do you offer weekend call-outs?" }'

Response

{ "answer": "Yes — Saturday 8am–2pm [1].", "grounded": true, "citations": [{ "id": 1, "title": "Opening hours", "documentId": "…", "passage": 3, "excerpt": "Saturday 8am–2pm" }], "intent": { "label": "appointment", "score": 70, "highIntent": false }, "pii": { "redacted": 0, "types": {} } }

GET/agent/sources?workspaceId=YOUR_WORKSPACE_ID

List published workspace sources approved for the public assistant.

curl -X GET https://ishtiga.com/api/public/v1/agent/sources?workspaceId=YOUR_WORKSPACE_ID \
  -H "Authorization: Bearer $ISHTIGA_API_KEY"

Response

{ "workspace": { "id": "…", "name": "Acme" }, "sources": [{ "id": "…", "title": "Opening hours", "kind": "website", "filename": "acme.example.website.md", "chunk_count": 12, "created_at": "…" }] }

POST/agent/ask

Ask a workspace question through the dedicated agent API. Returns a PII-masked answer, grounded status, citations, intent, and redaction counts.

curl -X POST https://ishtiga.com/api/public/v1/agent/ask \
  -H "Authorization: Bearer $ISHTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "workspaceId": "…", "question": "Do you offer weekend call-outs?" }'

Response

{ "answer": "Yes — Saturday 8am–2pm [1].", "grounded": true, "citations": [ … ], "intent": { "label": "appointment", "score": 70, "highIntent": false }, "pii": { "redacted": 0, "types": {} } }

POST/agent/leads

Create a lead in the workspace Activity Hub with source agent_api. Requires a name and email; other contact details are optional.

curl -X POST https://ishtiga.com/api/public/v1/agent/leads \
  -H "Authorization: Bearer $ISHTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "workspaceId": "…", "name": "Jane Smith", "email": "jane@example.com", "phone": "+61 400 000 000", "company": "Acme Co", "requirement": "Interested in a demo", "qualifiers": { "timeframe": "This month" }, "language": "en-AU" }'

Response

{ "ok": true, "id": "…" }

Rate limits

Each API key may make up to 10 requests per minute. Requests over the limit return HTTP 429 with a JSON error; wait a few seconds and retry with backoff. Fresh answers also draw on the organisation's monthly AI answer credits, and a used-up allowance returns HTTP 402 until it resets or the plan is upgraded.

Versioning

The API version is part of the path (/v1). Within a version, changes are additive: new fields and endpoints may appear, and existing fields keep their names and types. Breaking changes ship as a new version path, and the previous version stays available for at least 12 months after the new one is announced, with notice sent to the organisation's owners and admins.

Errors

Errors return JSON: { "error": "message" }

400
Invalid body or parameters
401
Missing, invalid or revoked key
402
Plan limit reached (workspaces or AI answer credits)
403
Website not verified
404
Unknown endpoint, workspace or website
409
Duplicate website or import already running
429
Rate limit exceeded