--- title: REST API endpoints for code scanning shortTitle: Code scanning allowTitleToDifferFromFilename: true intro: >- Use the REST API to retrieve and update {% data variables.product.prodname_code_scanning %} alerts from a repository. versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖 fpt: '*' ghec: '*' ghes: '*' topics: - API - Code scanning - REST redirect_from: - /rest/reference/code-scanning autogenerated: rest --- ## About code scanning You can retrieve and update {% data variables.product.prodname_code_scanning %} alerts from a repository. You can use the endpoints to create automated reports for the {% data variables.product.prodname_code_scanning %} alerts in an organization or upload analysis results generated using offline {% data variables.product.prodname_code_scanning %} tools. For more information, see [AUTOTITLE](/code-security/code-scanning).