Ingest into a project's memory
ingest_memoryIngests one data point into a project's memory, as POST /api/v1/ingest does, and answers as it does: the ingestion id, the source id and the status. With no audience the data point is for the whole project; name an audience by its slug to keep it to that audience. An id that already exists replaces the earlier revision and the memories that came from it, and the same content under the same id is unchanged and costs nothing. It spends the project's credits as an API ingestion does. Ingest only what the person asks you to keep. Needs project Write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Your own id for this data point. Send it again to replace the earlier revision. When omitted, the id comes from the content. | |
| label | No | A short title for the data point, such as "Email from Nadia". When omitted on a re-send, the stored label stays. | |
| content | Yes | The text to keep, as the person gave it. | |
| project | No | The project's slug, exactly as list_projects returned it. Omit it only when the organization has one live project. | |
| audience | No | The slug of an audience that exists in the project, to keep the data point to that audience. Omit it for the whole project. | |
| identity | No | The author: the customer's own id for one of their users. Its first appearance creates it in the identity directory. | |
| metadata | No | Your own JSON, stored and returned as sent. Keys such as role, author, conversationId and messageId help past attribute and order what it reads. | |
| timestamp | No | When the data point happened (ISO 8601). Now when omitted, or the stored time on a re-send. |