---
title: "POST Add Datasource To An App"
description: "Add a source to an existing app. app_id: The ID of the app. Use \"default\" for the default app. source: The source to add. data_type: The data type of the source. Remove it if you want Embedchain to..."
last_updated: "2026-05-07T04:47:25.76994+00:00"
canonical_url: "https://www.doc0.dev/docs/faa36707-7c28-4f69-a18f-700ff61c704e/api/apps/add-datasource-to-an-app-app-id-add-post"
---

<APIEndpoint
  method={"POST"}
  path={"/{app_id}/add"}
  summary={"Add Datasource To An App"}
  description={"Add a source to an existing app. app_id: The ID of the app. Use \"default\" for the default app. source: The source to add. data_type: The data type of the source. Remove it if you want Embedchain to detect it automatically."}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"app_id","in":"path","required":true,"description":"App Id","schema":{"type":"string"}}]} />

## Request Body

The source and optional data type to add.

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

## Responses

<APIResponse
  statusCode={"200"}
  description={"Successful Response"}
  contentType={"application/json"}
  schema={{"type":"object","properties":{}}}
/>

<APIResponse
  statusCode={"400"}
  description={"Bad Request"}
  contentType={"application/json"}
  schema={{"type":"object","properties":{}}}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/{app_id}/add"}
  parameters={[{"name":"app_id","in":"path","required":true,"description":"App Id","schema":{"type":"string"}}]}
  requestBody={{"contentType":"application/json","required":true,"description":"The source and optional data type to add.","schema":{"type":"object","properties":{}}}}
  baseUrl={""}
/>


## Sitemap

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