---
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

---

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