Import Agent Unified
Import an agent using the unified import endpoint.
Supports three input methods with deterministic access levels:
- agent_url: Remote black_box - Just an endpoint URL to call
- agent_card: Local grey_box - Upload agent configuration/card JSON
- source_code: Local white_box - Upload agent source code files
Access level is determined by input method (not content).
curl --request POST \
--url https://api.example.com/v1/agent-configurations/import \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.example.com/v1/agent-configurations/import"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.example.com/v1/agent-configurations/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/agent-configurations/import"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"agent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>",
"model_name": "<string>",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": 123,
"updated_at": 123,
"agent_url": "<string>",
"hub": "custom",
"api_key": "<string>",
"agent_system_prompt": "<string>",
"rate_limit_requests_per_minute": 100,
"status": "active",
"access_level": "black_box",
"agent_params": {
"temperature": 123,
"top_p": 123,
"max_tokens": 123,
"timeout": 123,
"rag_params": {},
"function_route_params": {}
},
"mcp_config": {
"proxy_url": "<string>",
"access_level": "read",
"server_urls": [
"<string>"
]
},
"delegated_agents": [
{
"url": "<string>",
"agent_card_url": "<string>",
"name": "<string>",
"capabilities": [
"<string>"
]
}
],
"white_box_config": {
"source_code": "<string>",
"repo_url": "<string>",
"github_username": "<string>",
"repo_branch": "<string>",
"entry_point": "<string>"
},
"agent_metadata": {
"role": "<string>",
"job_description": "<string>",
"version": "<string>",
"author": "<string>",
"tags": [
"<string>"
]
},
"purpose": "<string>",
"protocol": "chat_completions",
"test_score": "<string>",
"last_tested_by": "<string>",
"evaluated_harnesses": [
"<string>"
],
"last_evaluated_at": 123,
"protection_status": "unprotected",
"trust_stage": "registered",
"trusted_at": 123,
"ttt_days": 123,
"dome_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dome_manually_configured": false,
"import_metadata": {
"source": "manual",
"source_url": "<string>",
"imported_at": 123,
"original_format": "<string>"
},
"capabilities": {
"streaming": false,
"push_notifications": false,
"code_execution": false,
"memory": false,
"delegation": false,
"tools": [
"<string>"
]
},
"skills": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"input_modes": [
"<string>"
],
"output_modes": [
"<string>"
]
}
],
"latest_evaluation": {
"evaluation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"overall_score": 123,
"reliability_score": 123,
"security_score": 123,
"safety_score": 123,
"completed_at": 123
}
},
"access_level": "<string>",
"warnings": [],
"external_id": "<string>",
"identity_provider": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
Unified request model for agent import.
Supports five input methods (exactly one required), each with deterministic access level:
| Input Method | Mode | Access Level | Description |
|---|---|---|---|
| agent_url | Remote | black_box | Just an endpoint URL to call |
| agent_card | Local | grey_box | Upload agent configuration/card JSON |
| source_code | Local | white_box | Upload agent source code files |
Remote black_box: Agent endpoint URL to call (e.g., https://api.example.com/agent)
Local white_box: Upload agent source code files directly
Hide child attributes
Hide child attributes
Response
Successful Response
Response model for unified import.
Agent domain model.
Hide child attributes
Hide child attributes
Access level for agent analysis.
Black Box: URL only - behavioral testing only Grey Box: Agent configuration - structure/capabilities analysis White Box: Source code access - full code + sandbox runtime analysis
black_box, grey_box, white_box Model parameters for agent configuration.
Hide child attributes
Hide child attributes
MCP (Model Context Protocol) proxy configuration.
Hide child attributes
Hide child attributes
Source code access configuration for white box analysis.
Metadata about how an agent was imported.
- ImportMetadata
- Import Metadata
Agent capability flags.
- AgentCapabilities
- Capabilities
Hide child attributes
Hide child attributes
Latest completed evaluation scores for an agent.
Sideloaded on GET /agent-configurations when include_scores=true. Contains only domain-level score data — no UI or presentation concerns.
Hide child attributes
Hide child attributes
Was this page helpful?
curl --request POST \
--url https://api.example.com/v1/agent-configurations/import \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.example.com/v1/agent-configurations/import"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.example.com/v1/agent-configurations/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/agent-configurations/import"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"agent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>",
"model_name": "<string>",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": 123,
"updated_at": 123,
"agent_url": "<string>",
"hub": "custom",
"api_key": "<string>",
"agent_system_prompt": "<string>",
"rate_limit_requests_per_minute": 100,
"status": "active",
"access_level": "black_box",
"agent_params": {
"temperature": 123,
"top_p": 123,
"max_tokens": 123,
"timeout": 123,
"rag_params": {},
"function_route_params": {}
},
"mcp_config": {
"proxy_url": "<string>",
"access_level": "read",
"server_urls": [
"<string>"
]
},
"delegated_agents": [
{
"url": "<string>",
"agent_card_url": "<string>",
"name": "<string>",
"capabilities": [
"<string>"
]
}
],
"white_box_config": {
"source_code": "<string>",
"repo_url": "<string>",
"github_username": "<string>",
"repo_branch": "<string>",
"entry_point": "<string>"
},
"agent_metadata": {
"role": "<string>",
"job_description": "<string>",
"version": "<string>",
"author": "<string>",
"tags": [
"<string>"
]
},
"purpose": "<string>",
"protocol": "chat_completions",
"test_score": "<string>",
"last_tested_by": "<string>",
"evaluated_harnesses": [
"<string>"
],
"last_evaluated_at": 123,
"protection_status": "unprotected",
"trust_stage": "registered",
"trusted_at": 123,
"ttt_days": 123,
"dome_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dome_manually_configured": false,
"import_metadata": {
"source": "manual",
"source_url": "<string>",
"imported_at": 123,
"original_format": "<string>"
},
"capabilities": {
"streaming": false,
"push_notifications": false,
"code_execution": false,
"memory": false,
"delegation": false,
"tools": [
"<string>"
]
},
"skills": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"input_modes": [
"<string>"
],
"output_modes": [
"<string>"
]
}
],
"latest_evaluation": {
"evaluation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"overall_score": 123,
"reliability_score": 123,
"security_score": 123,
"safety_score": 123,
"completed_at": 123
}
},
"access_level": "<string>",
"warnings": [],
"external_id": "<string>",
"identity_provider": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}