API
automate as much as you like
Everything starts with a token of trust
All API endpoints can be accessed via an API token that is tied to the permissions of a user account. You can also let them expire after some time.
How to get a token?
Go to Settings / Users
Click Create New Token

Enter a name, description, and expiration period
Copy the token (it's only shown once)
How to use the token?
You have two ways. You either pass the token as a header with X-API-KEY or you pass it as a url parameter in api_token . As a header is usually more secure because automated loggers don't store them, but in some places you can't set headers (e.g. dbt webhooks) and then you can use the URL parameter. The older header name API-KEY still works, but use X-API-KEY for new integrations.
Via Headers
Call the user endpoint via command line interface.
Call the user endpoint via Python.
Via URL - Parameters
For the following endpoints you can also use a URL based authentication:
Sync connection
Import external asserts
Export conversation history
Call the endpoint only via url:
Evaluate Dot in CI
Use the evaluation CLI workflow to run question sets, wait for results, enforce a pass-rate gate, and save JSON/JUnit reports. The evaluation guide explains expected answers and numerical tolerances. For direct API integration, see the evaluation endpoints.
Learn More
Commonly used EndpointsUse Cases and ScriptsAll API EndpointsLast updated