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

Authentication & authorization

Secure Data Product API calls with DataOS tokens, identity checks, and access controls.

Every Data Product API request requires a DataOS access token:

Authorization: Bearer <dataos-access-token>

No other authentication scheme is supported.

Authentication proves identity

The token identifies the DataOS user making the request.

curl "$BASE_URL/metadata/semantic" \
  --header "Authorization: Bearer $TOKEN"
  • 401 Unauthorized means the token is missing, malformed, invalid, or expired.

  • Never place tokens in URLs, source code, screenshots, or version control.

  • Store tokens in environment variables or a secrets manager and rotate suspected exposures.

Authorization controls access

The API evaluates the permissions of the identity behind the token. Access depends on the Data Product, tenant, semantic policies, and resource ownership.

  • 403 Forbidden means the identity is valid but cannot perform the operation.

  • Semantic queries return only public members and apply the Data Product's query policies.

  • Private perspectives are visible to their owner and explicitly allowed users; only the owner can update or delete them.

  • User identity is derived from authentication. Do not send an X-User header yourself.

Authentication answers "who is calling?" Authorization answers "what may this identity read or change?" A valid token can still receive 403 for a protected resource.

SDK and Postman

Pass the token once when constructing a Python or TypeScript client; the SDK attaches it to requests. In the generated Postman collection, set the apikey collection variable and keep collection-level Bearer authentication enabled.

Next step

Continue to API calls to build the base URL and send your first request.

Last updated

Was this helpful?