---
title: "Insert Blob"
method: POST
path: "/api/v1/blobs/insert/{user_id}"
tags: ["blob"]
---

# Insert Blob

`POST /api/v1/blobs/insert/{user_id}`

## Path parameters

- `user_id` union, required — The ID of the user to insert the blob for
  - string, uuid4
  - string, uuid5

## Query parameters

- `wait_process` boolean — Whether to wait for the blob to be processed

## Request body

- BlobData
  - `blob_type` 'chat' | 'summary' | 'doc' | 'image' | 'code' | 'transcript', required
  - `blob_data` object, required
  - `fields` object, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Response `200`

Successful Response

- BlobInsertResponse
  - `data` BlobInsertData
    - `id` union, required — The UUID identifier
      - string, uuid4
      - string, uuid5
    - `chat_results` ChatModalResponse[], nullable — List of chat modal data
      - `event_id` union, required — The event's unique identifier
        - string, uuid4
        - string, uuid5
      - `add_profiles` union[], nullable, required — List of added profiles' ids
        - union
          - string, uuid4
          - string, uuid5
      - `update_profiles` union[], nullable, required — List of updated profiles' ids
        - union
          - string, uuid4
          - string, uuid5
      - `delete_profiles` union[], nullable, required — List of deleted profiles' ids
        - union
          - string, uuid4
          - string, uuid5
  - `errno` 0 | 400 | 401 | 403 | 404 | 405 | 409 | 422 | 500 | 501 | 502 | 503 | 504 | 520
  - `errmsg` string — Error message, empty when success

## Other responses

- `422` — Validation Error

## Changes

- **2025-09-01** `c5d39efe16d8` — 2 info
  - for the `path` request parameter `user_id`, the type/format was generalized from `string`/`` to ``/``
  - added the new `summary` enum value to the request property `blob_type`
- **2025-06-12** `dae3db10675c` — 1 info
  - added the new optional `query` request parameter `wait_process`
- **2025-04-17** `ff75f1135b23` — 1 warning, 2 info
  - added the new `520.00` enum value to the `errno` response property for the response status `200`
  - added `#/components/schemas/BlobInsertData` to the `data` response property `anyOf` list for the response status `200`
  - removed `#/components/schemas/IdData` from the `data` response property `anyOf` list for the response status `200`
- **2025-01-15** `a9bfbdf3d53b` — 1 breaking, 1 warning, 4 info
  - removed the enum value `summary` of the request property `blob_type`
  - deleted the `query` request parameter `wait_process`
  - for the `path` request parameter `user_id`, the type/format was generalized from ``/`` to `string`/``
  - added `#/components/schemas/IdData` to the `data` response property `anyOf` list for the response status `200`
  - …2 more

[Change history](https://skmtc.dev/memodb-io/apis/memobase-api/changes/api/v1/blobs/insert/:user_id/post.md)

---

[API](https://skmtc.dev/memodb-io/apis/memobase-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/memobase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/memobase-api/revisions/4543f130c8e0/schema)
