Inkeep Agents Run API
Copy page
Chat completions, MCP, and A2A run endpoints in the Inkeep Agent Framework.
curl -X GET "https://agents-run-api.preview.inkeep.com/health"Create chat completion
Creates a new chat completion with streaming SSE response using the configured agent
The model to use for the completion
The conversation messages
Controls randomness (0-1)
Controls nucleus sampling
Number of completions to generate
Whether to stream the response
Maximum tokens to generate
Presence penalty (-2 to 2)
Frequency penalty (-2 to 2)
Token logit bias
User identifier
Conversation ID for multi-turn chat
Available tools
Run configuration
Headers data for template processing (validated against context config schema)
Response Body
text/event-stream
application/json
application/json
application/json
curl -X POST "https://agents-run-api.preview.inkeep.com/v1/chat/completions" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "messages": [ { "role": "system", "content": "string" } ] }'"string"{
"error": "string",
"details": [
{
"field": "string",
"message": "string",
"value": null
}
]
}{
"error": "string"
}{
"error": "string",
"message": "string"
}Chat (Vercel Streaming Protocol)
Chat completion endpoint streaming with Vercel data stream protocol.
Whether to stream the response
trueMaximum tokens to generate
Headers data for template processing
Run configuration
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://agents-run-api.preview.inkeep.com/api/chat" \ -H "Content-Type: application/json" \ -d '{ "messages": [ { "role": "system" } ] }'{
"title": "Bad Request",
"status": 400,
"detail": "Bad Request",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "bad_request",
"error": {
"code": "bad_request",
"message": "Bad Request"
}
}{
"title": "Unauthorized",
"status": 401,
"detail": "Unauthorized",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "unauthorized",
"error": {
"code": "unauthorized",
"message": "Unauthorized"
}
}{
"title": "Forbidden",
"status": 403,
"detail": "Forbidden",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "forbidden",
"error": {
"code": "forbidden",
"message": "Forbidden"
}
}{
"title": "Not Found",
"status": 404,
"detail": "Not Found",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "not_found",
"error": {
"code": "not_found",
"message": "Not Found"
}
}{
"title": "Unprocessable Entity",
"status": 422,
"detail": "Unprocessable Entity",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "unprocessable_entity",
"error": {
"code": "unprocessable_entity",
"message": "Unprocessable Entity"
}
}{
"title": "Internal Server Error",
"status": 500,
"detail": "Internal Server Error",
"instance": "/conversations/123",
"requestId": "req_1234567890",
"code": "internal_server_error",
"error": {
"code": "internal_server_error",
"message": "Internal Server Error"
}
}MCP Protocol
Handles Model Context Protocol (MCP) JSON-RPC requests
Header Parameters
Tenant identifier
Project identifier
Agent identifier
Response Body
curl -X POST "https://agents-run-api.preview.inkeep.com/v1/mcp"/agents/.well-known/agent.json
Header Parameters
Tenant identifier
Project identifier
Agent identifier
Response Body
application/json
curl -X GET "https://agents-run-api.preview.inkeep.com/agents/.well-known/agent.json"{
"name": "string",
"description": "string",
"url": "string",
"version": "string",
"defaultInputModes": [
"string"
],
"defaultOutputModes": [
"string"
],
"skills": [
null
]
}