ConfigDirector Scanned repositories API
The Scanned repositories API from ConfigDirector — 2 operation(s) for scanned repositories.
The Scanned repositories API from ConfigDirector — 2 operation(s) for scanned repositories.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/configdirector-com:configdirector-com-scanned-repositories-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Configdirector Com Scanned repositories API
version: 1.0.0
description: 'Operations tagged Scanned repositories across 2 of this provider''s published API definitions: configdirector-com-admin-api-openapi.json, configdirector-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.configdirector.com/v1
security:
- bearerAuth: []
tags:
- name: Scanned repositories
paths:
/projects/{projectId}/repositories:
get:
operationId: getProjectsByProjectIdRepositories
tags:
- Scanned repositories
summary: List scanned repositories
responses:
'200':
description: The project's scanned repositories by name, each with its latest scan's remote URL, commit, time and files scanned, the count of direct and indirect references, and the count of dynamic references.
content:
application/json:
schema:
type: array
items:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 200
remoteUrl:
type: string
commit:
type: string
scannedAt:
type: string
filesScanned:
type: integer
minimum: 0
referenceCount:
type: integer
minimum: 0
dynamicReferenceCount:
type: integer
minimum: 0
snippetsStored:
type: boolean
required:
- name
- remoteUrl
- commit
- scannedAt
- filesScanned
- referenceCount
- dynamicReferenceCount
- snippetsStored
'403':
description: 'The API token is missing the `code-references:read` permission, or the request was not authenticated. The body says which: `code` is one of `AUTHORIZATION_HEADER_MISSING`, `AUTHORIZATION_HEADER_INVALID`, `API_TOKEN_NOT_FOUND`, `API_TOKEN_EXPIRED`, `API_TOKEN_OWNER_REMOVED`, `INSUFFICIENT_PERMISSIONS`.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
enum:
- AUTHORIZATION_HEADER_MISSING
- AUTHORIZATION_HEADER_INVALID
- API_TOKEN_NOT_FOUND
- API_TOKEN_EXPIRED
- API_TOKEN_OWNER_REMOVED
- INSUFFICIENT_PERMISSIONS
type: string
required:
- error
- code
'404':
description: No project with the given ID exists in the organization.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
enum:
- PROJECT_NOT_FOUND
type: string
required:
- error
- code
parameters:
- schema:
type: string
in: path
name: projectId
required: true
servers:
- url: https://api.configdirector.com/v1
/projects/{projectId}/repositories/{repositoryName}:
put:
operationId: putProjectsByProjectIdRepositoriesByRepositoryName
tags:
- Scanned repositories
summary: Upload a repository scan
description: Stores the code references `configdirector scan` found in the repository, replacing every reference the repository uploaded before. The first upload of a name creates the scanned repository. A project holds at most 50 scanned repositories, and a scan uploads at most 10,000 references, dynamic references included. A direct or indirect reference may carry a `snippet`, the code around it; when the project's Code snippets setting is off, the upload succeeds and is stored without snippets. The body may be up to 32 MB.
parameters:
- in: path
name: repositoryName
schema:
type: string
minLength: 1
maxLength: 200
required: true
- schema:
type: string
in: path
name: projectId
required: true
responses:
'200':
description: The scanned repository with its reference counts.
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 200
remoteUrl:
type: string
commit:
type: string
scannedAt:
type: string
filesScanned:
type: integer
minimum: 0
referenceCount:
type: integer
minimum: 0
dynamicReferenceCount:
type: integer
minimum: 0
snippetsStored:
type: boolean
required:
- name
- remoteUrl
- commit
- scannedAt
- filesScanned
- referenceCount
- dynamicReferenceCount
- snippetsStored
'400':
description: The body failed validation or exceeds a bound, which `errors` names, or the project already has 50 scanned repositories, reported as `code` `REPOSITORY_LIMIT_REACHED`.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
const: REPOSITORY_LIMIT_REACHED
required:
- error
- code
'403':
description: 'The API token is missing the `code-references:update` permission, or the request was not authenticated. The body says which: `code` is one of `AUTHORIZATION_HEADER_MISSING`, `AUTHORIZATION_HEADER_INVALID`, `API_TOKEN_NOT_FOUND`, `API_TOKEN_EXPIRED`, `API_TOKEN_OWNER_REMOVED`, `INSUFFICIENT_PERMISSIONS`.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
enum:
- AUTHORIZATION_HEADER_MISSING
- AUTHORIZATION_HEADER_INVALID
- API_TOKEN_NOT_FOUND
- API_TOKEN_EXPIRED
- API_TOKEN_OWNER_REMOVED
- INSUFFICIENT_PERMISSIONS
type: string
required:
- error
- code
'404':
description: The scanned repository the scan replaces was removed during the upload, or no project with the given ID exists in the organization. `code` says which.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
enum:
- SCANNED_REPOSITORY_NOT_FOUND
- PROJECT_NOT_FOUND
type: string
required:
- error
- code
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
remoteUrl:
type: string
maxLength: 2000
commit:
type: string
maxLength: 64
filesScanned:
type: integer
minimum: 0
references:
type: array
items:
oneOf:
- type: object
properties:
kind:
const: direct
key:
type: string
minLength: 1
maxLength: 150
file:
type: string
minLength: 1
maxLength: 1000
line:
type: integer
minimum: 1
sdk:
type: string
minLength: 1
maxLength: 100
call:
type: string
minLength: 1
maxLength: 200
argument:
type: string
maxLength: 1000
default:
oneOf:
- type: object
properties:
type:
const: boolean
value:
type: boolean
required:
- type
- value
- type: object
properties:
type:
const: integer
value:
type: integer
required:
- type
- value
- type: object
properties:
type:
const: float
value:
type: number
required:
- type
- value
- type: object
properties:
type:
enum:
- string
- json
type: string
value:
type: string
required:
- type
- value
getterType:
enum:
- boolean
- string
- integer
- float
- number
- json
type: string
test:
type: boolean
snippet:
type: object
properties:
firstLine:
type: integer
minimum: 1
lines:
type: array
items:
type: string
maxLength: 250
minItems: 1
maxItems: 11
language:
enum:
- typescript
- tsx
- javascript
- jsx
- vue
- svelte
- dart
- swift
- kotlin
- java
- python
- csharp
- go
- ruby
- php
- rust
- scala
- groovy
- objective-c
- c
- cpp
- elixir
type: string
truncatedLines:
type: array
items:
type: integer
minimum: 1
required:
- firstLine
- lines
- language
- truncatedLines
required:
- kind
- key
- file
- line
- sdk
- call
- test
- type: object
properties:
kind:
const: indirect
key:
type: string
minLength: 1
maxLength: 150
file:
type: string
minLength: 1
maxLength: 1000
line:
type: integer
minimum: 1
test:
type: boolean
snippet:
type: object
properties:
firstLine:
type: integer
minimum: 1
lines:
type: array
items:
type: string
maxLength: 250
minItems: 1
maxItems: 11
language:
enum:
- typescript
- tsx
- javascript
- jsx
- vue
- svelte
- dart
- swift
- kotlin
- java
- python
- csharp
- go
- ruby
- php
- rust
- scala
- groovy
- objective-c
- c
- cpp
- elixir
type: string
truncatedLines:
type: array
items:
type: integer
minimum: 1
required:
- firstLine
- lines
- language
- truncatedLines
required:
- kind
- key
- file
- line
- test
dynamicReferences:
type: array
items:
type: object
properties:
file:
type: string
minLength: 1
maxLength: 1000
line:
type: integer
minimum: 1
sdk:
type: string
minLength: 1
maxLength: 100
call:
type: string
minLength: 1
maxLength: 200
argument:
type: string
maxLength: 1000
required:
- file
- line
- sdk
- call
- argument
required:
- remoteUrl
- commit
- filesScanned
- references
- dynamicReferences
delete:
operationId: deleteProjectsByProjectIdRepositoriesByRepositoryName
tags:
- Scanned repositories
summary: Remove a scanned repository
description: Deletes the scanned repository and every code reference it uploaded, so its references no longer keep the project's configs in code.
parameters:
- in: path
name: repositoryName
schema:
type: string
minLength: 1
maxLength: 200
required: true
- schema:
type: string
in: path
name: projectId
required: true
responses:
'204':
description: The scanned repository and its code references were deleted.
'403':
description: 'The API token is missing the `code-references:update` permission, or the request was not authenticated. The body says which: `code` is one of `AUTHORIZATION_HEADER_MISSING`, `AUTHORIZATION_HEADER_INVALID`, `API_TOKEN_NOT_FOUND`, `API_TOKEN_EXPIRED`, `API_TOKEN_OWNER_REMOVED`, `INSUFFICIENT_PERMISSIONS`.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
enum:
- AUTHORIZATION_HEADER_MISSING
- AUTHORIZATION_HEADER_INVALID
- API_TOKEN_NOT_FOUND
- API_TOKEN_EXPIRED
- API_TOKEN_OWNER_REMOVED
- INSUFFICIENT_PERMISSIONS
type: string
required:
- error
- code
'404':
description: No scanned repository with the given name exists in the project, or no project with the given ID exists in the organization. `code` says which.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
enum:
- SCANNED_REPOSITORY_NOT_FOUND
- PROJECT_NOT_FOUND
type: string
required:
- error
- code
servers:
- url: https://api.configdirector.com/v1
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
x-refined-from:
- configdirector-com-admin-api-openapi.json
- configdirector-com-openapi.yml