Create a new agent
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company_id": 123
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/agents"
payload = {
"name": "<string>",
"company_id": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', company_id: 123})
};
fetch('https://paradigm.lighton.ai/api/v3/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"name": "<string>",
"description": "<string>",
"instructions": "<string>",
"company": {
"id": 123,
"name": "<string>",
"allow_ephemeral_mode": true,
"is_sharing_enabled": true
},
"group": {
"name": "<string>",
"id": 123
},
"workspaces": [
{
"id": 123,
"name": "<string>",
"category": "<string>",
"file_count": 123,
"summaries": []
}
],
"tools": {
"native": [
{
"id": "<string>",
"name": "<string>",
"object": "tool"
}
],
"mcp_servers": [
{
"id": "<string>",
"name": "<string>",
"object": "mcp_server"
}
]
},
"is_default": true,
"ownership": "<string>",
"scope_workspaces_by_group": true,
"scoped_workspace_ids": [
123
],
"ml_model": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ml_model_alias": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_current_user_favorite": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}"<unknown>""<unknown>""<unknown>"{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Agents
Create a new agent
Create a new agent (ChatSettings) with specified tools and MCP servers.
Access control:
- Users can create agents in their personal groups
- Company admins can create agents in any group within their company
- Sys-admin users can create agents in any group
Model configuration:
ml_model: UUID of an ML model to set as default for this agentml_model_alias: UUID of an alias to set as default for this agent- These fields are mutually exclusive — provide one or neither, not both
- When neither is provided, the agent uses the company default model
POST
/
api
/
v3
/
agents
Create a new agent
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company_id": 123
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/agents"
payload = {
"name": "<string>",
"company_id": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', company_id: 123})
};
fetch('https://paradigm.lighton.ai/api/v3/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"name": "<string>",
"description": "<string>",
"instructions": "<string>",
"company": {
"id": 123,
"name": "<string>",
"allow_ephemeral_mode": true,
"is_sharing_enabled": true
},
"group": {
"name": "<string>",
"id": 123
},
"workspaces": [
{
"id": 123,
"name": "<string>",
"category": "<string>",
"file_count": 123,
"summaries": []
}
],
"tools": {
"native": [
{
"id": "<string>",
"name": "<string>",
"object": "tool"
}
],
"mcp_servers": [
{
"id": "<string>",
"name": "<string>",
"object": "mcp_server"
}
]
},
"is_default": true,
"ownership": "<string>",
"scope_workspaces_by_group": true,
"scoped_workspace_ids": [
123
],
"ml_model": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ml_model_alias": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_current_user_favorite": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}"<unknown>""<unknown>""<unknown>"{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
personal- personalcompany- companyteam- team
Available options:
personal, company, team Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes