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
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
List of context retrieved successfully
GET /api/v2/ai-agents/v1/contexts?agentId=123e4567-e89b-12d3-a456-426614174000&teamId=1 HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
List of context retrieved successfully
No content
Create a new context with an optional file upload
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
Schema for uploading a file.
Context created successfully
POST /api/v2/ai-agents/v1/contexts?teamId=1 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
}
}Context created successfully
No content
Delete a context by its ID
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
Context deleted successfully
DELETE /api/v2/ai-agents/v1/contexts/{contextId}?teamId=1 HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Context deleted successfully
No content
Last updated

