---
title: "Add source to Query Bank"
method: POST
path: "/api/v1/external/query-bank/sources"
tags: ["Query Bank"]
---

# Add source to Query Bank

`POST /api/v1/external/query-bank/sources`

## Request

- Base URL: `https://api.wove.com`
- URL: `https://api.wove.com/api/v1/external/query-bank/sources`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/wove/apis/wove-external-api/docs/api/v1/external/query-bank/sources/post.ts> (a function with typed inputs; its response is checked against the schema)

Links a processed source to your Query Bank, making its rates available for querying.

**Requirements**:
- Source must exist and belong to your organization
- Source must have status "complete"
- Source cannot already be in the Query Bank

## Request body

- AddSourceToQueryBankRequest
  - `sourceId` string, required: The source ID to add to Query Bank

## Response `201`

Source added to Query Bank successfully

- object
  - `success` boolean
  - `data` AddSourceToQueryBankResponse
    - `sourceId` string, required
    - `linkedAt` string, date-time, required

## Other responses

- `400`: Source not eligible (not complete, already in Query Bank)
- `404`: Source not found

---

[API](https://skmtc.dev/wove/apis/wove-external-api.md) - [All operations](https://skmtc.dev/wove/apis/wove-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wove/apis/wove-external-api/revisions/37290e267e07?raw)
