Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Synoptic Customer Ingest API
version: 1.0.0
description: 'Token-authenticated programmatic surface for Synoptic: dashboards (CRUD + widgets + preview + render), ask and direct context retrieval. Authenticate with an org-scoped API key (Settings → API Keys) as a bearer token. A key carries scopes — the access grant — and is org-scoped: every request derives its org ONLY from the key, and sees every record of the workspace''s workspace connections, and none of anyone''s personal connections.
Rate limits (per organization, per minute): 120 reads, 120 writes, 1,000 ingest calls, 10 pipeline-backed calls (ask / preview / render). Over the limit returns 429 with Retry-After. These are FLOORS, not exact ceilings: counters are held per web task and requests are not pinned to a task, so a caller is always allowed at least the stated number per minute and may in practice be allowed a small multiple of it. Do not build a client that depends on the extra headroom — it varies with how the service is scaled. Honour Retry-After instead.
Per-key query limits (exact, shared across the service): each key may make 600 context searches plus asks per minute and run 20 at once. Over the rate returns 429 rate_limited; a 21st call while 20 run returns 429 concurrency_limited. Both carry Retry-After. A workspace can ask for higher limits.'
servers:
- url: /api/v1
security:
- ApiKey: []
tags:
- name: Ingest
paths:
/ingest:
post:
summary: Queue documents for indexing
description: 'Scope: ingest. One document, or {"documents": [...]} with 1 to 100. Each needs id (1-512 chars), text (up to 1,000,000 chars) and timestamp (ISO 8601 with a timezone; it dates the document). metadata is optional JSON (64 KB). The same id replaces. Body at most 25 MB. A 202 means durably queued, not indexed: indexing runs in the background. Lochless workspaces: indexing costs a price per page (3,000 characters of text, rounded up, at least 1 per document), charged from the balance once when the document is ready; a failed document is free, and re-sending the same text is free. At zero balance or at the monthly spend cap the call answers 402, and documents already queued wait for a top-up. 429 queue_full when a million documents are pending.'
requestBody:
required: true
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/IngestDocument'
- type: object
additionalProperties: false
required:
- documents
properties:
documents:
type: array
minItems: 1
maxItems: 100
items:
$ref: '#/components/schemas/IngestDocument'
example:
documents:
- id: t-4411
text: Charged twice for the March invoice.
timestamp: '2026-10-01T09:30:00Z'
metadata:
title: Ticket 4411
responses:
'202':
description: '{documents: [{id, status}]}'
'400':
description: Invalid documents
'401':
description: Missing, invalid, revoked or expired API key
'402':
description: 'Lochless workspaces: spend_cap_reached (monthly spend cap reached) or add_credit (balance used up; top up in the console)'
'403':
description: Missing ingest scope
'409':
description: 'conflict: ingest paused for this workspace'
'413':
description: 'payload_too_large: body or document too large'
'429':
description: Rate limited, or queue_full; honour Retry-After
tags:
- Ingest
operationId: postIngest
x-operation-id-source: derived
components:
schemas:
IngestDocument:
type: object
additionalProperties: false
required:
- id
- text
- timestamp
properties:
id:
type: string
minLength: 1
maxLength: 512
text:
type: string
minLength: 1
maxLength: 1000000
timestamp:
type: string
format: date-time
metadata:
description: Any JSON, at most 64 KB. metadata.title and metadata.url are shown with results.
securitySchemes:
ApiKey:
type: http
scheme: bearer
bearerFormat: sk_synoptic_*