Organization API Key
Creates an agent by organization API key. The response includes the agent details.
Agent role ID.
123e4567-e89b-12d3-a456-426614174000
Name of the agent.
My agent
Public name of the agent.
My agent
Description of the agent.
My agent description
Disclaimer of the agent.
My agent disclaimer
Instructions of the agent.
My agent instructions
Model of the agent.
gpt-4o
Possible values: TopP of the agent.
1
Temperature of the agent.
1
Is file search enabled by default.
false
Is code interpreter enabled by default.
false
Is agent API skill enabled by default.
true
Successfully created the agent.
Invalid API key or secret key. Ensure that you are using a valid authentication key.
Unexpected error occurred while processing the request. Please try again later.
POST /external/agents HTTP/1.1
Host: api.raia2.com
Organization-Secret-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 330
{
"roleId": "123e4567-e89b-12d3-a456-426614174000",
"name": "My agent",
"publicName": "My agent",
"description": "My agent description",
"disclaimer": "My agent disclaimer",
"instructions": "My agent instructions",
"model": "gpt-4o",
"topP": 1,
"temperature": 1,
"isFileSearchEnabled": false,
"isCodeInterpreterEnabled": false,
"isApiSkillEnabled": true
}
{
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"organizationName": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"publicName": "text",
"role": "text",
"description": "text",
"vectorStoreId": "vs_1234567890",
"aiConfig": {
"id": "asst_1234567890",
"model": "gpt-3.5-turbo",
"temperature": 1,
"topP": 1,
"instructions": "text",
"isCodeInterpreterEnabled": true,
"isFileSearchEnabled": true
},
"avatarUrl": "https://example.com/avatar.jpg",
"status": "active",
"skills": [
{
"systemName": "AGENT_SKILL_SYSTEM_NAME",
"status": "active"
}
],
"agentApiKey": "123e4567-e89b-12d3-a456-426614174000"
}
Fetches agent roles by organization API key. The response includes agent roles details.
Successfully retrieved agent roles.
Invalid API key or secret key. Ensure that you are using a valid authentication key.
Unexpected error occurred while processing the request. Please try again later.
GET /external/agent-roles/by-api-key HTTP/1.1
Host: api.raia2.com
Organization-Secret-Key: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text"
}