---
title: "Add repository to watch"
method: POST
path: "/repositories"
tags: ["Repository Credentials"]
---

# Add repository to watch

`POST /repositories`

## Query parameters

- `repository` string, required
- `autosubscribe` boolean
- `dryrun` boolean

## Headers

- `x-anchore-account` string

## Response `200`

Repository and discovered tags added

- Subscription[] — List of subscriptions
  - `subscription_key` string — The key value that the subscription references. E.g. a tag value or a repo name.
  - `subscription_type` string — The type of the subscription
  - `subscription_value` string, nullable — The value of the subscription target
  - `userId` string — The userId of the subscribed user
  - `active` boolean — Is the subscription currently active
  - `subscription_id` string — the unique id for this subscription record

## Changes

- **2026-07-17** `38e5705e0b21` — 1 warning, 6 info
  - deleted the `query` request parameter `lookuptag`
  - added the new optional `query` request parameter `dryrun`
  - removed the `analysis_update` enum value from the `items/subscription_type` response property for the response status `200`
  - removed the `policy_eval` enum value from the `items/subscription_type` response property for the response status `200`
  - …3 more
- **2019-10-02** `75f483ab10a0` — 6 warning, 1 info
  - deleted the `query` request parameter `dryrun`
  - added the new `analysis_update` enum value to the `items/subscription_type` response property for the response status `200`
  - added the new `policy_eval` enum value to the `items/subscription_type` response property for the response status `200`
  - added the new `repo_update` enum value to the `items/subscription_type` response property for the response status `200`
  - …3 more

[Change history](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server/changes/repositories/post.md)

---

[API](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server.md) · [All operations](https://skmtc.dev/banzaicloud/apis/anchore-engine-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/banzaicloud/anchore-engine-api-server/revisions/38e5705e0b21/schema)
