# Get Project

`GET /v1/projects/{project_id}`

One workspace: its name, description, whether it is the default, its
icon, and the caller's role there.

Anyone who can read the workspace may, as in the dashboard's workspace
settings. A workspace-restricted key reads only its own workspaces; any
other is 404, as is a workspace of another account.

- Base URL: `https://api.qualia.dev`
- Authentication: an API key in the `X-API-Key` header, or `Authorization: Bearer …`

## Parameters

- `project_id` (path, string (uuid), required)

## Responses

- `200` The workspace and the caller's role there: `application/json` `ProjectItem`
- `401` Invalid or missing API key: `application/json` `ErrorResponse`
- `404` Project not found: `application/json` `ErrorResponse`
- `422` Validation Error: `application/json` `HTTPValidationError`

## Schemas

```yaml
ProjectItem:
  properties:
    project_id:
      type: string
      format: uuid
    name:
      type: string
    description:
      type:
        - string
        - "null"
    created_at:
      type: string
      format: date-time
    updated_at:
      type: string
      format: date-time
    is_default:
      type: boolean
      description: The organization's default workspace; it cannot be deleted
      default: false
    icon:
      description: Its icon, a name from the dashboard's set; null for none
      type:
        - string
        - "null"
    my_role:
      description: The caller's role there (for an API key, its creator's; the key's scopes cap what it may do with it); null when it could not be read
      nullable: true
      type: string
      enum:
        - viewer
        - contributor
        - admin
        - owner
  type: object
  required:
    - project_id
    - name
    - created_at
    - updated_at
  title: ProjectItem
  description: A workspace (a project), as the dashboard's workspace pages show it.
ErrorResponse:
  properties:
    detail:
      type: string
      description: Error message describing what went wrong
  type: object
  required:
    - detail
  title: ErrorResponse
  description: Standard error response.
HTTPValidationError:
  properties:
    detail:
      items:
        $ref: "#/components/schemas/ValidationError"
      type: array
  type: object
  title: HTTPValidationError
ValidationError:
  properties:
    loc:
      items:
        type:
          - string
          - integer
      type: array
      title: Location
    msg:
      type: string
      title: Message
    type:
      type: string
      title: Error Type
    input: {}
    ctx:
      type: object
      title: Context
  type: object
  required:
    - loc
    - msg
    - type
  title: ValidationError
```
