This endpoint retrieves the raw data for a BRK, including the complete BRK definition, schema, editor JSON, configuration, and operations. This endpoint is useful for advanced use cases where you need access to the internal structure of a BRK. You must have at least editor permissions for the BRK to access its raw data.
Request
The ID of the BRK to get raw data for
Example Request
{
"brxId" : "brk-12345678-90ab-cdef-1234-567890abcdef"
}
Response
The complete BRK definition The unique identifier of the BRK
The description of the BRK
The prompt template for the BRK Map of prompt template names to template strings
Parameters for processing the BRK The type of processing to perform
Map of schema linker to BRK ID for dependencies
The schema definition for the BRK Map of field names to field definitions The data type of the field
Editor-specific JSON data for the BRK
Configuration parameters for the BRK
Operations data for the BRK
Example Response
{
"brx" : {
"brxId" : "brk-12345678-90ab-cdef-1234-567890abcdef" ,
"brxName" : "Example BRK" ,
"description" : "An example BRK for documentation" ,
"prompt" : {
"prompt" : {
"main" : "This is the main prompt template with {{variable}}"
}
},
"processParams" : {
"processType" : 0
},
"dependantBrxIds" : {
"main_brx_entry_schema" : "brk-12345678-90ab-cdef-1234-567890abcdef"
}
},
"schema" : {
"schemaFields" : {
"variable" : {
"fieldValueDataType" : "string" ,
"fieldValue" : ""
}
},
"brxName" : "Example BRK" ,
"brxId" : "brk-12345678-90ab-cdef-1234-567890abcdef"
},
"editorJSON" : {
"layout" : {
"nodes" : [
{
"id" : "node1" ,
"position" : {
"x" : 100 ,
"y" : 100
}
}
],
"edges" : []
}
},
"conf" : {
"maxTokens" : 1000 ,
"temperature" : 0.7 ,
"topP" : 0.9
},
"ops" : {
"lastOperation" : "UPDATE" ,
"operationTimestamp" : "2023-01-01T00:00:00.000Z"
}
}
Error Codes
Bad Request - The request was malformed or missing required parameters
Unauthorized - Authentication credentials are missing or invalid
Forbidden - The authenticated user does not have permission to access the raw data for the requested BRK
Not Found - The requested BRK does not exist
Internal Server Error - An unexpected error occurred on the server
Notes
This endpoint returns the complete internal structure of a BRK, which can be useful for debugging or advanced use cases.
You must have at least editor permissions for the BRK to access its raw data.
The response includes the BRK definition, schema, editor JSON, configuration, and operations data.
The editorJSON field contains layout information and other editor-specific metadata.
The conf field contains configuration parameters for the BRK, such as model parameters.
The ops field contains information about operations performed on the BRK, such as the last operation and timestamp.