Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-codeguru-reviewer:amazon-codeguru-reviewer-codereviews-api"
All apis
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.
Get an API 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.1.0
info:
title: Amazon CodeGuru Reviewer Codereviews API
version: '2019-09-19'
description: Generated from AWS's published Smithy model for Amazon CodeGuru Reviewer. 4 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://codeguru-reviewer.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/codereviews:
post:
operationId: CreateCodeReview
summary: Create Code Review
description: Use to create a code review with a CodeReviewType of RepositoryAnalysis. This type of code review analyzes
all code under a specified branch in an associated repository. PullRequest code reviews are automatically triggered
by a pull request.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCodeReviewResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
requestBody:
content:
application/json:
schema:
type: object
properties:
Name:
type: string
description: The name of the code review. The name of each code review in your Amazon Web Services account
must be unique.
RepositoryAssociationArn:
type: string
description: The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN
by calling ListRepositoryAssociations. A code review can only be created on an associated repository.
This is the ARN of the associated repository.
Type:
$ref: '#/components/schemas/CodeReviewType'
ClientRequestToken:
type: string
description: Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code
reviews if there are failures and retries.
required:
- Name
- RepositoryAssociationArn
- Type
tags:
- Codereviews
get:
operationId: ListCodeReviews
summary: List Code Reviews
description: Lists all the code reviews that the customer has created in the past 90 days.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListCodeReviewsResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: ProviderTypes
in: query
schema:
type: array
items:
type: string
enum:
- CodeCommit
- GitHub
- Bitbucket
- GitHubEnterpriseServer
- S3Bucket
description: List of provider types for filtering that needs to be applied before displaying the result. For example,
providerTypes=[GitHub] lists code reviews from GitHub.
- name: States
in: query
schema:
type: array
items:
type: string
enum:
- Completed
- Pending
- Failed
- Deleting
description: 'List of states for filtering that needs to be applied before displaying the result. For example, states=[Pending]
lists code reviews in the Pending state. The valid code review states are: Completed: The code review is complete.
Pending: The code review started and has not completed or failed. Failed: The code review failed. Deleting: The
code review is being deleted.'
- name: RepositoryNames
in: query
schema:
type: array
items:
type: string
description: List of repository names for filtering that needs to be applied before displaying the result.
- name: Type
in: query
required: true
schema:
type: string
enum:
- PullRequest
- RepositoryAnalysis
description: The type of code reviews to list in the response.
- name: MaxResults
in: query
schema:
type: integer
description: The maximum number of results that are returned per call. The default is 100.
- name: NextToken
in: query
schema:
type: string
description: If nextToken is returned, there are more results available. The value of nextToken is a unique pagination
token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments
unchanged.
tags:
- Codereviews
/codereviews/{CodeReviewArn}:
get:
operationId: DescribeCodeReview
summary: Describe Code Review
description: Returns the metadata associated with the code review along with its status.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DescribeCodeReviewResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: CodeReviewArn
in: path
required: true
schema:
type: string
description: The Amazon Resource Name (ARN) of the CodeReview object.
tags:
- Codereviews
/codereviews/{CodeReviewArn}/Recommendations:
get:
operationId: ListRecommendations
summary: List Recommendations
description: Returns the list of all recommendations for a completed code review.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListRecommendationsResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: NextToken
in: query
schema:
type: string
description: Pagination token.
- name: MaxResults
in: query
schema:
type: integer
description: The maximum number of results that are returned per call. The default is 100.
- name: CodeReviewArn
in: path
required: true
schema:
type: string
description: The Amazon Resource Name (ARN) of the CodeReview object.
tags:
- Codereviews
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: codeguru-reviewer
schemas:
AccessDeniedException:
type: object
properties:
Message:
type: string
BranchDiffSourceCodeType:
type: object
properties:
SourceBranchName:
type: string
description: The source branch for a diff in an associated repository.
DestinationBranchName:
type: string
description: The destination branch for a diff in an associated repository.
required:
- SourceBranchName
- DestinationBranchName
CodeArtifacts:
type: object
properties:
SourceCodeArtifactsObjectKey:
type: string
description: The S3 object key for a source code .zip file. This is required for all code reviews.
BuildArtifactsObjectKey:
type: string
description: The S3 object key for a build artifacts .zip file that contains .jar or .class files. This is required
for a code review with security analysis. For more information, see Create code reviews with GitHub Actions in
the Amazon CodeGuru Reviewer User Guide.
required:
- SourceCodeArtifactsObjectKey
CodeReview:
type: object
properties:
Name:
type: string
description: The name of the code review.
CodeReviewArn:
type: string
description: The Amazon Resource Name (ARN) of the CodeReview object.
RepositoryName:
type: string
description: The name of the repository.
Owner:
type: string
description: The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web
Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket
repository, this is the username for the account that owns the repository. For an S3 repository, it can be the
username or Amazon Web Services account ID.
ProviderType:
type: string
enum:
- CodeCommit
- GitHub
- Bitbucket
- GitHubEnterpriseServer
- S3Bucket
description: The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).
State:
type: string
enum:
- Completed
- Pending
- Failed
- Deleting
description: 'The valid code review states are: Completed: The code review is complete. Pending: The code review
started and has not completed or failed. Failed: The code review failed. Deleting: The code review is being deleted.'
StateReason:
type: string
description: The reason for the state of the code review.
CreatedTimeStamp:
type: string
format: date-time
description: The time, in milliseconds since the epoch, when the code review was created.
LastUpdatedTimeStamp:
type: string
format: date-time
description: The time, in milliseconds since the epoch, when the code review was last updated.
Type:
type: string
enum:
- PullRequest
- RepositoryAnalysis
description: The type of code review.
PullRequestId:
type: string
description: The pull request ID for the code review.
SourceCodeType:
$ref: '#/components/schemas/SourceCodeType'
AssociationArn:
type: string
description: The Amazon Resource Name (ARN) of the RepositoryAssociation that contains the reviewed source code.
You can retrieve associated repository ARNs by calling ListRepositoryAssociations.
Metrics:
$ref: '#/components/schemas/Metrics'
AnalysisTypes:
type: array
items:
type: string
enum:
- Security
- CodeQuality
description: The types of analysis performed during a repository analysis or a pull request review. You can specify
either Security, CodeQuality, or both.
ConfigFileState:
type: string
enum:
- Present
- Absent
- PresentWithErrors
description: The state of the aws-codeguru-reviewer.yml configuration file that allows the configuration of the
CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists with errors at the root directory
of your repository.
CodeReviewSummary:
type: object
properties:
Name:
type: string
description: The name of the code review.
CodeReviewArn:
type: string
description: The Amazon Resource Name (ARN) of the CodeReview object.
RepositoryName:
type: string
description: The name of the repository.
Owner:
type: string
description: The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web
Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket
repository, this is the username for the account that owns the repository. For an S3 repository, it can be the
username or Amazon Web Services account ID.
ProviderType:
type: string
enum:
- CodeCommit
- GitHub
- Bitbucket
- GitHubEnterpriseServer
- S3Bucket
description: The provider type of the repository association.
State:
type: string
enum:
- Completed
- Pending
- Failed
- Deleting
description: 'The state of the code review. The valid code review states are: Completed: The code review is complete.
Pending: The code review started and has not completed or failed. Failed: The code review failed. Deleting: The
code review is being deleted.'
CreatedTimeStamp:
type: string
format: date-time
description: The time, in milliseconds since the epoch, when the code review was created.
LastUpdatedTimeStamp:
type: string
format: date-time
description: The time, in milliseconds since the epoch, when the code review was last updated.
Type:
type: string
enum:
- PullRequest
- RepositoryAnalysis
description: The type of the code review.
PullRequestId:
type: string
description: The pull request ID for the code review.
MetricsSummary:
$ref: '#/components/schemas/MetricsSummary'
SourceCodeType:
$ref: '#/components/schemas/SourceCodeType'
CodeReviewType:
type: object
properties:
RepositoryAnalysis:
$ref: '#/components/schemas/RepositoryAnalysis'
AnalysisTypes:
type: array
items:
type: string
enum:
- Security
- CodeQuality
description: They types of analysis performed during a repository analysis or a pull request review. You can specify
either Security, CodeQuality, or both.
required:
- RepositoryAnalysis
CommitDiffSourceCodeType:
type: object
properties:
SourceCommit:
type: string
description: The SHA of the source commit used to generate a commit diff. This field is required for a pull request
code review.
DestinationCommit:
type: string
description: The SHA of the destination commit used to generate a commit diff. This field is required for a pull
request code review.
MergeBaseCommit:
type: string
description: The SHA of the merge base of a commit.
ConflictException:
type: object
properties:
Message:
type: string
CreateCodeReviewResponse:
type: object
properties:
CodeReview:
$ref: '#/components/schemas/CodeReview'
DescribeCodeReviewResponse:
type: object
properties:
CodeReview:
$ref: '#/components/schemas/CodeReview'
EventInfo:
type: object
properties:
Name:
type: string
description: The name of the event. The possible names are pull_request, workflow_dispatch, schedule, and push
State:
type: string
description: The state of an event. The state might be open, closed, or another state.
InternalServerException:
type: object
properties:
Message:
type: string
ListCodeReviewsResponse:
type: object
properties:
CodeReviewSummaries:
type: array
items:
$ref: '#/components/schemas/CodeReviewSummary'
description: A list of code reviews that meet the criteria of the request.
NextToken:
type: string
description: Pagination token.
ListRecommendationsResponse:
type: object
properties:
RecommendationSummaries:
type: array
items:
$ref: '#/components/schemas/RecommendationSummary'
description: List of recommendations for the requested code review.
NextToken:
type: string
description: Pagination token.
Metrics:
type: object
properties:
MeteredLinesOfCodeCount:
type: integer
description: MeteredLinesOfCodeCount is the number of lines of code in the repository where the code review happened.
This does not include non-code lines such as comments and blank lines.
SuppressedLinesOfCodeCount:
type: integer
description: SuppressedLinesOfCodeCount is the number of lines of code in the repository where the code review happened
that CodeGuru Reviewer did not analyze. The lines suppressed in the analysis is based on the excludeFiles variable
in the aws-codeguru-reviewer.yml file. This number does not include non-code lines such as comments and blank
lines.
FindingsCount:
type: integer
description: Total number of recommendations found in the code review.
MetricsSummary:
type: object
properties:
MeteredLinesOfCodeCount:
type: integer
description: Lines of code metered in the code review. For the initial code review pull request and all subsequent
revisions, this includes all lines of code in the files added to the pull request. In subsequent revisions, for
files that already existed in the pull request, this includes only the changed lines of code. In both cases, this
does not include non-code lines such as comments and import statements. For example, if you submit a pull request
containing 5 files, each with 500 lines of code, and in a subsequent revision you added a new file with 200 lines
of code, and also modified a total of 25 lin
SuppressedLinesOfCodeCount:
type: integer
description: Lines of code suppressed in the code review based on the excludeFiles element in the aws-codeguru-reviewer.yml
file. For full repository analyses, this number includes all lines of code in the files that are suppressed. For
pull requests, this number only includes the changed lines of code that are suppressed. In both cases, this number
does not include non-code lines such as comments and import statements. For example, if you initiate a full repository
analysis on a repository containing 5 files, each file with 100 lines of code, and 2 files are listed as excluded
in the aws-codeguru-reviewer
FindingsCount:
type: integer
description: Total number of recommendations found in the code review.
RecommendationSummary:
type: object
properties:
FilePath:
type: string
description: Name of the file on which a recommendation is provided.
RecommendationId:
type: string
description: The recommendation ID that can be used to track the provided recommendations. Later on it can be used
to collect the feedback.
StartLine:
type: integer
description: Start line from where the recommendation is applicable in the source commit or source branch.
EndLine:
type: integer
description: Last line where the recommendation is applicable in the source commit or source branch. For a single
line comment the start line and end line values are the same.
Description:
type: string
description: A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the
start line and the end line.
RecommendationCategory:
type: string
enum:
- AWSBestPractices
- AWSCloudFormationIssues
- DuplicateCode
- CodeMaintenanceIssues
- ConcurrencyIssues
- InputValidations
- PythonBestPractices
- JavaBestPractices
- ResourceLeaks
- SecurityIssues
- CodeInconsistencies
description: The type of a recommendation.
RuleMetadata:
$ref: '#/components/schemas/RuleMetadata'
Severity:
type: string
enum:
- Info
- Low
- Medium
- High
- Critical
description: The severity of the issue in the code that generated this recommendation.
RepositoryAnalysis:
type: object
properties:
RepositoryHead:
$ref: '#/components/schemas/RepositoryHeadSourceCodeType'
SourceCodeType:
$ref: '#/components/schemas/SourceCodeType'
RepositoryHeadSourceCodeType:
type: object
properties:
BranchName:
type: string
description: The name of the branch in an associated repository. The RepositoryHeadSourceCodeType specifies the
tip of this branch.
required:
- BranchName
RequestMetadata:
type: object
properties:
RequestId:
type: string
description: The ID of the request. This is required for a pull request code review.
Requester:
type: string
description: An identifier, such as a name or account ID, that is associated with the requester. The Requester is
used to capture the author/actor name of the event request.
EventInfo:
$ref: '#/components/schemas/EventInfo'
VendorName:
type: string
enum:
- GitHub
- GitLab
- NativeS3
description: The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review. For
example, if code and artifacts are uploaded to an S3 bucket for a CI/CD code review by GitHub scripts from a GitHub
repository, then the repository association's ProviderType is S3Bucket and the CI/CD repository vendor name is
GitHub. For more information, see the definition for ProviderType in RepositoryAssociation.
ResourceNotFoundException:
type: object
properties:
Message:
type: string
RuleMetadata:
type: object
properties:
RuleId:
type: string
description: The ID of the rule.
RuleName:
type: string
description: The name of the rule.
ShortDescription:
type: string
description: A short description of the rule.
LongDescription:
type: string
description: A long description of the rule.
RuleTags:
type: array
items:
type: string
description: Tags that are associated with the rule.
S3BucketRepository:
type: object
properties:
Name:
type: string
description: The name of the repository when the ProviderType is S3Bucket.
Details:
$ref: '#/components/schemas/S3RepositoryDetails'
required:
- Name
S3RepositoryDetails:
type: object
properties:
BucketName:
type: string
description: The name of the S3 bucket used for associating a new S3 repository. It must begin with codeguru-reviewer-.
CodeArtifacts:
$ref: '#/components/schemas/CodeArtifacts'
SourceCodeType:
type: object
properties:
CommitDiff:
$ref: '#/components/schemas/CommitDiffSourceCodeType'
RepositoryHead:
$ref: '#/components/schemas/RepositoryHeadSourceCodeType'
BranchDiff:
$ref: '#/components/schemas/BranchDiffSourceCodeType'
S3BucketRepository:
$ref: '#/components/schemas/S3BucketRepository'
RequestMetadata:
$ref: '#/components/schemas/RequestMetadata'
ThrottlingException:
type: object
properties:
Message:
type: string
ValidationException:
type: object
properties:
Message:
type: string
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/codeguru-reviewer/service/2019-09-19/codeguru-reviewer-2019-09-19.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)