Conversation
GenieConversation object
- idstring
Conversation ID. Legacy identifier, use conversation_id instead
- space_idstring
Genie space ID
- user_idint64
ID of the user who created the conversation
- created_timestampint64
Timestamp when the message was created
- last_updated_timestampint64
Timestamp when the message was last updated
- titlestring
Conversation title
- conversation_idstring
Conversation ID
List GA
GET
Get a list of conversations in a Genie Space.
API scopes: genie
Parameters
- space_idstringpath
The ID of the Genie space to retrieve conversations from.
- page_sizeint32query
Maximum number of conversations to return per page
- page_tokenstringquery
Token to get the next page of results
- include_allbooleanquery
Include all conversations in the space across all users. Requires at least CAN MANAGE permission on the space.
Response
- conversationsarray of object
List of conversations in the Genie space
Show child attributesHide child attributes
- conversation_idstring
- titlestring
- created_timestampint64
- agent_typestringBeta
Whether this is a classic chat or an agent-mode conversation. Allows callers to route message retrieval (chat vs. agent endpoint) without an extra lookup.
- next_page_tokenstring
Token to get the next page of results
Delete GA
Genie Create Conversation Message GA
POST
Create new message in a conversation. The AI response uses all previously created messages in the conversation to respond.
API scopes: genie
Parameters
- space_idstringpath
The ID associated with the Genie space where the conversation is started.
- conversation_idstringpath
The ID associated with the conversation.
Request body
- contentstring
User message content.
- enable_visualizationbooleanBeta
Enable visualization generation.
Response
- idstring
Message ID. Legacy identifier, use message_id instead
- space_idstring
Genie space ID
- conversation_idstring
Conversation ID
- user_idint64
ID of the user who created the message
- created_timestampint64
Timestamp when the message was created
- last_updated_timestampint64
Timestamp when the message was last updated
- statusstring
- contentstring
User message content
- attachmentsarray of object
AI-generated response to the message
Show child attributesHide child attributes
- textobjectRequired
Text Attachment if Genie responds with text This also contains the final summary when available.
Show child attributesHide child attributes
- contentstring
AI generated message
- idstring
- purposestring
Purpose of this text attachment. A completed message may contain more than one text attachment (for example a clarifying follow-up question alongside the final answer); use this field to tell them apart.
TEXT_ATTACHMENT_PURPOSE_ANSWERmarks the final answer/summary andFOLLOW_UP_QUESTIONmarks a clarifying question.
- queryobjectRequired
Query Attachment if Genie responds with a SQL query
Show child attributesHide child attributes
- titlestring
Name of the query
- querystring
AI generated SQL query
- descriptionstring
Description of the query
- last_updated_timestampint64
Time when the user updated the query last
- parametersarray of object
Show child attributesHide child attributes
- keywordstring
- valuestring
- sql_typestring
- idstring
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- query_result_metadataobject
Metadata associated with the query result.
Show child attributesHide child attributes
- row_countint64
The number of rows in the result set.
- is_truncatedboolean
Indicates whether the result set is truncated.
- thoughtsarray of objectPublic Preview
Insights into how Genie came to generate the SQL.
Show child attributesHide child attributes
- thought_typestringPublic Preview
The category of this thought. The possible values are:
THOUGHT_TYPE_DESCRIPTION: A high-level description of how the question was interpreted.THOUGHT_TYPE_UNDERSTANDING: How ambiguous parts of the question were resolved.THOUGHT_TYPE_DATA_SOURCING: Which tables or datasets were identified as relevant.THOUGHT_TYPE_INSTRUCTIONS: Which author-defined instructions were referenced.THOUGHT_TYPE_STEPS: The logical steps taken to compute the answer.
- contentstringPublic Preview
The md formatted content for this thought.
- suggested_questionsobjectRequired
Follow-up questions suggested by Genie
Show child attributesHide child attributes
- questionsarray of string
The suggested follow-up questions
- vizobjectRequiredBeta
Visualization generated by Genie, if requested via
enable_visualizationShow child attributesHide child attributes
- titlestringBeta
Name of the visualization
- query_attachment_idstringBeta
The ID of the query attachment the visualization was generated from
- attachment_idstring
Attachment ID
- query_resultobject
The result of SQL query if the message includes a query attachment. Deprecated. Use
query_result_metadatainGenieQueryAttachmentinstead.Show child attributesHide child attributes
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- row_countint64
Row count of the result
- is_truncatedboolean
If result is truncated
- statement_id_signaturestring
JWT corresponding to the statement contained in this result
- errorobject
Error message if Genie failed to respond to the message
Show child attributesHide child attributes
- errorstring
- typestring
- message_idstring
Message ID
- feedbackobject
User feedback for the message if provided
Show child attributesHide child attributes
- ratingstring
The feedback rating
- commentstringPublic Preview
Optional feedback comment text
Genie Create Message Comment Public Preview
POST
Create a comment on a conversation message.
API scopes: genie
Parameters
- space_idstringpath
The ID associated with the Genie space.
- conversation_idstringpath
The ID associated with the conversation.
- message_idstringpath
The ID associated with the message.
Request body
- contentstring
Comment text content.
Response
- space_idstring
Genie space ID
- conversation_idstring
Conversation ID
- message_idstring
Message ID
- message_comment_idstring
Comment ID
- user_idint64
ID of the user who created the comment
- contentstring
Comment text content
- created_timestampint64
Timestamp when the comment was created
Genie Delete Conversation Message GA
DELETE
Delete a conversation message.
API scopes: genie
Parameters
- space_idstringpath
The ID associated with the Genie space where the message is located.
- conversation_idstringpath
The ID associated with the conversation.
- message_idstringpath
The ID associated with the message to delete.
Genie Execute Message Attachment Query GA
POST
Execute the SQL for a message query attachment. Use this API when the query attachment has expired and needs to be re-executed.
API scopes: genie
Parameters
- message_idstringpath
Message ID
- space_idstringpath
Genie space ID
- conversation_idstringpath
Conversation ID
- attachment_idstringpath
Attachment ID
Response
- statement_responseobject
SQL Statement Execution response. See Get status, manifest, and result first chunk for more details.
Show child attributesHide child attributes
- statement_idstring
The statement ID is returned upon successfully submitting a SQL statement, and is a required reference for all subsequent calls.
- statusobject
Show child attributesHide child attributes
- statestring
Statement execution state:
PENDING: waiting for warehouseRUNNING: runningSUCCEEDED: execution was successful, result data available for fetchFAILED: execution failed; reason for failure described in accompanying error messageCANCELED: user canceled; can come from explicit cancel call, or timeout withon_wait_timeout=CANCELCLOSED: execution successful, and statement closed; result no longer available for fetch
- errorobject
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- sql_statestring
SQLSTATE error code returned when the statement execution fails. Only populated when the statement status is
FAILED.
- manifestobject
Show child attributesHide child attributes
- formatstring
- schemaobject
Show child attributesHide child attributes
- column_countint32
- columnsarray of object
- total_chunk_countint32
The total number of chunks that the result set has been divided into.
- chunksarray of object
Array of result set chunk metadata.
Show child attributesHide child attributes
- chunk_indexint32
The position within the sequence of result set chunks.
- row_offsetint64
The starting row offset within the result set.
- row_countint64
The number of rows within the result chunk.
- byte_countint64
The number of bytes in the result chunk. This field is not available when using
INLINEdisposition.
- next_chunk_indexint32
When fetching, provides the
chunk_indexfor the next chunk. If absent, indicates there are no more chunks. The next chunk can be fetched with astatementexecution/getstatementresultchunknrequest.
- next_chunk_internal_linkstring
When fetching, provides a link to fetch the next chunk. If absent, indicates there are no more chunks. This link is an absolute
pathto be joined with your$DATABRICKS_HOST, and should be treated as an opaque link. This is an alternative to usingnext_chunk_index.
- total_row_countint64
The total number of rows in the result set.
- total_byte_countint64
The total number of bytes in the result set. This field is not available when using
INLINEdisposition.
- truncatedboolean
Indicates whether the result is truncated due to
row_limitorbyte_limit.
- resultobject
Show child attributesHide child attributes
- external_linksarray of object
Show child attributesHide child attributes
- external_linkstring
A URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
AWSA presigned URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
AzureA SAS URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
GCPA signed URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
- expirationstring
Indicates the date-time that the given external link will expire and becomes invalid, after which point a new
external_linkmust be requested.
- chunk_indexint32
The position within the sequence of result set chunks.
- row_offsetint64
The starting row offset within the result set.
- row_countint64
The number of rows within the result chunk.
- byte_countint64
The number of bytes in the result chunk. This field is not available when using
INLINEdisposition.
- next_chunk_indexint32
When fetching, provides the
chunk_indexfor the next chunk. If absent, indicates there are no more chunks. The next chunk can be fetched with astatementexecution/getstatementresultchunknrequest.
- next_chunk_internal_linkstring
When fetching, provides a link to fetch the next chunk. If absent, indicates there are no more chunks. This link is an absolute
pathto be joined with your$DATABRICKS_HOST, and should be treated as an opaque link. This is an alternative to usingnext_chunk_index.
- data_arrayarray of object
The
JSON_ARRAYformat is an array of arrays of values, where each non-null value is formatted as a string. Null values are encoded as JSONnull.Show child attributesHide child attributes
- valuesarray of object
Repeated field of dynamically typed values.
- chunk_indexint32
The position within the sequence of result set chunks.
- row_offsetint64
The starting row offset within the result set.
- row_countint64
The number of rows within the result chunk.
- byte_countint64
The number of bytes in the result chunk. This field is not available when using
INLINEdisposition.
- next_chunk_indexint32
When fetching, provides the
chunk_indexfor the next chunk. If absent, indicates there are no more chunks. The next chunk can be fetched with astatementexecution/getstatementresultchunknrequest.
- next_chunk_internal_linkstring
When fetching, provides a link to fetch the next chunk. If absent, indicates there are no more chunks. This link is an absolute
pathto be joined with your$DATABRICKS_HOST, and should be treated as an opaque link. This is an alternative to usingnext_chunk_index.
Genie Generate Download Full Query Result GA
POST
Initiates a new SQL execution and returns a download_id and download_id_signature that you can use to track the progress of the download.
The query result is stored in an external link and can be retrieved using the Get Download Full Query Result API.
Both download_id and download_id_signature must be provided when calling the Get endpoint.
Warning: Databricks strongly recommends that you protect the URLs that are returned by the EXTERNAL_LINKS disposition.
When you use the EXTERNAL_LINKS disposition, a
short-lived, URL is generated, which can be
used to download the results directly
from . As a
short-lived is
embedded in this URL, you should protect
the URL.
Because URLs are already generated with
embedded temporary s,
you must not set an Authorization header in the download requests.
See Execute Statement for more details.
API scopes: genie
Initiates a new SQL execution and returns a download_id and download_id_signature that you can use to track the progress of the download.
The query result is stored in an external link and can be retrieved using the Get Download Full Query Result API.
Both download_id and download_id_signature must be provided when calling the Get endpoint.
Warning: Databricks strongly recommends that you protect the URLs that are returned by the EXTERNAL_LINKS disposition.
When you use the EXTERNAL_LINKS disposition, a
short-lived, presigned URL is generated, which can be
used to download the results directly
from Amazon S3. As a
short-lived access credential is
embedded in this presigned URL, you should protect
the URL.
Because presigned URLs are already generated with
embedded temporary access credentials,
you must not set an Authorization header in the download requests.
See Execute Statement for more details.
Initiates a new SQL execution and returns a download_id and download_id_signature that you can use to track the progress of the download.
The query result is stored in an external link and can be retrieved using the Get Download Full Query Result API.
Both download_id and download_id_signature must be provided when calling the Get endpoint.
Warning: Databricks strongly recommends that you protect the URLs that are returned by the EXTERNAL_LINKS disposition.
When you use the EXTERNAL_LINKS disposition, a
short-lived, SAS URL is generated, which can be
used to download the results directly
from Azure storage. As a
short-lived SAS token is
embedded in this SAS URL, you should protect
the URL.
Because SAS URLs are already generated with
embedded temporary SAS tokens,
you must not set an Authorization header in the download requests.
See Execute Statement for more details.
Initiates a new SQL execution and returns a download_id and download_id_signature that you can use to track the progress of the download.
The query result is stored in an external link and can be retrieved using the Get Download Full Query Result API.
Both download_id and download_id_signature must be provided when calling the Get endpoint.
Warning: Databricks strongly recommends that you protect the URLs that are returned by the EXTERNAL_LINKS disposition.
When you use the EXTERNAL_LINKS disposition, a
short-lived, signed URL is generated, which can be
used to download the results directly
from Google Cloud Storage. As a
short-lived access credential is
embedded in this signed URL, you should protect
the URL.
Because signed URLs are already generated with
embedded temporary access credentials,
you must not set an Authorization header in the download requests.
See Execute Statement for more details.
Parameters
- space_idstringpath
Genie space ID
- conversation_idstringpath
Conversation ID
- message_idstringpath
Message ID
- attachment_idstringpath
Attachment ID
Response
- download_idstring
Download ID. Use this ID to track the download request in subsequent polling calls
- download_id_signaturestring
JWT signature for the download_id to ensure secure access to query results
Genie Get Conversation Message GA
GET
Get message from conversation.
API scopes: genie
Parameters
- space_idstringpath
The ID associated with the Genie space where the target conversation is located.
- conversation_idstringpath
The ID associated with the target conversation.
- message_idstringpath
The ID associated with the target message from the identified conversation.
Response
- idstring
Message ID. Legacy identifier, use message_id instead
- space_idstring
Genie space ID
- conversation_idstring
Conversation ID
- user_idint64
ID of the user who created the message
- created_timestampint64
Timestamp when the message was created
- last_updated_timestampint64
Timestamp when the message was last updated
- statusstring
- contentstring
User message content
- attachmentsarray of object
AI-generated response to the message
Show child attributesHide child attributes
- textobjectRequired
Text Attachment if Genie responds with text This also contains the final summary when available.
Show child attributesHide child attributes
- contentstring
AI generated message
- idstring
- purposestring
Purpose of this text attachment. A completed message may contain more than one text attachment (for example a clarifying follow-up question alongside the final answer); use this field to tell them apart.
TEXT_ATTACHMENT_PURPOSE_ANSWERmarks the final answer/summary andFOLLOW_UP_QUESTIONmarks a clarifying question.
- queryobjectRequired
Query Attachment if Genie responds with a SQL query
Show child attributesHide child attributes
- titlestring
Name of the query
- querystring
AI generated SQL query
- descriptionstring
Description of the query
- last_updated_timestampint64
Time when the user updated the query last
- parametersarray of object
Show child attributesHide child attributes
- keywordstring
- valuestring
- sql_typestring
- idstring
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- query_result_metadataobject
Metadata associated with the query result.
Show child attributesHide child attributes
- row_countint64
The number of rows in the result set.
- is_truncatedboolean
Indicates whether the result set is truncated.
- thoughtsarray of objectPublic Preview
Insights into how Genie came to generate the SQL.
Show child attributesHide child attributes
- thought_typestringPublic Preview
The category of this thought. The possible values are:
THOUGHT_TYPE_DESCRIPTION: A high-level description of how the question was interpreted.THOUGHT_TYPE_UNDERSTANDING: How ambiguous parts of the question were resolved.THOUGHT_TYPE_DATA_SOURCING: Which tables or datasets were identified as relevant.THOUGHT_TYPE_INSTRUCTIONS: Which author-defined instructions were referenced.THOUGHT_TYPE_STEPS: The logical steps taken to compute the answer.
- contentstringPublic Preview
The md formatted content for this thought.
- suggested_questionsobjectRequired
Follow-up questions suggested by Genie
Show child attributesHide child attributes
- questionsarray of string
The suggested follow-up questions
- vizobjectRequiredBeta
Visualization generated by Genie, if requested via
enable_visualizationShow child attributesHide child attributes
- titlestringBeta
Name of the visualization
- query_attachment_idstringBeta
The ID of the query attachment the visualization was generated from
- attachment_idstring
Attachment ID
- query_resultobject
The result of SQL query if the message includes a query attachment. Deprecated. Use
query_result_metadatainGenieQueryAttachmentinstead.Show child attributesHide child attributes
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- row_countint64
Row count of the result
- is_truncatedboolean
If result is truncated
- statement_id_signaturestring
JWT corresponding to the statement contained in this result
- errorobject
Error message if Genie failed to respond to the message
Show child attributesHide child attributes
- errorstring
- typestring
- message_idstring
Message ID
- feedbackobject
User feedback for the message if provided
Show child attributesHide child attributes
- ratingstring
The feedback rating
- commentstringPublic Preview
Optional feedback comment text
Genie Get Download Full Query Result GA
GET
After Generating a Full Query Result Download and successfully receiving a download_id and download_id_signature, use this API to poll the download progress.
Both download_id and download_id_signature are required to call this endpoint.
When the download is complete, the API returns the result in the EXTERNAL_LINKS disposition, containing one or more external links to the query result files.
Warning: Databricks strongly recommends that you protect the URLs that are returned by the EXTERNAL_LINKS disposition.
When you use the EXTERNAL_LINKS disposition, a
short-lived, URL is generated, which can be
used to download the results directly
from . As a
short-lived is
embedded in this URL, you should protect
the URL.
Because URLs are already generated with
embedded temporary s,
you must not set an Authorization header in the download requests.
See Execute Statement for more details.
API scopes: genie
After Generating a Full Query Result Download and successfully receiving a download_id and download_id_signature, use this API to poll the download progress.
Both download_id and download_id_signature are required to call this endpoint.
When the download is complete, the API returns the result in the EXTERNAL_LINKS disposition, containing one or more external links to the query result files.
Warning: Databricks strongly recommends that you protect the URLs that are returned by the EXTERNAL_LINKS disposition.
When you use the EXTERNAL_LINKS disposition, a
short-lived, presigned URL is generated, which can be
used to download the results directly
from Amazon S3. As a
short-lived access credential is
embedded in this presigned URL, you should protect
the URL.
Because presigned URLs are already generated with
embedded temporary access credentials,
you must not set an Authorization header in the download requests.
See Execute Statement for more details.
After Generating a Full Query Result Download and successfully receiving a download_id and download_id_signature, use this API to poll the download progress.
Both download_id and download_id_signature are required to call this endpoint.
When the download is complete, the API returns the result in the EXTERNAL_LINKS disposition, containing one or more external links to the query result files.
Warning: Databricks strongly recommends that you protect the URLs that are returned by the EXTERNAL_LINKS disposition.
When you use the EXTERNAL_LINKS disposition, a
short-lived, SAS URL is generated, which can be
used to download the results directly
from Azure storage. As a
short-lived SAS token is
embedded in this SAS URL, you should protect
the URL.
Because SAS URLs are already generated with
embedded temporary SAS tokens,
you must not set an Authorization header in the download requests.
See Execute Statement for more details.
After Generating a Full Query Result Download and successfully receiving a download_id and download_id_signature, use this API to poll the download progress.
Both download_id and download_id_signature are required to call this endpoint.
When the download is complete, the API returns the result in the EXTERNAL_LINKS disposition, containing one or more external links to the query result files.
Warning: Databricks strongly recommends that you protect the URLs that are returned by the EXTERNAL_LINKS disposition.
When you use the EXTERNAL_LINKS disposition, a
short-lived, signed URL is generated, which can be
used to download the results directly
from Google Cloud Storage. As a
short-lived access credential is
embedded in this signed URL, you should protect
the URL.
Because signed URLs are already generated with
embedded temporary access credentials,
you must not set an Authorization header in the download requests.
See Execute Statement for more details.
Parameters
- space_idstringpath
Genie space ID
- conversation_idstringpath
Conversation ID
- message_idstringpath
Message ID
- attachment_idstringpath
Attachment ID
- download_idstringpath
Download ID. This ID is provided by the Generate Download endpoint
- download_id_signaturestringquery
JWT signature for the download_id to ensure secure access to query results
Response
- statement_responseobject
SQL Statement Execution response. See Get status, manifest, and result first chunk for more details.
Show child attributesHide child attributes
- statement_idstring
The statement ID is returned upon successfully submitting a SQL statement, and is a required reference for all subsequent calls.
- statusobject
Show child attributesHide child attributes
- statestring
Statement execution state:
PENDING: waiting for warehouseRUNNING: runningSUCCEEDED: execution was successful, result data available for fetchFAILED: execution failed; reason for failure described in accompanying error messageCANCELED: user canceled; can come from explicit cancel call, or timeout withon_wait_timeout=CANCELCLOSED: execution successful, and statement closed; result no longer available for fetch
- errorobject
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- sql_statestring
SQLSTATE error code returned when the statement execution fails. Only populated when the statement status is
FAILED.
- manifestobject
Show child attributesHide child attributes
- formatstring
- schemaobject
Show child attributesHide child attributes
- column_countint32
- columnsarray of object
- total_chunk_countint32
The total number of chunks that the result set has been divided into.
- chunksarray of object
Array of result set chunk metadata.
Show child attributesHide child attributes
- chunk_indexint32
The position within the sequence of result set chunks.
- row_offsetint64
The starting row offset within the result set.
- row_countint64
The number of rows within the result chunk.
- byte_countint64
The number of bytes in the result chunk. This field is not available when using
INLINEdisposition.
- next_chunk_indexint32
When fetching, provides the
chunk_indexfor the next chunk. If absent, indicates there are no more chunks. The next chunk can be fetched with astatementexecution/getstatementresultchunknrequest.
- next_chunk_internal_linkstring
When fetching, provides a link to fetch the next chunk. If absent, indicates there are no more chunks. This link is an absolute
pathto be joined with your$DATABRICKS_HOST, and should be treated as an opaque link. This is an alternative to usingnext_chunk_index.
- total_row_countint64
The total number of rows in the result set.
- total_byte_countint64
The total number of bytes in the result set. This field is not available when using
INLINEdisposition.
- truncatedboolean
Indicates whether the result is truncated due to
row_limitorbyte_limit.
- resultobject
Show child attributesHide child attributes
- external_linksarray of object
Show child attributesHide child attributes
- external_linkstring
A URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
AWSA presigned URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
AzureA SAS URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
GCPA signed URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
- expirationstring
Indicates the date-time that the given external link will expire and becomes invalid, after which point a new
external_linkmust be requested.
- chunk_indexint32
The position within the sequence of result set chunks.
- row_offsetint64
The starting row offset within the result set.
- row_countint64
The number of rows within the result chunk.
- byte_countint64
The number of bytes in the result chunk. This field is not available when using
INLINEdisposition.
- next_chunk_indexint32
When fetching, provides the
chunk_indexfor the next chunk. If absent, indicates there are no more chunks. The next chunk can be fetched with astatementexecution/getstatementresultchunknrequest.
- next_chunk_internal_linkstring
When fetching, provides a link to fetch the next chunk. If absent, indicates there are no more chunks. This link is an absolute
pathto be joined with your$DATABRICKS_HOST, and should be treated as an opaque link. This is an alternative to usingnext_chunk_index.
- data_arrayarray of object
The
JSON_ARRAYformat is an array of arrays of values, where each non-null value is formatted as a string. Null values are encoded as JSONnull.Show child attributesHide child attributes
- valuesarray of object
Repeated field of dynamically typed values.
- chunk_indexint32
The position within the sequence of result set chunks.
- row_offsetint64
The starting row offset within the result set.
- row_countint64
The number of rows within the result chunk.
- byte_countint64
The number of bytes in the result chunk. This field is not available when using
INLINEdisposition.
- next_chunk_indexint32
When fetching, provides the
chunk_indexfor the next chunk. If absent, indicates there are no more chunks. The next chunk can be fetched with astatementexecution/getstatementresultchunknrequest.
- next_chunk_internal_linkstring
When fetching, provides a link to fetch the next chunk. If absent, indicates there are no more chunks. This link is an absolute
pathto be joined with your$DATABRICKS_HOST, and should be treated as an opaque link. This is an alternative to usingnext_chunk_index.
Genie Get Message Attachment Query Result GA
GET
Get the result of SQL query if the message has a query attachment.
This is only available if a message has a query attachment and the message status is EXECUTING_QUERY OR COMPLETED.
API scopes: genie
Parameters
- message_idstringpath
Message ID
- space_idstringpath
Genie space ID
- conversation_idstringpath
Conversation ID
- attachment_idstringpath
Attachment ID
Response
- statement_responseobject
SQL Statement Execution response. See Get status, manifest, and result first chunk for more details.
Show child attributesHide child attributes
- statement_idstring
The statement ID is returned upon successfully submitting a SQL statement, and is a required reference for all subsequent calls.
- statusobject
Show child attributesHide child attributes
- statestring
Statement execution state:
PENDING: waiting for warehouseRUNNING: runningSUCCEEDED: execution was successful, result data available for fetchFAILED: execution failed; reason for failure described in accompanying error messageCANCELED: user canceled; can come from explicit cancel call, or timeout withon_wait_timeout=CANCELCLOSED: execution successful, and statement closed; result no longer available for fetch
- errorobject
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- sql_statestring
SQLSTATE error code returned when the statement execution fails. Only populated when the statement status is
FAILED.
- manifestobject
Show child attributesHide child attributes
- formatstring
- schemaobject
Show child attributesHide child attributes
- column_countint32
- columnsarray of object
- total_chunk_countint32
The total number of chunks that the result set has been divided into.
- chunksarray of object
Array of result set chunk metadata.
Show child attributesHide child attributes
- chunk_indexint32
The position within the sequence of result set chunks.
- row_offsetint64
The starting row offset within the result set.
- row_countint64
The number of rows within the result chunk.
- byte_countint64
The number of bytes in the result chunk. This field is not available when using
INLINEdisposition.
- next_chunk_indexint32
When fetching, provides the
chunk_indexfor the next chunk. If absent, indicates there are no more chunks. The next chunk can be fetched with astatementexecution/getstatementresultchunknrequest.
- next_chunk_internal_linkstring
When fetching, provides a link to fetch the next chunk. If absent, indicates there are no more chunks. This link is an absolute
pathto be joined with your$DATABRICKS_HOST, and should be treated as an opaque link. This is an alternative to usingnext_chunk_index.
- total_row_countint64
The total number of rows in the result set.
- total_byte_countint64
The total number of bytes in the result set. This field is not available when using
INLINEdisposition.
- truncatedboolean
Indicates whether the result is truncated due to
row_limitorbyte_limit.
- resultobject
Show child attributesHide child attributes
- external_linksarray of object
Show child attributesHide child attributes
- external_linkstring
A URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
AWSA presigned URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
AzureA SAS URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
GCPA signed URL pointing to a chunk of result data, hosted by an external service, with a short expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive and the client should not expose this URL in a log.
- expirationstring
Indicates the date-time that the given external link will expire and becomes invalid, after which point a new
external_linkmust be requested.
- chunk_indexint32
The position within the sequence of result set chunks.
- row_offsetint64
The starting row offset within the result set.
- row_countint64
The number of rows within the result chunk.
- byte_countint64
The number of bytes in the result chunk. This field is not available when using
INLINEdisposition.
- next_chunk_indexint32
When fetching, provides the
chunk_indexfor the next chunk. If absent, indicates there are no more chunks. The next chunk can be fetched with astatementexecution/getstatementresultchunknrequest.
- next_chunk_internal_linkstring
When fetching, provides a link to fetch the next chunk. If absent, indicates there are no more chunks. This link is an absolute
pathto be joined with your$DATABRICKS_HOST, and should be treated as an opaque link. This is an alternative to usingnext_chunk_index.
- data_arrayarray of object
The
JSON_ARRAYformat is an array of arrays of values, where each non-null value is formatted as a string. Null values are encoded as JSONnull.Show child attributesHide child attributes
- valuesarray of object
Repeated field of dynamically typed values.
- chunk_indexint32
The position within the sequence of result set chunks.
- row_offsetint64
The starting row offset within the result set.
- row_countint64
The number of rows within the result chunk.
- byte_countint64
The number of bytes in the result chunk. This field is not available when using
INLINEdisposition.
- next_chunk_indexint32
When fetching, provides the
chunk_indexfor the next chunk. If absent, indicates there are no more chunks. The next chunk can be fetched with astatementexecution/getstatementresultchunknrequest.
- next_chunk_internal_linkstring
When fetching, provides a link to fetch the next chunk. If absent, indicates there are no more chunks. This link is an absolute
pathto be joined with your$DATABRICKS_HOST, and should be treated as an opaque link. This is an alternative to usingnext_chunk_index.
Genie List Conversation Comments Public Preview
GET
List all comments across all messages in a conversation.
API scopes: genie
Parameters
- space_idstringpath
The ID associated with the Genie space.
- conversation_idstringpath
The ID associated with the conversation.
- page_sizeint32query
Maximum number of comments to return per page.
- page_tokenstringquery
Pagination token for getting the next page of results.
Response
- commentsarray of object
List of comments in the conversation.
Show child attributesHide child attributes
- space_idstring
Genie space ID
- conversation_idstring
Conversation ID
- message_idstring
Message ID
- message_comment_idstring
Comment ID
- user_idint64
ID of the user who created the comment
- contentstring
Comment text content
- created_timestampint64
Timestamp when the comment was created
- next_page_tokenstring
Token to get the next page of results.
Genie List Conversation Messages GA
GET
List messages in a conversation
API scopes: genie
Parameters
- space_idstringpath
The ID associated with the Genie space where the conversation is located
- conversation_idstringpath
The ID of the conversation to list messages from
- page_sizeint32query
Maximum number of messages to return per page
- page_tokenstringquery
Token to get the next page of results
Response
- messagesarray of object
List of messages in the conversation.
Show child attributesHide child attributes
- idstring
Message ID. Legacy identifier, use message_id instead
- space_idstring
Genie space ID
- conversation_idstring
Conversation ID
- user_idint64
ID of the user who created the message
- created_timestampint64
Timestamp when the message was created
- last_updated_timestampint64
Timestamp when the message was last updated
- statusstring
- contentstring
User message content
- attachmentsarray of object
AI-generated response to the message
Show child attributesHide child attributes
- textobjectRequired
Text Attachment if Genie responds with text This also contains the final summary when available.
Show child attributesHide child attributes
- contentstring
AI generated message
- idstring
- purposestring
Purpose of this text attachment. A completed message may contain more than one text attachment (for example a clarifying follow-up question alongside the final answer); use this field to tell them apart.
TEXT_ATTACHMENT_PURPOSE_ANSWERmarks the final answer/summary andFOLLOW_UP_QUESTIONmarks a clarifying question.
- queryobjectRequired
Query Attachment if Genie responds with a SQL query
Show child attributesHide child attributes
- titlestring
Name of the query
- querystring
AI generated SQL query
- descriptionstring
Description of the query
- last_updated_timestampint64
Time when the user updated the query last
- parametersarray of object
- idstring
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- query_result_metadataobject
Metadata associated with the query result.
- thoughtsarray of objectPublic Preview
Insights into how Genie came to generate the SQL.
- suggested_questionsobjectRequired
Follow-up questions suggested by Genie
Show child attributesHide child attributes
- questionsarray of string
The suggested follow-up questions
- vizobjectRequiredBeta
Visualization generated by Genie, if requested via
enable_visualizationShow child attributesHide child attributes
- titlestringBeta
Name of the visualization
- query_attachment_idstringBeta
The ID of the query attachment the visualization was generated from
- attachment_idstring
Attachment ID
- query_resultobject
The result of SQL query if the message includes a query attachment. Deprecated. Use
query_result_metadatainGenieQueryAttachmentinstead.Show child attributesHide child attributes
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- row_countint64
Row count of the result
- is_truncatedboolean
If result is truncated
- statement_id_signaturestring
JWT corresponding to the statement contained in this result
- errorobject
Error message if Genie failed to respond to the message
Show child attributesHide child attributes
- errorstring
- typestring
- message_idstring
Message ID
- feedbackobject
User feedback for the message if provided
Show child attributesHide child attributes
- ratingstring
The feedback rating
- commentstringPublic Preview
Optional feedback comment text
- next_page_tokenstring
The token to use for retrieving the next page of results.
Genie List Message Comments Public Preview
GET
List comments on a specific conversation message.
API scopes: genie
Parameters
- space_idstringpath
The ID associated with the Genie space.
- conversation_idstringpath
The ID associated with the conversation.
- message_idstringpath
The ID associated with the message.
- page_sizeint32query
Maximum number of comments to return per page.
- page_tokenstringquery
Pagination token for getting the next page of results.
Response
- commentsarray of object
List of comments on the message.
Show child attributesHide child attributes
- space_idstring
Genie space ID
- conversation_idstring
Conversation ID
- message_idstring
Message ID
- message_comment_idstring
Comment ID
- user_idint64
ID of the user who created the comment
- contentstring
Comment text content
- created_timestampint64
Timestamp when the comment was created
- next_page_tokenstring
Token to get the next page of results.
Genie Send Message Feedback GA
POST
Send feedback for a message.
API scopes: genie
Parameters
- space_idstringpath
The ID associated with the Genie space where the message is located.
- conversation_idstringpath
The ID associated with the conversation.
- message_idstringpath
The ID associated with the message to provide feedback for.
Request body
- ratingstring
The rating (POSITIVE, NEGATIVE, or NONE).
- commentstringPublic Preview
Optional text feedback that will be stored as a comment.
Genie Start Conversation GA
POST
Start a new conversation.
API scopes: genie
Parameters
- space_idstringpath
The ID associated with the Genie space where you want to start a conversation.
Request body
- contentstring
The text of the message that starts the conversation.
- enable_visualizationbooleanBeta
Enable visualization generation.
Response
- message_idstring
Message ID
- messageobject
Show child attributesHide child attributes
- idstring
Message ID. Legacy identifier, use message_id instead
- space_idstring
Genie space ID
- conversation_idstring
Conversation ID
- user_idint64
ID of the user who created the message
- created_timestampint64
Timestamp when the message was created
- last_updated_timestampint64
Timestamp when the message was last updated
- statusstring
- contentstring
User message content
- attachmentsarray of object
AI-generated response to the message
Show child attributesHide child attributes
- textobjectRequired
Text Attachment if Genie responds with text This also contains the final summary when available.
Show child attributesHide child attributes
- contentstring
AI generated message
- idstring
- purposestring
Purpose of this text attachment. A completed message may contain more than one text attachment (for example a clarifying follow-up question alongside the final answer); use this field to tell them apart.
TEXT_ATTACHMENT_PURPOSE_ANSWERmarks the final answer/summary andFOLLOW_UP_QUESTIONmarks a clarifying question.
- queryobjectRequired
Query Attachment if Genie responds with a SQL query
Show child attributesHide child attributes
- titlestring
Name of the query
- querystring
AI generated SQL query
- descriptionstring
Description of the query
- last_updated_timestampint64
Time when the user updated the query last
- parametersarray of object
- idstring
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- query_result_metadataobject
Metadata associated with the query result.
- thoughtsarray of objectPublic Preview
Insights into how Genie came to generate the SQL.
- suggested_questionsobjectRequired
Follow-up questions suggested by Genie
Show child attributesHide child attributes
- questionsarray of string
The suggested follow-up questions
- vizobjectRequiredBeta
Visualization generated by Genie, if requested via
enable_visualizationShow child attributesHide child attributes
- titlestringBeta
Name of the visualization
- query_attachment_idstringBeta
The ID of the query attachment the visualization was generated from
- attachment_idstring
Attachment ID
- query_resultobject
The result of SQL query if the message includes a query attachment. Deprecated. Use
query_result_metadatainGenieQueryAttachmentinstead.Show child attributesHide child attributes
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- row_countint64
Row count of the result
- is_truncatedboolean
If result is truncated
- statement_id_signaturestring
JWT corresponding to the statement contained in this result
- errorobject
Error message if Genie failed to respond to the message
Show child attributesHide child attributes
- errorstring
- typestring
- message_idstring
Message ID
- feedbackobject
User feedback for the message if provided
Show child attributesHide child attributes
- ratingstring
The feedback rating
- commentstringPublic Preview
Optional feedback comment text
- conversation_idstring
Conversation ID
- conversationobject
Show child attributesHide child attributes
- idstring
Conversation ID. Legacy identifier, use conversation_id instead
- space_idstring
Genie space ID
- user_idint64
ID of the user who created the conversation
- created_timestampint64
Timestamp when the message was created
- last_updated_timestampint64
Timestamp when the message was last updated
- titlestring
Conversation title
- conversation_idstring
Conversation ID