---
title: "GET /projects/{id}/"
method: GET
path: "/projects/{id}/"
tags: ["projects"]
---

# GET /projects/{id}/

`GET /projects/{id}/`

Get a project by id

## Path parameters

- `id` integer, required

## Response `200`

Return a project by id.

- ProjectRead — Serializer for reading the Project with embedded objects.
  - `name` string, required
  - `description` string
  - `credential` CredentialRef — Serializer for Credential reference.
    - `id` integer, required
    - `name` string, required
    - `description` string
    - `credential_type` 'Container Registry' | 'GitHub Personal Access Token' | 'GitLab Personal Access Token' — * `Container Registry` - Container Registry * `GitHub Personal Access Token` - GitHub Personal Access Token * `GitLab Personal Access Token` - GitLab Personal Access Token
    - `username` string, nullable
  - `id` integer, required
  - `url` string, required
  - `git_hash` string, required
  - `import_state` 'pending' | 'running' | 'failed' | 'completed', required — * `pending` - Pending * `running` - Running * `failed` - Failed * `completed` - Completed
  - `import_error` string, nullable, required
  - `import_task_id` string, uuid, nullable, required
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required

## Changes

- **2023-05-19** `f84d9240fdf2` — 2 info
  - the endpoint scheme security `cookieAuth` was removed from the API
  - added the optional property `credential` to the response with the `200` status
- **2023-04-25** `62d33b790834` — 3 breaking, 5 warning, 3 info
  - removed the required property `organization` from the response with the `200` status
  - removed the required property `proxy` from the response with the `200` status
  - removed the required property `scm_type` from the response with the `200` status
  - removed the optional property `eda_credential` from the response with the `200` status
  - …7 more

[Change history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/projects/:id/get.md)

---

[API](https://skmtc.dev/ansible/apis/event-driven-ansible-api.md) · [All operations](https://skmtc.dev/ansible/apis/event-driven-ansible-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ansible/event-driven-ansible-api/revisions/f84d9240fdf2/schema)
