MCP is live.Set upAsk the community
OmniDimension
Knowledge base

Attach files to agent

Attach multiple knowledge-base files to an agent.

POST/knowledge_base/attach
Body
3 fields
·

List of knowledge-base file IDs to attach.

ID of the agent to attach files to.

Instruction to the agent on when to consult these files.

curl -X POST 'https://omnidim.io/api/v1/knowledge_base/attach' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "file_ids": [
    17686
  ],
  "agent_id": 158910,
  "when_to_use": "Use these documents to answer billing-related questions."
}'
Example response
{
  "success": true,
  "message": "1 files attached to agent successfully"
}

Authorization

BearerAuth
headerAuthorizationBearer <token>

Bearer token authentication. Obtain your API key from the OmniDimension dashboard.

Request Body

application/json
file_ids*array<integer>

List of knowledge-base file IDs to attach.

Items1 <= items
agent_id*integer

ID of the agent to attach files to.

when_to_use?string

Instruction to the agent on when to consult these files.

Response body

application/json

Response Body

Files attached.

application/json
success?boolean
message?string

Was this page helpful?