Environments-3
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
POST | |
POST | |
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
PATCH | |
GET | |
POST | |
GET | |
PATCH |
Create batch exports pause
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
- timezone
- offset_dayinteger
- offset_hourinteger
Example request
POST /api /environments /:project_id /batch_exports /:id /pauseExample response
Status 200 No response body
Create 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
- timezone
- offset_dayinteger
- offset_hourinteger
Example request
POST /api /environments /:project_id /batch_exports /:id /run_test_stepExample response
Status 200 No response body
Create 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
- timezone
- offset_dayinteger
- offset_hourinteger
Example request
POST /api /environments /:project_id /batch_exports /:id /unpauseExample response
Status 200 No response body
Create 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
- timezone
- offset_dayinteger
- offset_hourinteger
Example request
POST /api /environments /:project_id /batch_exports /run_test_step_newExample response
Status 200 No response body
Retrieve 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 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 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 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 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 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 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 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 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 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 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 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 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
Update 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