Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Scans

Soda Cloud API Scan Endpoints

List scans

get
/api/v1/scans

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, use datasetIds instead. Optionally, use this parameter to collect only the scans that covered a specific dataset. It cannot be combined with datasetIds.

  • 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 as started for the scans that are still running or completed for 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: default for the scans of a scan definition you created, observability for the anomaly scans Soda Cloud runs on a dataset, contract for a contract verification, and so on.

  • from: Collect only the scans whose scanTime is on or after this moment. Supply an ISO8601 timestamp value. Defaults to 30 days before now. Example: 2026-08-01T00:00:00+01:00

  • to: Collect only the scans whose scanTime is on or before this moment. Supply an ISO8601 timestamp value. The window between from and to may 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:00

  • includeDatasets: Optionally, set this to true to have every scan carry the datasets it covered. It is false by default because a scan can cover many datasets.

  • cursor: Omit for the first page. Pass the previous response's nextCursor, 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 explicit from so 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

Authorizations
AuthorizationstringRequired
Query parameters
cursorstringOptional
datasetIdstringOptionalDeprecated
datasetIdsstring[]Optional
datasourceIdstringOptional
fromstring · date-timeOptional
includeDatasetsbooleanOptional
scanReferencestringOptional
scanTypeobject · enumOptionalPossible values:
sizeinteger · int32Optional
stateobject · enumOptionalPossible values:
tostring · date-timeOptional
Responses
200

Successful response

application/json
nextCursorstringOptional
get/api/v1/scans
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"
}

Get scan status

get
/api/v1/scans/{scanId}

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 of X-Soda-Scan-Id returned as part of the 201 response 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. The started field 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

Authorizations
AuthorizationstringRequired
Path parameters
scanIdstringRequired
Responses
200

Successful response

application/json
agentIdstringOptionalDeprecated
cloudUrlstringRequired
contractDatasetCloudUrlstringOptional
createdstring · date-timeRequired
endedstring · date-timeOptional
errorsinteger · int32Optional

Number of scan-level errors. Does not count ERROR-level log entries and may be zero even when the state reports errors or failure.

failureReasonstringOptional

Failure diagnostic for scans in the failed state, including when no scan logs are available.

failuresinteger · int32Optional
idstringRequired
runnerIdstringOptional
scanTimestring · date-timeOptional
startedstring · date-timeOptional
stateobject · enumRequired

Scan lifecycle and outcome. Determined independently of errors; the error count alone does not determine the state.

Possible values:
submittedstring · date-timeOptional
warningsinteger · int32Optional
get/api/v1/scans/{scanId}
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
}

Cancel a scan

delete
/api/v1/scans/{scanId}

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 to canceled.

  • Where the state is submitted, Soda immediately changes the state to cancelationRequested. - Where the scan is in any other state, the endpoint returns a 400 (Bad request) response.

This DELETE uses the following parameters to provide specific details:

  • scanId: Use the value of X-Soda-Scan-Id returned as part of the 201 response 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

Authorizations
AuthorizationstringRequired
Path parameters
scanIdstringRequired
Responses
200

Successful response

delete/api/v1/scans/{scanId}
DELETE /api/v1/scans/{scanId} HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*

No content

Get scan logs

get
/api/v1/scans/{scanId}/logs

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 of X-Soda-Scan-Id returned as part of the 201 response 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 of debug, info, warning or error. It is a single level, not a minimum one, so warning leaves 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:00

  • to: 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

Authorizations
AuthorizationstringRequired
Path parameters
scanIdstringRequired
Query parameters
fromstring · date-timeOptional
levelobject · enumOptionalPossible values:
pageinteger · int32Optional
searchstringOptional
sizeinteger · int32Optional
tostring · date-timeOptional
Responses
200

Successful response

application/json
firstbooleanRequired
lastbooleanRequired
numberinteger · int32Required
sizeinteger · int32Required
totalElementsinteger · int32Required
totalPagesinteger · int32Required
get/api/v1/scans/{scanId}/logs
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?