openapi: 3.1.0
info:
title: SingleStore Data Files Organizations API
description: The SingleStore Data API enables developers to execute SQL statements against a SingleStore Helios database over standard HTTP connections without requiring a native database driver or MySQL-compatible client. It supports all SQL statements available through a direct database connection, returning results as JSON-encoded responses using standard HTTP methods and response codes. The API exposes endpoints for executing DDL and DML statements via /api/v2/exec and returning query result sets via /api/v2/query/rows and /api/v2/query/tuples. Authentication is handled using HTTP Basic or Bearer Authentication over HTTPS. The API supports up to 192 parallel requests per aggregator, making it suitable for serverless architectures and custom application integrations.
version: v2
contact:
name: SingleStore Support
url: https://support.singlestore.com
termsOfService: https://www.singlestore.com/cloud-terms-and-conditions/
servers:
- url: https://{workspaceHost}
description: SingleStore Helios workspace endpoint. Replace workspaceHost with the hostname of the target workspace obtained from the Cloud Portal or Management API.
variables:
workspaceHost:
default: your-workspace.singlestore.com
description: Hostname of the SingleStore Helios workspace to query. Obtain this value from the workspace endpoint field in the Cloud Portal or via the Management API.
security:
- basicAuth: []
- bearerAuth: []
tags:
- name: Organizations
description: Retrieve information about the current user's organization within SingleStore Helios.
paths:
/organizations/current:
get:
operationId: getCurrentOrganization
summary: Get Current Organization
description: Retrieves information about the organization associated with the current API key, including the organization ID, name, and creation timestamp.
tags:
- Organizations
responses:
'200':
description: Current organization returned successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/Organization'
'401':
$ref: '#/components/responses/Unauthorized'
components:
responses:
Unauthorized:
description: The request did not include a valid Bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
description: Standard error response returned when an API request fails.
properties:
code:
type: integer
description: HTTP status code of the error.
message:
type: string
description: Human-readable description of the error.
Organization:
type: object
description: An organization is the top-level account entity within SingleStore Helios, grouping users, workspace groups, and billing.
properties:
orgID:
type: string
format: uuid
description: Unique identifier of the organization.
name:
type: string
description: Human-readable name of the organization.
createdAt:
type: string
format: date-time
description: ISO 8601 timestamp when the organization was created.
securitySchemes:
basicAuth:
type: http
scheme: basic
description: HTTP Basic Authentication using SingleStore database credentials. Provide the username and password as a Base-64 encoded username:password string in the Authorization header.
bearerAuth:
type: http
scheme: bearer
description: Bearer token authentication using a JWT token obtained from the SingleStore Cloud Portal.
externalDocs:
description: SingleStore Data API Documentation
url: https://docs.singlestore.com/cloud/reference/data-api/