AI Agents > Context
The following endpoints allow you to get, create, and delete Context for AI Agents. These endpoints are available in open beta to all users. As beta endpoints, both functionality and availability may change.
Retrieve a list of all context for an agent
Authorizations
Query parameters
agentIdstring · uuidRequired
teamIdnumberRequired
Responses
200
List of context retrieved successfully
get
GET /api/v2/ai-agents/v1/contexts HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
200
List of context retrieved successfully
No content
Create a new context with an optional file upload
Authorizations
Query parameters
teamIdnumberRequired
Body
Schema for uploading a file.
agentIdstring · uuidRequired
fileany | nullableOptional
Responses
201
Context created successfully
post
POST /api/v2/ai-agents/v1/contexts HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 161
{
"agentId": "123e4567-e89b-12d3-a456-426614174000",
"file": {
"fieldname": "file",
"originalname": "example.txt",
"encoding": "7bit",
"mimetype": "text/plain",
"size": 1024
}
}
201
Context created successfully
No content
Delete a context by its ID
Authorizations
Path parameters
contextIdstring · uuidRequired
Query parameters
teamIdnumberRequired
Responses
204
Context deleted successfully
delete
DELETE /api/v2/ai-agents/v1/contexts/{contextId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
204
Context deleted successfully
No content