Environments-3
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
POST | |
POST | |
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
PATCH | |
GET | |
POST | |
GET | |
PATCH |
Retrieve environments batch exports logs
Path parameters
- idstring
- project_idstring
Example request
GET /api /environments /:project_id /batch_exports /:id /logsExample response
Status 200 No response body
Create environments batch exports pause
Pause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstring
- 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 /:id /pauseExample response
Status 200 No response body
Create environments batch exports run test step
Required API key scopes
INTERNALPath parameters
- idstring
- 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 /:id /run_test_stepExample response
Status 200 No response body
Create environments batch exports unpause
Unpause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstring
- 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 /:id /unpauseExample 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
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
- resume_payload
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
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
List all environments customer profile configs
Required API key scopes
customer_profile_config:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /customer_profile_configsExample response
Status 200
RESPONSE
List all environments customer profile configs
Required API key scopes
customer_profile_config:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /customer_profile_configsExample response
Status 200
RESPONSE
Create environments customer profile configs
Required API key scopes
customer_profile_config:writePath parameters
- project_idstring
Request parameters
- scope
- content
- sidebar
Response
Example request
POST /api /environments /:project_id /customer_profile_configsExample response
Status 201
RESPONSE
Create environments customer profile configs
Required API key scopes
customer_profile_config:writePath parameters
- project_idstring
Request parameters
- scope
- content
- sidebar
Response
Example request
POST /api /environments /:project_id /customer_profile_configsExample response
Status 201
RESPONSE
Retrieve environments customer profile configs
Required API key scopes
customer_profile_config:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /customer_profile_configs /:idExample response
Status 200
RESPONSE
Retrieve environments customer profile configs
Required API key scopes
customer_profile_config:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /customer_profile_configs /:idExample response
Status 200
RESPONSE
Update environments customer profile configs
Required API key scopes
customer_profile_config:writePath parameters
- idstring
- project_idstring
Request parameters
- scope
- content
- sidebar
Response
Example request
PATCH /api /environments /:project_id /customer_profile_configs /:idExample response
Status 200
RESPONSE