Documents

Data Source Get

GET
/documents/datasource/{dataSourceId}/get

Retrieves a single data source by id, returning the same payload documents-data-source-create returns: the stored definition with its server-assigned owner, timestamps and display names, plus the document solutions it is attached to when there are any.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Path Parameters

dataSourceId*string

Id of the data source to retrieve, as returned by documents-data-source-create in result.data.dataSource.id.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/documents/datasource/3f2504e0-4f89-41d3-9a0c-0305e82c3301/get"
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "dataSource": {        "id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",        "subscriptionId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",        "ownerId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",        "lastModifiedUserId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",        "name": "Q3 Sales Report Data",        "description": "Account records used for quarterly reports.",        "urn": "a4f8c9d2-6b3e-4f1a-9c7d-2e5b8a1f4d6c",        "loadMethod": "Storage",        "createdDate": "2026-09-18T12:15:53.000Z",        "lastModifiedDate": "2026-09-18T12:15:53.000Z",        "ownerName": "Jane Doe",        "lastModifiedUserName": "Jane Doe"      }    }  },  "origin": "GET https://api.doctavian.com/v1/documents/datasource/{dataSourceId}/get",  "dateTime": "2026-09-18T12:15:53.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "c5e1fb3463b3143eab0b81d366561834"}
{  "error": {    "statusCode": 401,    "message": "The request could not be authenticated.",    "innerErrors": [      {        "code": "UNAUTHORIZED",        "message": "The request could not be authenticated.",        "userMessage": "Your session has expired or is invalid. Please sign in again."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/datasource/{dataSourceId}/get",  "dateTime": "2026-09-18T12:15:53.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "c5e1fb3463b3143eab0b81d366561834"}
{  "error": {    "statusCode": 403,    "message": "The caller is not authorized to perform this operation.",    "innerErrors": [      {        "code": "AUTHORIZATION_ERROR",        "message": "The caller is not authorized to perform this operation.",        "userMessage": "You do not have permission to do this. Contact your administrator."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/datasource/{dataSourceId}/get",  "dateTime": "2026-09-18T12:15:53.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "c5e1fb3463b3143eab0b81d366561834"}
Empty
{  "error": {    "statusCode": 500,    "message": "The data source could not be retrieved.",    "innerErrors": [      {        "code": "GET_DATA_SOURCE_ERROR",        "message": "The data source could not be retrieved.",        "userMessage": "Something went wrong. Please try again or contact support."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/datasource/{dataSourceId}/get",  "dateTime": "2026-09-18T12:15:53.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "c5e1fb3463b3143eab0b81d366561834"}