{{template "views/partials/head" .}}
Use these curl commands to interact with this task programmatically.
curl -X POST {{ .BaseURL }}api/agent/jobs/execute \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"task_id": "",
"parameters": {
"user_name": "Alice",
"job_title": "Software Engineer",
"task_description": "Review code changes"
}
}'
curl -X POST {{ .BaseURL }}api/agent/tasks//execute \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"user_name": "Bob",
"job_title": "Data Scientist",
"task_description": "Analyze sales data"
}'
The request body should be a JSON object where keys are parameter names and values are strings. If no body is provided, the task will execute with empty parameters.
curl -X POST {{ .BaseURL }}api/agent/jobs/execute \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"task_id": "",
"parameters": {
"user_name": "Alice",
"task_description": "Analyze this image"
},
"images": [
"https://example.com/image.png",
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
]
}'
You can provide multimedia content as URLs or base64-encoded data URIs. Supported types: images, videos, audios, and files.
curl -X GET {{ .BaseURL }}api/agent/jobs/JOB_ID \
-H "Authorization: Bearer YOUR_API_KEY"
After executing a task, you will receive a job_id in the response. Use it to query the job's status and results.
Enter parameters as key-value pairs (one per line, format: key=value). These will be used to template the prompt.
Example: user_name=Alice
Provide multimedia content as URLs or base64-encoded data URIs. You can also upload files which will be converted to base64.