Amazon CodeArtifact Domain API

The Domain API from Amazon CodeArtifact — 3 operation(s) for domain.

GitHub OpenAPI

Operations 7

POST /v1/domain Create Domain #
DELETE /v1/domain Delete Domain #
GET /v1/domain Describe Domain #
DELETE /v1/domain/permissions/policy Delete Domain Permissions Policy #
GET /v1/domain/permissions/policy Get Domain Permissions Policy #
PUT /v1/domain/permissions/policy Put Domain Permissions Policy #
POST /v1/domain/repositories List Repositories In Domain #

Work with this as data

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-codeartifact:amazon-codeartifact-domain-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 Specification

amazon-codeartifact-domain-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: CodeArtifact Domain API
  version: '2018-09-22'
  description: Generated from AWS's published Smithy model for CodeArtifact. 7 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://codeartifact.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /v1/domain:
    post:
      operationId: CreateDomain
      summary: Create Domain
      description: Creates a domain. CodeArtifact domains make it easier to manage multiple repositories across an organization.
        You can use a domain to apply permissions across many repositories owned by different Amazon Web Services accounts.
        An asset is stored only once in a domain, even if it's in multiple repositories. Although you can have multiple domains,
        we recommend a single production domain that contains all published artifacts so that your development teams can find
        and share packages. You can use a second pre-production domain to test changes to the production domain configuration.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateDomainResult'
        '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'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: domain
        in: query
        required: true
        schema:
          type: string
        description: The name of the domain to create. All domain names in an Amazon Web Services Region that are in the same
          Amazon Web Services account must be unique. The domain name is used as the prefix in DNS hostnames. Do not use sensitive
          information in a domain name because it is publicly discoverable.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                encryptionKey:
                  type: string
                  description: The encryption key for the domain. This is used to encrypt content stored in a domain. An encryption
                    key can be a key ID, a key Amazon Resource Name (ARN), a key alias, or a key alias ARN. To specify an
                    encryptionKey, your IAM role must have kms:DescribeKey and kms:CreateGrant permissions on the encryption
                    key that is used. For more information, see DescribeKey in the Key Management Service API Reference and
                    Key Management Service API Permissions Reference in the Key Management Service Developer Guide. CodeArtifact
                    supports only symmetric CMKs. Do not associate an asymmetric CMK with your doma
                tags:
                  type: array
                  items:
                    $ref: '#/components/schemas/Tag'
                  description: One or more tag key-value pairs for the domain.
      tags:
      - Domain
    delete:
      operationId: DeleteDomain
      summary: Delete Domain
      description: Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain
        with repositories, first delete its repositories.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteDomainResult'
        '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'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: domain
        in: query
        required: true
        schema:
          type: string
        description: The name of the domain to delete.
      - name: domain-owner
        in: query
        schema:
          type: string
        description: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
          dashes or spaces.
      tags:
      - Domain
    get:
      operationId: DescribeDomain
      summary: Describe Domain
      description: Returns a DomainDescription object that contains information about the requested domain.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeDomainResult'
        '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: domain
        in: query
        required: true
        schema:
          type: string
        description: A string that specifies the name of the requested domain.
      - name: domain-owner
        in: query
        schema:
          type: string
        description: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
          dashes or spaces.
      tags:
      - Domain
  /v1/domain/permissions/policy:
    delete:
      operationId: DeleteDomainPermissionsPolicy
      summary: Delete Domain Permissions Policy
      description: Deletes the resource policy set on a domain.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteDomainPermissionsPolicyResult'
        '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'
      parameters:
      - name: domain
        in: query
        required: true
        schema:
          type: string
        description: The name of the domain associated with the resource policy to be deleted.
      - name: domain-owner
        in: query
        schema:
          type: string
        description: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
          dashes or spaces.
      - name: policy-revision
        in: query
        schema:
          type: string
        description: The current revision of the resource policy to be deleted. This revision is used for optimistic locking,
          which prevents others from overwriting your changes to the domain's resource policy.
      tags:
      - Domain
    get:
      operationId: GetDomainPermissionsPolicy
      summary: Get Domain Permissions Policy
      description: Returns the resource policy attached to the specified domain. The policy is a resource-based policy, not
        an identity-based policy. For more information, see Identity-based policies and resource-based policies in the IAM
        User Guide.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDomainPermissionsPolicyResult'
        '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: domain
        in: query
        required: true
        schema:
          type: string
        description: The name of the domain to which the resource policy is attached.
      - name: domain-owner
        in: query
        schema:
          type: string
        description: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
          dashes or spaces.
      tags:
      - Domain
    put:
      operationId: PutDomainPermissionsPolicy
      summary: Put Domain Permissions Policy
      description: Sets a resource policy on a domain that specifies permissions to access it. When you call PutDomainPermissionsPolicy,
        the resource policy on the domain is ignored when evaluting permissions. This ensures that the owner of a domain cannot
        lock themselves out of the domain, which would prevent them from being able to update the resource policy.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutDomainPermissionsPolicyResult'
        '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'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '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:
                domain:
                  type: string
                  description: The name of the domain on which to set the resource policy.
                domainOwner:
                  type: string
                  description: The 12-digit account number of the Amazon Web Services account that owns the domain. It does
                    not include dashes or spaces.
                policyRevision:
                  type: string
                  description: The current revision of the resource policy to be set. This revision is used for optimistic
                    locking, which prevents others from overwriting your changes to the domain's resource policy.
                policyDocument:
                  type: string
                  description: A valid displayable JSON Aspen policy string to be set as the access control resource policy
                    on the provided domain.
              required:
              - domain
              - policyDocument
      tags:
      - Domain
  /v1/domain/repositories:
    post:
      operationId: ListRepositoriesInDomain
      summary: List Repositories In Domain
      description: Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository
        in the specified domain and that matches the input parameters.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRepositoriesInDomainResult'
        '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: domain
        in: query
        required: true
        schema:
          type: string
        description: The name of the domain that contains the returned list of repositories.
      - name: domain-owner
        in: query
        schema:
          type: string
        description: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
          dashes or spaces.
      - name: administrator-account
        in: query
        schema:
          type: string
        description: Filter the list of repositories to only include those that are managed by the Amazon Web Services account
          ID.
      - name: repository-prefix
        in: query
        schema:
          type: string
        description: A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix
          are returned.
      - name: max-results
        in: query
        schema:
          type: integer
        description: The maximum number of results to return per page.
      - name: next-token
        in: query
        schema:
          type: string
        description: The token for the next set of results. Use the value returned in the previous response in the next request
          to retrieve the next set of results.
      tags:
      - Domain
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: codeartifact
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ConflictException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: The ID of the resource.
        resourceType:
          type: string
          enum:
          - domain
          - repository
          - package
          - package-version
          - asset
          description: The type of Amazon Web Services resource.
      required:
      - message
    CreateDomainResult:
      type: object
      properties:
        domain:
          $ref: '#/components/schemas/DomainDescription'
    DeleteDomainPermissionsPolicyResult:
      type: object
      properties:
        policy:
          $ref: '#/components/schemas/ResourcePolicy'
    DeleteDomainResult:
      type: object
      properties:
        domain:
          $ref: '#/components/schemas/DomainDescription'
    DescribeDomainResult:
      type: object
      properties:
        domain:
          $ref: '#/components/schemas/DomainDescription'
    DomainDescription:
      type: object
      properties:
        name:
          type: string
          description: The name of the domain.
        owner:
          type: string
          description: The Amazon Web Services account ID that owns the domain.
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the domain.
        status:
          type: string
          enum:
          - Active
          - Deleted
          description: The current status of a domain.
        createdTime:
          type: string
          format: date-time
          description: A timestamp that represents the date and time the domain was created.
        encryptionKey:
          type: string
          description: The ARN of an Key Management Service (KMS) key associated with a domain.
        repositoryCount:
          type: integer
          description: The number of repositories in the domain.
        assetSizeBytes:
          type: integer
          description: The total size of all assets in the domain.
        s3BucketArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the
            domain.
    GetDomainPermissionsPolicyResult:
      type: object
      properties:
        policy:
          $ref: '#/components/schemas/ResourcePolicy'
    InternalServerException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ListRepositoriesInDomainResult:
      type: object
      properties:
        repositories:
          type: array
          items:
            $ref: '#/components/schemas/RepositorySummary'
          description: The returned list of repositories.
        nextToken:
          type: string
          description: If there are additional results, this is the token for the next set of results.
    PutDomainPermissionsPolicyResult:
      type: object
      properties:
        policy:
          $ref: '#/components/schemas/ResourcePolicy'
    RepositorySummary:
      type: object
      properties:
        name:
          type: string
          description: The name of the repository.
        administratorAccount:
          type: string
          description: The Amazon Web Services account ID that manages the repository.
        domainName:
          type: string
          description: The name of the domain that contains the repository.
        domainOwner:
          type: string
          description: The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
            dashes or spaces.
        arn:
          type: string
          description: The ARN of the repository.
        description:
          type: string
          description: The description of the repository.
        createdTime:
          type: string
          format: date-time
          description: A timestamp that represents the date and time the repository was created.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: The ID of the resource.
        resourceType:
          type: string
          enum:
          - domain
          - repository
          - package
          - package-version
          - asset
          description: The type of Amazon Web Services resource.
      required:
      - message
    ResourcePolicy:
      type: object
      properties:
        resourceArn:
          type: string
          description: The ARN of the resource associated with the resource policy
        revision:
          type: string
          description: The current revision of the resource policy.
        document:
          type: string
          description: The resource policy formatted in JSON.
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: The ID of the resource.
        resourceType:
          type: string
          enum:
          - domain
          - repository
          - package
          - package-version
          - asset
          description: The type of Amazon Web Services resource.
      required:
      - message
    Tag:
      type: object
      properties:
        key:
          type: string
          description: The tag key.
        value:
          type: string
          description: The tag value.
      required:
      - key
      - value
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: The time period, in seconds, to wait before retrying the request.
      required:
      - message
    ValidationException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          enum:
          - CANNOT_PARSE
          - ENCRYPTION_KEY_ERROR
          - FIELD_VALIDATION_FAILED
          - UNKNOWN_OPERATION
          - OTHER
      required:
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/codeartifact/service/2018-09-22/codeartifact-2018-09-22.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)