Environments-4
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
PATCH | |
GET | |
POST | |
GET |
Create environments batch exports run test step new
Required API key scopes
INTERNALPath parameters
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_id /batch_exports /run_test_step_newExample response
Status 200 No response body
Create environments batch exports run test step new
Required API key scopes
INTERNALPath parameters
- project_idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstring
- start_atstring
- end_atstring
- hogql_querystring
- filters
Example request
POST /api /environments /:project_id /batch_exports /run_test_step_newExample response
Status 200 No response body
Retrieve environments batch exports test
Required API key scopes
INTERNALPath parameters
- project_idstring
Example request
GET /api /environments /:project_id /batch_exports /testExample response
Status 200 No response body
Retrieve environments batch exports test
Required API key scopes
INTERNALPath parameters
- project_idstring
Example request
GET /api /environments /:project_id /batch_exports /testExample response
Status 200 No response body
List all environments conversations
Required API key scopes
conversation:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /conversationsExample response
Status 200
RESPONSE
List all environments conversations
Required API key scopes
conversation:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /conversationsExample response
Status 200
RESPONSE
Create environments conversations
Unified endpoint that handles both conversation creation and streaming.
- If message is provided: Start new conversation processing
- If no message: Stream from existing conversation
Required API key scopes
conversation:writePath parameters
- project_idstring
Request parameters
- contentstring
- conversationstring
- contextual_toolsobject
- ui_context
- billing_context
- trace_idstring
- session_idstring
- deep_research_modebooleanDefault:
false - agent_mode
Response
Example request
POST /api /environments /:project_id /conversationsExample response
Status 201
RESPONSE
Create environments conversations
Unified endpoint that handles both conversation creation and streaming.
- If message is provided: Start new conversation processing
- If no message: Stream from existing conversation
Required API key scopes
conversation:writePath parameters
- project_idstring
Request parameters
- contentstring
- conversationstring
- contextual_toolsobject
- ui_context
- billing_context
- trace_idstring
- session_idstring
- deep_research_modebooleanDefault:
false - agent_mode
Response
Example request
POST /api /environments /:project_id /conversationsExample response
Status 201
RESPONSE
Retrieve environments conversations
Required API key scopes
conversation:readPath parameters
- conversationstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /conversations /:conversationExample response
Status 200
RESPONSE
Retrieve environments conversations
Required API key scopes
conversation:readPath parameters
- conversationstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /conversations /:conversationExample response
Status 200
RESPONSE
Create environments conversations append message
Appends a message to an existing conversation without triggering AI processing. This is used for client-side generated messages that need to be persisted (e.g., support ticket confirmation messages).
Path parameters
- conversationstring
- project_idstring
Request parameters
- contentstring
Response
Example request
POST /api /environments /:project_id /conversations /:conversation /append_messageExample response
Status 200
RESPONSE
Create environments conversations append message
Appends a message to an existing conversation without triggering AI processing. This is used for client-side generated messages that need to be persisted (e.g., support ticket confirmation messages).
Path parameters
- conversationstring
- project_idstring
Request parameters
- contentstring
Response
Example request
POST /api /environments /:project_id /conversations /:conversation /append_messageExample response
Status 200
RESPONSE
Update environments conversations cancel
Path parameters
- conversationstring
- project_idstring
Request parameters
Response
Example request
PATCH /api /environments /:project_id /conversations /:conversation /cancelExample response
Status 200
RESPONSE
Update environments conversations cancel
Path parameters
- conversationstring
- project_idstring
Request parameters
Response
Example request
PATCH /api /environments /:project_id /conversations /:conversation /cancelExample response
Status 200
RESPONSE
List all environments dashboards
Required API key scopes
dashboard:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"json""txt" - limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /dashboardsExample response
Status 200
RESPONSE
List all environments dashboards
Required API key scopes
dashboard:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"json""txt" - limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /dashboardsExample response
Status 200
RESPONSE
Create environments dashboards
Required API key scopes
dashboard:writePath parameters
- project_idstring
Query parameters
- formatstringOne of:
"json""txt"
Request parameters
- namestring
- descriptionstring
- pinnedboolean
- last_accessed_atstring
- deletedboolean
- breakdown_colors
- data_color_theme_idinteger
- tagsarray
- restriction_level
- last_refreshstring
- use_templatestring
- use_dashboardinteger
- delete_insightsbooleanDefault:
false - _create_in_folderstring
Response
Example request
POST /api /environments /:project_id /dashboardsExample response
Status 201
RESPONSE
Create environments dashboards
Required API key scopes
dashboard:writePath parameters
- project_idstring
Query parameters
- formatstringOne of:
"json""txt"
Request parameters
- namestring
- descriptionstring
- pinnedboolean
- last_accessed_atstring
- deletedboolean
- breakdown_colors
- data_color_theme_idinteger
- tagsarray
- restriction_level
- last_refreshstring
- use_templatestring
- use_dashboardinteger
- delete_insightsbooleanDefault:
false - _create_in_folderstring
Response
Example request
POST /api /environments /:project_id /dashboardsExample response
Status 201
RESPONSE
List all environments dashboards collaborators
Required API key scopes
dashboard:readPath parameters
- dashboard_idinteger
- project_idstring
Example request
GET /api /environments /:project_id /dashboards /:dashboard_id /collaboratorsExample response
Status 200
RESPONSE
List all environments dashboards collaborators
Required API key scopes
dashboard:readPath parameters
- dashboard_idinteger
- project_idstring
Example request
GET /api /environments /:project_id /dashboards /:dashboard_id /collaboratorsExample response
Status 200
RESPONSE