OpenAPI Specification
openapi: 3.0.1
info:
title: Quix Cloud HTTP APIs Definitions Topics API
description: 'OpenAPI 3.0 description of the HTTP (REST) surfaces of Quix Cloud: the Streaming Writer API for publishing time-series parameter data, events, and definitions into Quix topics, and the account-wide Portal API for managing workspaces, topics, and deployments.
The Streaming Reader API is delivered exclusively over a Microsoft SignalR hub (WebSockets / Long Polling) and is therefore modeled separately in the companion AsyncAPI document at asyncapi/quix-asyncapi.yml, not here.
All endpoints authenticate with a Quix Personal Access Token (PAT) supplied as an `Authorization: Bearer <PAT>` header. The Streaming Writer API base host is environment-specific (`writer-{environmentId}.cloud.quix.io`); the Portal API is account-wide (`portal-api.platform.quix.io`). Endpoint paths are documented by Quix; per-environment Swagger/OpenAPI references are available from the Quix portal under Settings > APIs and tokens.'
termsOfService: https://quix.io/terms/
contact:
name: Quix Support
url: https://quix.io/contact/
license:
name: API documentation - Quix Terms
url: https://quix.io/terms/
version: '1.0'
servers:
- url: https://writer-{environmentId}.cloud.quix.io
description: Streaming Writer API. Environment-specific host; `{environmentId}` is the URL-friendly combination of organization, project, and environment names (e.g. `myorg-myproject-production`).
variables:
environmentId:
default: myorg-myproject-production
description: Quix environment (workspace) identifier.
- url: https://portal-api.platform.quix.io
description: Portal API. Account-wide management host. The subdomain segment may differ per Quix deployment; copy the exact Portal API base from the Quix portal (Settings > APIs and tokens).
tags:
- name: Topics
description: Manage Kafka topics in a workspace (Portal API).
paths:
/topics:
get:
operationId: getTopics
tags:
- Topics
summary: List topics
description: Returns Kafka topics for a workspace. (Portal API.) The workspace is typically supplied as a `workspaceId` query parameter.
servers:
- url: https://portal-api.platform.quix.io
parameters:
- name: workspaceId
in: query
required: true
schema:
type: string
description: The workspace the topics belong to.
responses:
'200':
description: A list of topics.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Topic'
'401':
$ref: '#/components/responses/Unauthorized'
security:
- bearerAuth: []
post:
operationId: createTopic
tags:
- Topics
summary: Create a topic
description: Creates a new Kafka topic in a workspace. (Portal API.)
servers:
- url: https://portal-api.platform.quix.io
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTopicRequest'
responses:
'200':
description: Topic created.
content:
application/json:
schema:
$ref: '#/components/schemas/Topic'
'401':
$ref: '#/components/responses/Unauthorized'
security:
- bearerAuth: []
/topics/{topicId}:
delete:
operationId: deleteTopic
tags:
- Topics
summary: Delete a topic
description: Deletes a Kafka topic from a workspace. (Portal API.)
servers:
- url: https://portal-api.platform.quix.io
parameters:
- name: topicId
in: path
required: true
schema:
type: string
responses:
'200':
description: Topic deleted.
'401':
$ref: '#/components/responses/Unauthorized'
security:
- bearerAuth: []
components:
responses:
Unauthorized:
description: Authentication failed - the bearer token is missing, malformed, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
CreateTopicRequest:
type: object
required:
- name
- workspaceId
properties:
name:
type: string
workspaceId:
type: string
partitions:
type: integer
retentionInMinutes:
type: integer
retentionInBytes:
type: integer
Error:
type: object
properties:
status:
type: integer
title:
type: string
detail:
type: string
Topic:
type: object
properties:
id:
type: string
name:
type: string
workspaceId:
type: string
status:
type: string
partitions:
type: integer
retentionInMinutes:
type: integer
retentionInBytes:
type: integer
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: PAT
description: 'Quix Personal Access Token (PAT) presented as `Authorization: Bearer <PAT>`. Generate from the Quix portal under your profile > Personal Access Tokens, or Settings > APIs and tokens.'