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

API calls

Core HTTP conventions for calling a Data Product API, including URLs, pagination, and Postman.

Build the base URL

Each Data Product has its own API base URL:

https://<DATAOS_FQDN>/vulcan/tenants/<TENANT>/data-products/<TENANT>-<RESOURCE_NAME>/api/v1

Store it as BASE_URL. Add the endpoint path shown in this documentation to this URL when making a request.

Make your first call

Use the following request to verify the base URL and access token by retrieving the Data Product metadata:

export BASE_URL='https://<DATAOS_FQDN>/vulcan/tenants/<TENANT>/data-products/<TENANT>-<RESOURCE_NAME>/api/v1'
export TOKEN='<dataos-access-token>'

curl "$BASE_URL/metadata" \
  --header "Authorization: Bearer $TOKEN" \
  --header "Accept: application/json"

Use Content-Type: application/json when sending a JSON body.

HTTP methods and success codes

Method
Typical use
Common success

GET

Retrieve a resource, list, metric, or result.

200; Parquet result download uses 307.

POST

Submit a query or create a perspective.

Query 202; perspective creation 201.

PUT

Partially update an existing perspective.

201.

DELETE

Remove an owned perspective or follower state.

204.

HEAD

Check whether a perspective slug exists.

200 or 404; no body.

Paginate correctly

List endpoints generally accept limit and offset and return a pagination object with has_more. Query result endpoints accept limit, offset, and columns only for inline text formats (json, csv, and yaml). They do not slice Parquet downloads.

Always set deterministic query ordering when paging through data; otherwise rows can shift between pages.

Run requests in Postman

From the Data Product UI, select Activate → APIs → Download Postman Collection. Import the JSON file into Postman and set:

Variable
Value

base_url

Data Product URL in the exact form expected by the generated collection.

apikey

Current DataOS access token.

The collection applies Bearer authentication centrally and groups requests into Discover, Query, GraphQL, Perspectives, Engagement, Quality & Activity, and Health.

Query calls are asynchronous

REST, Semantic SQL, Metrics, and Source SQL return 202 Accepted with an id. Poll /query/statement/{id} and fetch /query/statement/{id}/result only after SUCCESS. See Query lifecycle.

Next step

Continue to Error codes to recognize and handle failures before they show up in production.

Last updated

Was this helpful?