Improvements
Improvements API endpoints
GET
/api/improvementsAuthorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
curl -X GET "http://localhost:3013/api/improvements"{
"enabled": true,
"improvements": [
{
"id": "string",
"text": "string",
"email": "string",
"status": "pending_approval",
"source": "mcp",
"requestedByAgentId": "string",
"approvedBy": "string",
"approvedAt": "string",
"sentAt": "string",
"proxyStatus": 0,
"proxyId": "string",
"proxyError": "string",
"createdAt": "string",
"updatedAt": "string",
"leakHints": [
"string"
]
}
]
}POST
/api/improvementsAuthorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/improvements" \ -H "Content-Type: application/json" \ -d '{ "text": "string" }'{
"improvement": {
"id": "string",
"text": "string",
"email": "string",
"status": "pending_approval",
"source": "mcp",
"requestedByAgentId": "string",
"approvedBy": "string",
"approvedAt": "string",
"sentAt": "string",
"proxyStatus": 0,
"proxyId": "string",
"proxyError": "string",
"createdAt": "string",
"updatedAt": "string",
"leakHints": [
"string"
]
}
}{
"improvement": {
"id": "string",
"text": "string",
"email": "string",
"status": "pending_approval",
"source": "mcp",
"requestedByAgentId": "string",
"approvedBy": "string",
"approvedAt": "string",
"sentAt": "string",
"proxyStatus": 0,
"proxyId": "string",
"proxyError": "string",
"createdAt": "string",
"updatedAt": "string",
"leakHints": [
"string"
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}POST
/api/improvements/{id}/approveAuthorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
id*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/improvements/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com" }'{
"improvement": {
"id": "string",
"text": "string",
"email": "string",
"status": "pending_approval",
"source": "mcp",
"requestedByAgentId": "string",
"approvedBy": "string",
"approvedAt": "string",
"sentAt": "string",
"proxyStatus": 0,
"proxyId": "string",
"proxyError": "string",
"createdAt": "string",
"updatedAt": "string",
"leakHints": [
"string"
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}POST
/api/improvements/{id}/discardAuthorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
id*string
Format
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/improvements/497f6eca-6276-4993-bfeb-53cbbbba6f08/discard"{
"improvement": {
"id": "string",
"text": "string",
"email": "string",
"status": "pending_approval",
"source": "mcp",
"requestedByAgentId": "string",
"approvedBy": "string",
"approvedAt": "string",
"sentAt": "string",
"proxyStatus": 0,
"proxyId": "string",
"proxyError": "string",
"createdAt": "string",
"updatedAt": "string",
"leakHints": [
"string"
]
}
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}