Process Message
Process an inbound message and attach it to a project. Used for routing email content or other text messages into the Kruncher analysis pipeline.
Endpoint
POST https://api.kruncher.ai/api/integration/processmessage
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Your API key (format: YOUR_API_KEY) |
Content-Type | Yes | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
projectId | string (UUID) | Yes | Project to attach the message to |
content | string | Yes | Message content to process |
Code Examples
JavaScript
const API_KEY = "YOUR_API_KEY_HERE";
const response = await fetch("https://api.kruncher.ai/api/integration/processmessage", {
method: "POST",
headers: {
"Authorization": API_KEY,
"Content-Type": "application/json"
},
body: JSON.stringify({
projectId: "521a93a6-091d-4943-ba13-7c1a654a14ae",
content: "Following up on our meeting. The company has raised a $10M Series A..."
})
});
const result = await response.json();
console.log("Message processed:", result.metadata.title);Response
Success Response (200 OK)
Returns an empty success envelope.
{
"metadata": {
"code": "1000",
"title": "Successful",
"description": ""
},
"data": null
}Related Endpoints
- Create Company - Create a new project first
- Add Comment - Add notes to a project
- Create from HTML - Create a project from HTML content
Last updated on