List only sources available to the current actor.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/data-sources"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/data-sources';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workspace/data-sources \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
object
Runtime catalog metadata for one data source.
object
Opaque runtime catalog item identifier.
Stable data-source identifier supplied by the provider.
Human-readable data-source key supplied by the provider.
Represents display text with an invariant default value and optional locale-specific translations.
object
The invariant default text.
Optional locale-specific translations keyed by locale code.
object
Represents display text with an invariant default value and optional locale-specific translations.
object
The invariant default text.
Optional locale-specific translations keyed by locale code.
object
Identifies the authoring surface that provides a DataSource.
Owning module key, when the source belongs to a module.
Descriptor fingerprint used for published-definition compatibility.
Provider descriptor version.
Current workspace categories, ordered for source selection.
A workspace-owned source classification.
object
Defines the shape returned by a DataSource execution.
Renderer kinds supported by this source’s validated schema.
object
object
object
object
Example
{ "Data": [ { "SourceKind": 0, "OutputShape": 1, "RendererKinds": [ 1 ] } ], "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}