Inkeep Agents Run API
Copy page
Chat completions, MCP, and A2A run endpoints in the Inkeep Agent Framework.
Health check
Authorization
bearerAuth
API key authentication. All endpoints require a valid API key in the Authorization header as "Bearer ". API keys can be created in the management UI.
In: header
Response Body
curl -X GET "https://agents-run-api.preview.inkeep.com/health"Create chat completion
Authorization
bearerAuth
API key authentication. All endpoints require a valid API key in the Authorization header as "Bearer ". API keys can be created in the management UI.
In: header
Request Body
application/json
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)
Authorization
bearerAuth
API key authentication. All endpoints require a valid API key in the Authorization header as "Bearer ". API keys can be created in the management UI.
In: header
Request Body
application/json
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"
}
}Approve or deny tool execution
Authorization
bearerAuth
API key authentication. All endpoints require a valid API key in the Authorization header as "Bearer ". API keys can be created in the management UI.
In: header
Request Body
application/json
The conversation ID
The tool call ID to respond to
Whether the tool execution is approved
Optional reason for the decision
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://agents-run-api.preview.inkeep.com/api/tool-approvals" \ -H "Content-Type: application/json" \ -d '{ "conversationId": "string", "toolCallId": "string", "approved": true }'{
"success": true,
"message": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string",
"message": "string"
}MCP Protocol
Authorization
bearerAuth
API key authentication. All endpoints require a valid API key in the Authorization header as "Bearer ". API keys can be created in the management UI.
In: header
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
Authorization
bearerAuth
API key authentication. All endpoints require a valid API key in the Authorization header as "Bearer ". API keys can be created in the management UI.
In: header
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
]
}