---
title: "POST /v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories"
method: POST
path: "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories"
---

# POST /v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories

`POST /v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories`

Retrieves a list of source repositories in a project.

## Path parameters

- `spaceName` string, required
- `projectName` string, required

## Request body

- object
  - `nextToken` string — A token returned from a call to this API to indicate the next batch of results to return, if any.
  - `maxResults` integer — The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a <code>NextToken</code> element, which you can use to obtain additional results.

## Response `200`

Success

- ListSourceRepositoriesResponse
  - `items` ListSourceRepositoriesItem[] — Information about the source repositories.
    - `id` string, required — The system-generated unique ID of the source repository.
    - `name` string, required — The name of the source repository.
    - `description` string — The description of the repository, if any.
    - `lastUpdatedTime` string, date-time, required — The time the source repository was last updated, in coordinated universal time (UTC) timestamp format as specified in <a href="https://www.rfc-editor.org/rfc/rfc3339#section-5.6">RFC 3339</a>.
    - `createdTime` string, date-time, required — The time the source repository was created, in coordinated universal time (UTC) timestamp format as specified in <a href="https://www.rfc-editor.org/rfc/rfc3339#section-5.6">RFC 3339</a>.
  - `nextToken` string — A token returned from a call to this API to indicate the next batch of results to return, if any.

## Other responses

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

---

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