Scans
Soda Cloud API Scan Endpoints
This endpoint lists the scan runs of your organization, newest first. Use it to find a scan you triggered earlier, to follow the scans of one dataset or datasource over time, or to look up a scan by the reference your Soda Library run printed. Scans that are still running are listed as well.
This GET is a paginated API that uses the following parameters to request specific details:
datasetIds: Optionally, use this parameter to collect only the scans that covered any of the given datasets. Provide multiple values as a comma-separated list of dataset IDs, which you can find in the URL of each dataset page in Soda Cloud. This query parameter is limited to 100 dataset IDs. Unknown datasets, datasets you cannot view and datasets that are not V4 are ignored.datasetId: Deprecated, usedatasetIdsinstead. Optionally, use this parameter to collect only the scans that covered a specific dataset. It cannot be combined withdatasetIds.datasourceId: Optionally, use this parameter to collect only the scans of a specific datasource.scanReference: Optionally, use this parameter to look up the single scan run with this reference. A Soda Library run prints its scan reference in the scan log.state: Optionally, use this parameter to collect only the scans in one state, such asstartedfor the scans that are still running orcompletedfor the ones that finished without warnings or failures.scanType: Optionally, use this parameter to collect only the scans of one type. The type of a scan is the type of the scan definition it ran for, the same type Soda Cloud shows:defaultfor the scans of a scan definition you created,observabilityfor the anomaly scans Soda Cloud runs on a dataset,contractfor a contract verification, and so on.from: Collect only the scans whosescanTimeis on or after this moment. Supply an ISO8601 timestamp value. Defaults to 30 days before now. Example:2026-08-01T00:00:00+01:00to: Collect only the scans whosescanTimeis on or before this moment. Supply an ISO8601 timestamp value. The window betweenfromandtomay span at most 30 days, so reading further back than that means asking for one window at a time. Example:2026-08-31T23:59:59+01:00includeDatasets: Optionally, set this totrueto have every scan carry the datasets it covered. It isfalseby default because a scan can cover many datasets.cursor: Omit for the first page. Pass the previous response'snextCursor, with the same other parameters, to continue after its last item. Cursors are opaque; invalid cursors return 400. When paging through many scans, pass an explicitfromso every page reads the same window.size: Number of items per page, from 1 to 1000, default 100. The size may change between pages.
The response contains content and, when more items are available, nextCursor. An absent nextCursor marks the end of the results. Page numbers and totals are not returned.
Scans are sorted by scanTime in descending order, newest first. The list is read from the analytical store, so a scan can take a few seconds to appear after Soda Cloud records it.
The scans Soda Cloud runs to test a datasource connection are never listed.
Authorization
Soda only returns the scans of datasources to which the user has View permissions. Soda Cloud Admins have access to all scans. See Manage datasource roles for more information.
Authentication
User authentication required: true
This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.
Tags
Scans
Rate limiting
60 requests/60 seconds
Successful response
Bad request
Unauthorized
Forbidden
Too many requests
Internal server error
GET /api/v1/scans HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
"content": [
{
"cloudUrl": "text",
"created": "2026-01-01T00:00:00.000Z",
"datasets": [
{
"cloudUrl": "text",
"id": "text",
"name": "text",
"qualifiedName": "text"
}
],
"ended": "2026-01-01T00:00:00.000Z",
"id": "text",
"runnerId": "text",
"scanDefinition": {
"id": "text",
"name": "text"
},
"scanReference": "text",
"scanTime": "2026-01-01T00:00:00.000Z",
"scanType": "default",
"started": "2026-01-01T00:00:00.000Z",
"state": "queuing"
}
],
"nextCursor": "text"
}This endpoint enables you to check on the state of a scan that you executed using the Trigger a scan endpoint. Call this endpoint to monitor the status of a scan during its execution.
If you wish to access the logs of a completed scan, use the Get scan logs endpoint.
This POST uses the following parameter to provide specific details:
scanId: Use the value ofX-Soda-Scan-Idreturned as part of the201response when you called the Trigger a scan endpoint.
As a scan executes, you can call this endpoint to progressively collect values based on the state of the scan. Refer to the list below for the states that calls to this endpoint return.
A scan usually goes from queuing to executing to started, and then to a final state. It can skip executing or started, so keep calling this endpoint until the scan reaches a final state.
queuing: The scan is in the queue for execution, awaiting a pick-up from a Soda Runner. This is not a final state.executing: A Soda Runner has picked up the scan, but the scan has not reported its start yet. This is not a final state.started: The scan has reported its start and is running. Thestartedfield holds the start time. This is not a final state.cancelationRequested: An entity requested cancelation of this scan and the request is awaiting pick-up from the Soda Runner responsible for the scan. This is not a final state.timeOutRequested: A time out has been detected, and an automatic request to stop the scan execution is awaiting pick-up from the Soda Runner responsible for the scan. This is not a final state.canceled: A Soda Runner confirmed that the scan has been cancelled. This is the final state of the scan.timedOut: A Soda Runner confirmed that the scan has timed-out. This is the final state of the scan.failed: The scan did not start, or it did not successfully complete because of an unexpected cause. This is the final state of the scan.completedWithErrors: The scan completed successfully, but there were errors involving some of the checks in the scan. This is the final state of the scan.completedWithFailures: The scan completed successfully and reveals failed results for some checks. This is the final state of the scan.completedWithWarnings: The scan completed successfully and reveals warning results for some checks. This is the final state of the scan.completed: The scan completed successfully and reveals passing results for all checks. This is the final state of the scan.
To get the logs of the completed scan, please use API /api/v1/scans/{scanId}/logs.
Authentication
User authentication required: true
This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.
Authorization
Any Soda Cloud user in your organization may execute this query.
Tags
Scans
Rate limiting
60 requests/60 seconds
Successful response
Number of scan-level errors. Does not count ERROR-level log entries and may be zero even when the state reports errors or failure.
Failure diagnostic for scans in the failed state, including when no scan logs are available.
Scan lifecycle and outcome. Determined independently of errors; the error count alone does not determine the state.
Bad request
Unauthorized
Forbidden
Not found
Too many requests
Internal server error
GET /api/v1/scans/{scanId} HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
"checks": [
{
"evaluationStatus": "pass",
"id": "text",
"source": "soda-sql"
}
],
"cloudUrl": "text",
"contractDatasetCloudUrl": "text",
"created": "2026-01-01T00:00:00.000Z",
"ended": "2026-01-01T00:00:00.000Z",
"errors": 1,
"failureReason": "text",
"failures": 1,
"id": "text",
"postProcessingStages": [
{
"ended": "2026-01-01T00:00:00.000Z",
"name": "diagnosticWarehouse",
"started": "2026-01-01T00:00:00.000Z",
"state": "ongoing"
}
],
"runnerId": "text",
"scanDefinition": {
"id": "text",
"name": "text"
},
"scanTime": "2026-01-01T00:00:00.000Z",
"started": "2026-01-01T00:00:00.000Z",
"state": "queuing",
"submitted": "2026-01-01T00:00:00.000Z",
"warnings": 1
}This endpoint enables you to cancel a scan.
Depending on the state of the scan when you call this endpoint, the response returns one of the following:
Where the state is
pending, Soda immediately changes the state tocanceled.Where the state is
submitted, Soda immediately changes the state tocancelationRequested. - Where the scan is in any other state, the endpoint returns a400(Bad request) response.
This DELETE uses the following parameters to provide specific details:
scanId: Use the value ofX-Soda-Scan-Idreturned as part of the201response when you called the Trigger a scan endpoint.
Authentication
User authentication required: true
This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.
Authorization
Any Soda Cloud user in your organization may execute this query.
Tags
Scans
Rate limiting
10 requests/60 seconds
Successful response
Bad request
Unauthorized
Forbidden
Not found
Too many requests
Internal server error
DELETE /api/v1/scans/{scanId} HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
No content
This endpoint enables you to gather log details about the final state of a scan you executed using the Trigger a scan endpoint. Use this endpoint to study scan logs to investigate issues with its execution.
If you wish to access the state of a scan in progress, use the Get scan status endpoint.
This GET is a paginated API that uses the following parameters to request specific details:
scanId: Use the value ofX-Soda-Scan-Idreturned as part of the201response when you called the Trigger a scan endpoint.size: Supply an integer value between 100 and 1000, inclusive. The default value is 1000.page: Supply an integer value. The default value is 0.level: Optionally, use this parameter to collect only the log lines logged at exactly this level. One ofdebug,info,warningorerror. It is a single level, not a minimum one, sowarningleaves the errors out.search: Optionally, use this parameter to collect only the log lines whose message contains this text. Letter case is ignored.from: Optionally, use this parameter to collect only the log lines written on or after this moment. Supply an ISO8601 timestamp value. Example:2026-08-01T00:00:00+01:00to: Optionally, use this parameter to collect only the log lines written on or before this moment. Supply an ISO8601 timestamp value. Example:2026-08-01T23:59:59+01:00
The level, search, from and to parameters can be combined, and a log line has to match all of the ones you supply (AND). totalElements and totalPages count only the log lines that match.
The response sorts the the log information by creation timestamp in ascending order.
Authentication
User authentication required: true
This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.
Authorization
Any Soda Cloud user in your organization may execute this query.
Tags
Scans
Rate limiting
60 requests/60 seconds
Successful response
Bad request
Unauthorized
Forbidden
Not found
Too many requests
Internal server error
GET /api/v1/scans/{scanId}/logs HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
"content": [
{
"index": 1,
"level": "debug",
"message": "text",
"timestamp": "2026-01-01T00:00:00.000Z"
}
],
"first": true,
"last": true,
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}Last updated
Was this helpful?
