# DevArmor Repositories API

**Canonical:** https://apis.io/apis/devarmor/devarmor-repositories-api/  
**Provider:** DevArmor — https://apis.io/providers/devarmor/  
**Base URL:** https://secrev.api.devarmor.com  
**Documentation:** https://docs.devarmor.com/getting-started/api-access

DevArmor Repositories API is one of 46 APIs that [DevArmor](https://apis.io/providers/devarmor/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. Tagged areas include repositories. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

The repositories API from DevArmor — 12 operation(s) for repositories.

## Operations (22)

| Method | Path | Summary |
|---|---|---|
| GET | `/projects/{project_id}/repo/sections/{section_id}` | Get a section of a repository by ID |
| PUT | `/projects/{project_id}/repo/sections/{section_id}` | Update a section of a repository |
| DELETE | `/projects/{project_id}/repo/sections/{section_id}` | Delete a section of a repository |
| GET | `/projects/{project_id}/repo/sections/{repo_address}` | List sections of a repository |
| POST | `/projects/{project_id}/repo/sections/{repo_address}` | Create a section in a repository |
| DELETE | `/projects/{project_id}/threat-models/{threat_model_id}/versions/{version}/repo/sections/{section_id}` | Detach a section of a repository from a threat model version |
| GET | `/projects/{project_id}/threat-models/{threat_model_id}/versions/{version}/repo/sections/{repo_address}` | List sections of a repository attached to a threat model version |
| POST | `/projects/{project_id}/threat-models/{threat_model_id}/versions/{version}/repo/sections/{repo_address}` | Attach a section of a repository to a threat model version |
| GET | `/projects/{project_id}/repos` | List repositories in a project |
| POST | `/projects/{project_id}/repos` | Create a new repository in a project |
| GET | `/available-repos` | List available repositories from integrations (e.g. GitHub) |
| GET | `/available-repos/contents/{repo_addr}` | Get contents of an available repository from integrations (e.g Github) |
| GET | `/available-repos/{repo_addr}` | Get an available repository from integrations (e.g. GitHub, GitLab) |
| GET | `/projects/{project_id}/available-repos` | List available repositories from integrations (e.g. |
| GET | `/projects/{project_id}/repo/{repo_address}` | Get a repository from a project |
| PUT | `/projects/{project_id}/repo/{repo_address}` | Update a repository in a project |
| DELETE | `/projects/{project_id}/repo/{repo_address}` | Delete a repository from a project |
| GET | `/projects/{project_id}/threat-models/{threat_model_id}/versions/{version}/repos` | List repositories in a threat model version |
| POST | `/projects/{project_id}/threat-models/{threat_model_id}/versions/{version}/repos` | Create a new repository in a threat model version |
| GET | `/projects/{project_id}/threat-models/{threat_model_id}/versions/{version}/repo/{repo_address}` | Get a repository from a threat model version |
| PUT | `/projects/{project_id}/threat-models/{threat_model_id}/versions/{version}/repo/{repo_address}` | Update a repository in a threat model version |
| DELETE | `/projects/{project_id}/threat-models/{threat_model_id}/versions/{version}/repo/{repo_address}` | Delete a repository from a threat model version |

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/devarmor/openapi/devarmor-repositories-api-openapi.yml
- **JSONSchema** — https://artifacts.apis.io/devarmor/json-schema/devarmor-task-schema.json
- **JSONSchema** — https://artifacts.apis.io/devarmor/json-schema/devarmor-policy-schema.json
- **JSONSchema** — https://artifacts.apis.io/devarmor/json-schema/devarmor-control-schema.json
- **JSONSchema** — https://artifacts.apis.io/devarmor/json-schema/devarmor-threat-schema.json
- **JSONSchema** — https://artifacts.apis.io/devarmor/json-schema/devarmor-trust-boundary-schema.json
- **JSONSchema** — https://artifacts.apis.io/devarmor/json-schema/devarmor-rule-schema.json

## Other DevArmor APIs (12)

- [DevArmor Abuse Cases API](https://apis.io/apis/devarmor/devarmor-abuse-cases-api/)
- [DevArmor Actors API](https://apis.io/apis/devarmor/devarmor-actors-api/)
- [DevArmor API Tokens API](https://apis.io/apis/devarmor/devarmor-api-tokens-api/)
- [DevArmor Assets API](https://apis.io/apis/devarmor/devarmor-assets-api/)
- [DevArmor Blobs API](https://apis.io/apis/devarmor/devarmor-blobs-api/)
- [DevArmor Builds API](https://apis.io/apis/devarmor/devarmor-builds-api/)
- [DevArmor Components API](https://apis.io/apis/devarmor/devarmor-components-api/)
- [DevArmor Controls API](https://apis.io/apis/devarmor/devarmor-controls-api/)
- [DevArmor Data Flows API](https://apis.io/apis/devarmor/devarmor-data-flows-api/)
- [DevArmor Data Set Placements API](https://apis.io/apis/devarmor/devarmor-data-set-placements-api/)
- [DevArmor Data Sets API](https://apis.io/apis/devarmor/devarmor-data-sets-api/)
- [DevArmor Data Stores API](https://apis.io/apis/devarmor/devarmor-data-stores-api/)

## Tags

repositories

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/devarmor/devarmor-repositories-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/devarmor/.
