---
title: "POST Add data to Embedchain"
description: "Adds data from a specified URL or text with a given data type to the Embedchain app."
last_updated: "2026-05-07T04:47:27.581355+00:00"
canonical_url: "https://www.doc0.dev/docs/faa36707-7c28-4f69-a18f-700ff61c704e/api/embedchain-api-server/add-data"
---

<APIEndpoint
  method={"POST"}
  path={"/add"}
  summary={"Add data to Embedchain"}
  description={"Adds data from a specified URL or text with a given data type to the Embedchain app."}
  deprecated={false}
  baseUrl={""}
/>

## Request Body

JSON object containing 'data_type' and 'url_or_text'.

<APIRequestBody
  contentType={"application/json"}
  required={true}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Data added successfully."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"400"}
  description={"Invalid request parameters."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"500"}
  description={"Failed to add data due to an internal error."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/add"}
  parameters={[]}
  requestBody={{"contentType":"application/json","required":true,"description":"JSON object containing 'data_type' and 'url_or_text'.","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/faa36707-7c28-4f69-a18f-700ff61c704e/llms.txt) for all pages in this wiki.
