---
title: "Get datasource status for an application"
method: GET
path: "/applications/{id}/datasources/{datasource_id}"
tags: ["Datasources"]
---

# Get datasource status for an application

`GET /applications/{id}/datasources/{datasource_id}`

Returns the catalog identity and live sync state of a datasource connected to the given application. Sync fields are sourced from the linked service and degrade gracefully to sync_status "unknown" when the service is unreachable.

## Path parameters

- `id` string, required
- `datasource_id` string, required

## Response `200`

Datasource status

- GithubComProjectAiServicesAiServicesInternalPkgCatalogApiserverModelsGetApplicationDatasourceResponse
  - `id` string — ID is the UUID of the datasource connector.
  - `message` string — Message contains a human-readable description of the current status (omitted when empty).
  - `name` string — Name is the unique human-readable label for this connector.
  - `provider` GithubComProjectAiServicesAiServicesInternalPkgCatalogApiserverModelsDatasourceProviderInfo
    - `id` string
    - `name` string
  - `service_details` GithubComProjectAiServicesAiServicesInternalPkgCatalogApiserverModelsServiceSyncDetails
    - `err_msg` string — ErrMsg is populated when the connected service was unreachable or returned an error. Omitted from the JSON response when empty (i.e. when the service was reachable).
    - `last_sync_at` string — LastSyncAt is the ISO-8601 timestamp of the last completed sync, or null when unavailable.
    - `message` string — Message contains the current status and phase description from the connector (e.g. "x new files found", "Processing x/y files", or error details). Omitted when empty.
    - `sync_status` string — SyncStatus is the current sync state from the service. Set to "unknown" when unreachable.
    - `total_files` integer — TotalFiles is the total number of files known to the connector, or null when unavailable.
  - `status` string — Status is the catalog-side connectivity health: "connected" or "offline".

## Other responses

- `400` — Invalid UUID format
- `401` — Unauthorized
- `404` — Datasource not connected to this application
- `500` — Internal Server Error

## Changes

- **2026-09-02** `724b290d658d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ibm/apis/ai-services-catalog-api/changes/applications/:id/datasources/:datasource_id/get.md)

---

[API](https://skmtc.dev/ibm/apis/ai-services-catalog-api.md) · [All operations](https://skmtc.dev/ibm/apis/ai-services-catalog-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ibm/ai-services-catalog-api/revisions/dba0cb4fa211/schema)
