---
title: "Add content to database"
method: POST
path: "/add"
tags: ["Database"]
---

# Add content to database

`POST /add`

Manually insert screen or audio content into the database.

## Request body

- AddContentRequest
  - `device_name` string, required
  - `content` AddContentData, required
    - `content_type` string, required
    - `data` union, required
      - object[]
        - `file_path` string, required
        - `timestamp` string, date-time, nullable, required
        - `app_name` string, nullable, required
        - `window_name` string, nullable, required
        - `ocr_results` OCRResult[], nullable, required
          - `text` string, required
          - `text_json` string, nullable, required
          - `ocr_engine` string, nullable, required
          - `focused` boolean, nullable, required
        - `tags` string[], nullable, required
      - object
        - `transcription` string, required
        - `transcription_engine` string, required

## Response `200`

OK

- AddContentResponse
  - `success` boolean, required
  - `message` string, nullable, required

## Changes

> 10 revisions in range; 3 could not be searched.

- **2026-04-09** `0f0f8030c7e2` — 1 info
  - api tag `Database` added
- **2026-04-08** `1a63468a8d30` — 1 breaking, 4 info
  - removed `subschema #1` from the `content/data` request property `oneOf` list
  - api operation id `server_add_to_database` removed and replaced with `routes_content_add_to_database`
  - api tag `Content Management` removed
  - added `subschema #1` to the `content/data` request property `oneOf` list
  - …1 more
- **2026-02-16** `e143bf8d73bc` — 2 breaking, 2 info
  - removed `subschema #1` from the `content/data` request property `oneOf` list
  - the response property `message` became optional for the status `200`
  - api tag `Content Management` added
  - added `subschema #1` to the `content/data` request property `oneOf` list
- **2026-02-11** `2825740bcf63` — 1 breaking, 3 warning, 1 info
  - added the new required request property `content/data/oneOf[subschema #1]/items/ocr_results/items/confidence`
  - removed the request property `content/data/oneOf[subschema #1]/items/ocr_results/items/focused`
  - removed the request property `content/data/oneOf[subschema #1]/items/ocr_results/items/ocr_engine`
  - removed the request property `content/data/oneOf[subschema #1]/items/ocr_results/items/text_json`
  - …1 more

[Change history](https://skmtc.dev/screenpipe/apis/screenpipe-api/changes/add/post.md)

---

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