Skip to Content
Docs are evolving — expect frequent updates.
CompanyProcess Message

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

HeaderRequiredDescription
AuthorizationYesYour API key (format: YOUR_API_KEY)
Content-TypeYesapplication/json

Request Body

FieldTypeRequiredDescription
projectIdstring (UUID)YesProject to attach the message to
contentstringYesMessage content to process

Code Examples

CODE
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.

CODE
{
  "metadata": {
    "code": "1000",
    "title": "Successful",
    "description": ""
  },
  "data": null
}
Last updated on