Commonly used Endpoints

Automatically Sync Dot

To keep Dot in sync with your production environment, it is recommended to trigger the following API endpoint

Sync connection with an API token.

post
Authorizations
X-API-KEYstringRequired
Path parameters
connection_typestringRequired
connection_idstringRequired
Responses
200

Successful Response

application/json
Responseany
post
/api/sync/{connection_type}/{connection_id}

No content

  • Region: app (US) or eu (EU)

  • Connection Type: postgres, redshift, snowflake, mssql, bigquery, databricks, looker, dbt

  • User ID: usually email of the user (url encoded)

  • API Token: can get created (and overwritten) by clicking Copy API Token in Settings/Users/Actions/···

Trigger with curl (CLI)

Trigger with dbt webhooks

Call the api endpoint after your dbt run completed.

Documentation how to setup a dbt webhooks

Import External Assets

Inform Dot about key external knowledge assets, such as BI dashboards or custom data apps, so it can recommend them to users and assist with discovery and understanding. Authentication works similarly to the Sync Connection endpoint.

Import and overwrite an external asset with an API token.

post
Authorizations
X-API-KEYstringRequired
Body
Responses
200

Successful Response

application/json
Responseany
post
/api/import_and_overwrite_external_asset

No content

Export Conversation History

Export all conversations together with relevant meta data fields such as number of messages or author.

Get all historical chat messages.

get
Authorizations
X-API-KEYstringRequired
Query parameters
start_datestringOptional

by default two weeks ago, format YYYY-MM-DD

end_datestringOptional

by default tomorrow, format YYYY-MM-DD

include_all_workspacesbooleanOptional

Include history from all workspaces (main workspace only)

Default: false
Responses
200

Successful Response

application/json
Responseany
get
/api/export_history

No content

Ask Dot Automatically

Ask

post
Authorizations
X-API-KEYstringRequired
Body
chat_idstringRequired
scopestringOptionalDefault: ""
skip_checkbooleanOptionalDefault: false
extraany ofOptional
stringOptional
or
nullOptional
Responses
200

Successful Response

application/json
Responseany
post
/api/ask

No content

Ask With History

post
Authorizations
X-API-KEYstringRequired
Body
chat_idstringRequired
extraany ofOptional
stringOptional
or
nullOptional
Responses
200

Successful Response

application/json
Responseany
post
/api/ask_with_history

No content

Trigger Deep Analysis

Agentic

post
Authorizations
X-API-KEYstringRequired
Body
chat_idstringRequired
skip_checkbooleanOptionalDefault: false
extraany ofOptional
stringOptional
or
nullOptional
Responses
200

Successful Response

application/json
Responseany
post
/api/agentic

No content

User Administration

Get All Users

get
Authorizations
X-API-KEYstringRequired
Responses
200

Successful Response

application/json
Responseany
get
/api/get_users
200

Successful Response

No content

Sendinvitations

post
Authorizations
X-API-KEYstringRequired
Body
emailsstring[]Required
Responses
200

Successful Response

application/json
Responseany
post
/api/send_invitations

No content

Delete User Route

post
Authorizations
X-API-KEYstringRequired
Body
emailstringRequired
Responses
200

Successful Response

application/json
Responseany
post
/api/delete_user

No content

Change User Role

post
Authorizations
X-API-KEYstringRequired
Body
emailstringRequired
rolestringRequired
Responses
200

Successful Response

application/json
Responseany
post
/api/change_user_role

No content

Add User To Group

post
Authorizations
X-API-KEYstringRequired
Body
emailstringRequired
groupstringRequired
Responses
200

Successful Response

application/json
Responseany
post
/api/add_user_to_group

No content

Remove User From Group

post
Authorizations
X-API-KEYstringRequired
Body
emailstringRequired
groupstringRequired
Responses
200

Successful Response

application/json
Responseany
post
/api/remove_user_from_group

No content

Create User Route

post
Authorizations
X-API-KEYstringRequired
Body
emailstringRequired
passwordstringRequired
realnamestringRequired
Responses
200

Successful Response

application/json
Responseany
post
/api/create_user

No content

Automatically Authenticate Embedded Users

For embedded use cases that require SSO, where your end users have individual permissions you can use this endpoint to obtain an access token for users that is valid for 24h. Here is an example on how you can use it to embed Dot in your application.

Please make sure that you enabled this flag on settings: "Allow admins to authenticate for users to enable SSO in embeds".

Get Embedded User Login Token

post
Authorizations
X-API-KEYstringRequired
Body
user_idstringRequired
create_if_not_existsbooleanOptionalDefault: false
groupsany ofOptional
string[]Optional
or
nullOptional
Responses
200

Successful Response

application/json
Responseany
post
/api/auth/embedded_user_login

No content

Last updated