Steps to Embed Definite
Obtain Your API Key
First, you need to obtain your API token from the menu in the Definite web application. See here for more.
Generate an Embedded UI Link
Call the endpoint to generate an embedded UI link:Endpoint:
POST https://api.definite.app/v1/get_embedded_urlParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user_identifier | string | Yes | A user identifier for the visiting user |
doc_id | string | Yes | The UUID of the doc to share (found in the URL after /docs/) |
embed_type | string | Yes | Must be "doc" |
required_filters | array | No | Cube filters applied to all of the user’s queries |
redirect_query_params | string | No | Additional query params to append to redirect URL |
Example
Important Notes
- User Identifier: The
user_identifierdefines a user in your team with limited access. This user cannot view other users’ content, edit integrations or cube models, or execute SQL blocks. - Multiple Calls: You can call
get_embedded_urlmultiple times with different docs. The user will have a copy of each. - Content Updates: If you update the source doc, all downstream users will receive an updated copy on the next
get_embedded_urlquery or page refresh.

