Organization API Key
Creates an agent by organization API key. The response includes the agent details.
Agent role ID.
123e4567-e89b-12d3-a456-426614174000Name of the agent.
My agentPublic name of the agent.
My agentDescription of the agent.
My agent descriptionDisclaimer of the agent.
My agent disclaimerInstructions of the agent.
My agent instructionsModel of the agent.
gpt-4oPossible values: TopP of the agent.
1Temperature of the agent.
1Is file search enabled by default.
falseIs code interpreter enabled by default.
falseFile search max number of results. Required when isFileSearchEnabled is true.
10Example: 10Reasoning effort of the agent. Required only when mode is reasoning.
mediumPossible values: Is agent API skill enabled by default.
trueSuccessfully 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: 386
{
"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,
"fileSearchMaxNumResults": 10,
"reasoningEffort": "medium",
"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,
"fileSearchMaxNumResults": 10,
"reasoningEffort": "medium"
},
"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"
}Last updated

