Agent
Read and change the agent's own settings.
Base URL https://futuresmart.ai/database-agent/api · every request sends X-API-Key. Samples read the key from DATABASE_AGENT_API_KEY. All endpoints
Get the agent
/v1/agents/{agent_id}Get a specific agent by ID
The response includes the owner_id (email) of the agent.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
Other responses
422Validation Error
Replace the agent's settings
/v1/agents/{agent_id}Update an agent (full update - replaces all fields)
Gets owner_id (email) from Google Auth token to verify ownership.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
Request body · application/json (optional)
| Name | Type | Description |
|---|---|---|
agent_name | string | null | Name of the agent |
system_prompt | string | null | System prompt for the agent |
greet_message | string | null | Greeting message |
provider | string | null | LLM provider |
model | string | null | Model name |
temperature | number | null | Temperature for LLM |
show_sql_query | boolean | null | If true, the chat response will include the generated SQL query |
show_db_result | boolean | null | If true, the chat response will include the raw DB result rows |
Other responses
422Validation Error
Example request body
{}Update the agent's settings
/v1/agents/{agent_id}Partially update an agent (only updates provided fields)
Gets owner_id (email) from Google Auth token to verify ownership.
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
Request body · application/json (optional)
| Name | Type | Description |
|---|---|---|
agent_name | string | null | Name of the agent |
system_prompt | string | null | System prompt for the agent |
greet_message | string | null | Greeting message |
provider | string | null | LLM provider |
model | string | null | Model name |
temperature | number | null | Temperature for LLM |
show_sql_query | boolean | null | If true, the chat response will include the generated SQL query |
show_db_result | boolean | null | If true, the chat response will include the raw DB result rows |
Other responses
422Validation Error
Example request body
{}Get the agent's model configuration
/v1/agents/{agent_id}/configGet agent configuration including nodes and agent parameters
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
Query parameters
| Name | Type | Description |
|---|---|---|
fields | string | null | Comma-separated list of fields to return (e.g., nodes,agent_params) |
node_name | string | null | Filter specific node configuration |
Other responses
422Validation Error
Set per-step model configuration
/v1/agents/{agent_id}/config/nodesUpsert (create or update) node configurations for an agent
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
Request body · application/json (optional)
| Name | Type | Description |
|---|---|---|
owner_id | string | null | User ID (optional if using auth token) |
configsrequired | array<NodeConfig> | List of node configurations to upsert |
↳ node_namerequired | string | Node name (must be one of: refine, select_and_fewshots, sql_gen, sql_exec, final_answer_node, graph_json_node) |
↳ providerrequired | string | LLM provider (e.g., openai, anthropic, groq) |
↳ modelrequired | string | Model name (e.g., gpt-4o, gpt-4o-mini, claude-3-5-sonnet) |
↳ temperature | number | null | Temperature for LLM |
↳ prompt | string | null | Custom prompt for this node |
Other responses
422Validation Error
Example request body
{
"configs": [
{
"node_name": "<node_name>",
"provider": "<provider>",
"model": "<model>"
}
]
}Update agent parameters
/v1/agents/{agent_id}/config/paramsPartially update agent parameters
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
Request body · application/json (optional)
| Name | Type | Description |
|---|---|---|
owner_id | string | null | Owner ID (optional if using auth token) |
agent_name | string | null | Name of the agent |
system_prompt | string | null | System prompt for the agent |
service_description | string | null | Service description for the agent |
greet_message | string | null | Greeting message |
debug_info | boolean | null | Enable debug information |
show_sql_query | boolean | null | If true, the chat response includes the generated SQL query |
show_db_result | boolean | null | If true, the chat response includes the raw DB result rows |
graph_output | boolean | null | Enable graph output |
allowed_graphs | array<string> | null | List of allowed graph types (e.g., bar, line, pie) |
follow_up | boolean | null | Suggest follow-up questions after each answer |
voice_input_enabled | boolean | null | Offer speech input in the ask box |
voice_output_enabled | boolean | null | Offer read-aloud on each answer |
suggested_questions | array<string> | null | Starter questions shown before the first message |
max_query_execution_time | integer | null | Maximum query execution time in seconds |
enable_query_caching | boolean | null | Enable query caching |
is_public | boolean | null | Allow the embedded widget to be used without signing in |
allowed_domains | array<string> | null | Domains the widget may be embedded on (e.g. ['example.com', '*.example.com']). Empty means any domain |
fullscreen_is_public | boolean | null | Allow the full-screen share link to be used without signing in |
fullscreen_allowed_domains | array<string> | null | Domains the full-screen link may be opened from. Empty means any domain |
Other responses
422Validation Error
Example request body
{}Reset a step to its default configuration
/v1/agents/{agent_id}/config/nodes/{node_name}Delete a node configuration
Credential Database Agent API key for this agent (X-API-Key)
Path parameters
| Name | Type | Description |
|---|---|---|
agent_idrequired | string | Agent ID |
node_namerequired | string | Node name (must be one of the valid LangGraph nodes) |
Other responses
422Validation Error