---
title: "POST /codesecurity/integration/create"
method: POST
path: "/codesecurity/integration/create"
---

# POST /codesecurity/integration/create

`POST /codesecurity/integration/create`

Creates a code security integration with a source code repository provider.

After calling the `CreateCodeSecurityIntegration` operation, you complete authentication and authorization with your provider. Next you call the `UpdateCodeSecurityIntegration` operation to provide the `details` to complete the integration setup

## Request body

- object
  - `name` string, required — The name of the code security integration.
  - `type` 'GITLAB_SELF_MANAGED' | 'GITHUB', required — The type of repository provider for the integration.
  - `details` object — Contains details required to create a code security integration with a specific repository provider.
    - `gitlabSelfManaged` object — Details specific to creating an integration with a self-managed GitLab instance.
      - `instanceUrl` string, password, required — The URL of the self-managed GitLab instance.
      - `accessToken` string, password, required — The personal access token used to authenticate with the self-managed GitLab instance.
  - `tags` object — The tags to apply to the code security integration.

## Response `200`

Success

- CreateCodeSecurityIntegrationResponse
  - `integrationArn` string, required — The Amazon Resource Name (ARN) of the created code security integration.
  - `status` 'PENDING' | 'IN_PROGRESS' | 'ACTIVE' | 'INACTIVE' | 'DISABLING', required — The current status of the code security integration.
  - `authorizationUrl` string, password — The URL used to authorize the integration with the repository provider.

## Other responses

- `480` — ServiceQuotaExceededException
- `481` — ConflictException
- `482` — AccessDeniedException
- `483` — ValidationException
- `484` — ThrottlingException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/inspector2.md) · [All operations](https://skmtc.net/aws/apis/inspector2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/inspector2/versions/c51110c7cd43/schema)
