ControlApi
activateVersion
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| taskId | Path | String | [default to null] |
| version | Query | String | [default to null] |
Response TaskStatus
delete
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| taskId | Path | String | [default to null] |
Response TaskStatus
deleteState
Request
POST https://api.dataspray.io/v1/organization/{organizationName}/state/delete (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| StateDeleteRequest | Body | StateDeleteRequest |
Response null (empty response body)
deleteTopic
Request
DELETE https://api.dataspray.io/v1/organization/{organizationName}/topic/{topicName} (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| topicName | Path | String | [default to null] |
| expectedVersion | Query | Long | [optional] [default to null] |
Response Topics
deployVersion
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| taskId | Path | String | [default to null] |
| sessionId | Path | String | [default to null] |
| InvocationType | Header | String | [default to null] |
| DeployRequest | Body | DeployRequest |
Response TaskVersion
deployVersionCheck
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| taskId | Path | String | [default to null] |
| sessionId | Path | String | [default to null] |
Response DeployVersionCheckResponse
getState
Request
POST https://api.dataspray.io/v1/organization/{organizationName}/state/get (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| StateGetRequest | Body | StateGetRequest |
Response StateEntry
getTopicFileDownloadUrl
Get presigned URL to download a fileGet presigned URL to download a file
Generates a temporary presigned URL for downloading a specific file from S3Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| topicName | Path | String | [default to null] |
| key | Query | String | S3 object key to download [default to null] |
Response FileDownloadUrlResponse
getTopicSchema
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| topicName | Path | String | [default to null] |
Response TopicSchema
getTopics
Request
GET https://api.dataspray.io/v1/organization/{organizationName}/topics (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
Response Topics
getVersions
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| taskId | Path | String | [default to null] |
Response TaskVersions
listState
Request
POST https://api.dataspray.io/v1/organization/{organizationName}/state/list (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| StateListRequest | Body | StateListRequest |
Response StateListResponse
listTopicFiles
List files stored in S3 for a topicList files stored in S3 for a topic
Lists objects in S3 for a batch-enabled topic with pagination supportRequest
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| topicName | Path | String | [default to null] |
| prefix | Query | String | Prefix to filter files (e.g., "year=2025/month=01/") [optional] [default to null] |
| maxResults | Query | Integer | Maximum number of files to return (default 100, max 1000) [optional] [default to 100] |
| nextToken | Query | String | Continuation token for pagination [optional] [default to null] |
Response TopicFilesResponse
pause
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| taskId | Path | String | [default to null] |
Response TaskStatus
recalculateTopicSchema
Recalculate schema from ingested S3 dataRecalculate schema from ingested S3 data
Infers the schema from actual data stored in S3 and updates the Glue table definitionRequest
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| topicName | Path | String | [default to null] |
Response TopicSchema
resume
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| taskId | Path | String | [default to null] |
Response TaskStatus
status
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| taskId | Path | String | [default to null] |
Response TaskStatus
statusAll
Request
GET https://api.dataspray.io/v1/organization/{organizationName}/control/status (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| cursor | Query | String | [optional] [default to null] |
Response TaskStatuses
updateDefaultTopic
Request
PATCH https://api.dataspray.io/v1/organization/{organizationName}/topic/default (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| UpdateDefaultTopicRequest | Body | UpdateDefaultTopicRequest | |
| expectedVersion | Query | Long | [optional] [default to null] |
Response Topics
updateTopic
Request
PATCH https://api.dataspray.io/v1/organization/{organizationName}/topic/{topicName} (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| topicName | Path | String | [default to null] |
| Topic | Body | Topic | |
| expectedVersion | Query | Long | [optional] [default to null] |
Response Topics
updateTopicSchema
Request
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| topicName | Path | String | [default to null] |
| UpdateTopicSchemaRequest | Body | UpdateTopicSchemaRequest |
Response null (empty response body)
uploadCode
Request
PUT https://api.dataspray.io/v1/organization/{organizationName}/control/code/upload (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| UploadCodeRequest | Body | UploadCodeRequest |
Response UploadCodeResponse
upsertState
Request
POST https://api.dataspray.io/v1/organization/{organizationName}/state/upsert (opens in a new tab)
| Name | In | Type | Notes |
|---|---|---|---|
| organizationName | Path | String | [default to null] |
| StateUpsertRequest | Body | StateUpsertRequest |
Response StateEntry