---
title: "List gitspaces for account"
method: GET
path: "/accounts/{accountIdentifier}gitspaces"
tags: ["gitspaces"]
---

# List gitspaces for account

`GET /accounts/{accountIdentifier}gitspaces`

## Path parameters

- `accountIdentifier` string, required

## Response `200`

OK

- OpenapiGetGitspaceResponse[]
  - `access_key` string
  - `access_type` 'JWT_TOKEN' | 'PASSWORD'
  - `code_server_password` string
  - `config` TypesGitspaceConfigResponse
    - `branch` string
    - `code_repo_id` string
    - `code_repo_type` 'GITHUB' | 'GITLAB' | 'HARNESS_CODE' | 'BITBUCKET' | 'UNKNOWN'
    - `code_repo_url` string
    - `created` integer
    - `devcontainer_path` string
    - `id` string
    - `ide` 'VSCODE' | 'VSCODEWEB'
    - `infra_provider_resource_id` string
    - `metadata` object, nullable
    - `name` string
    - `prebuild_repo_id` string
    - `scope` string
    - `status_code` string
    - `updated` integer
    - `user_id` string
  - `created` integer
  - `id` string
  - `last_used` integer
  - `machine_user` string
  - `resource_usage` string
  - `ssh_key` string
  - `status` 'RUNNING' | 'STOPPED' | 'UNKNOWN' | 'ERROR'
  - `total_time_used` integer
  - `tracked_changes` string
  - `url` string

## Changes

- **2024-05-29** `e133a34ecf0b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/harness/apis/api-specification/changes/accounts/:accountIdentifiergitspaces/get.md)

---

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