---
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

- TypesGitspaceConfig[]
  - `ai_agents` EnumAIAgent[]
  - `branch` string
  - `branch_url` string
  - `code_repo_is_private` boolean
  - `code_repo_ref` string, nullable
  - `code_repo_type` 'github' | 'gitlab' | 'harness_code' | 'bitbucket' | 'unknown' | 'gitness' | 'gitlab_on_prem' | 'bitbucket_server' | 'github_enterprise'
  - `code_repo_url` string
  - `created` integer
  - `devcontainer_path` string, nullable
  - `ide` 'vs_code' | 'vs_code_web' | 'cursor' | 'windsurf' | 'intellij' | 'pycharm' | 'goland' | 'webstorm' | 'clion' | 'phpstorm' | 'rubymine' | 'rider'
  - `identifier` string
  - `initialize_log_key` string
  - `instance` TypesGitspaceInstance, nullable
    - `access_key` string, nullable
    - `access_key_ref` string, nullable
    - `access_type` 'jwt_token' | 'user_credentials' | 'ssh_key'
    - `active_time_ended` integer, nullable
    - `active_time_started` integer, nullable
    - `created` integer
    - `error_message` string, nullable
    - `has_git_changes` boolean, nullable
    - `identifier` string
    - `last_heartbeat` integer, nullable
    - `last_used` integer, nullable
    - `machine_user` string, nullable
    - `plugin_url` string, nullable
    - `resource_usage` string, nullable
    - `space_path` string
    - `ssh_command` string, nullable
    - `state` 'running' | 'uninitialized' | 'unknown' | 'error' | 'deleted' | 'starting' | 'stopping' | 'cleaning' | 'cleaned' | 'resetting' | 'pending_cleanup'
    - `total_time_used` integer
    - `updated` integer
    - `url` string, nullable
  - `is_marked_for_infra_reset` boolean
  - `is_marked_for_reset` boolean
  - `log_key` string
  - `name` string
  - `resource` TypesInfraProviderResource
    - `config_identifier` string
    - `config_name` string
    - `cpu` string, nullable
    - `created` integer
    - `deleted` integer, nullable
    - `disk` string, nullable
    - `identifier` string
    - `infra_provider_type` 'docker' | 'harness_gcp' | 'harness_cloud' | 'hybrid_vm_gcp' | 'hybrid_vm_aws'
    - `is_deleted` boolean
    - `memory` string, nullable
    - `metadata` object, nullable
    - `name` string
    - `network` string, nullable
    - `region` string
    - `space_path` string
    - `updated` integer
  - `space_path` string
  - `ssh_token_identifier` string
  - `state` 'running' | 'stopped' | 'error' | 'uninitialized' | 'starting' | 'stopping' | 'cleaning'
  - `updated` integer
  - `user_display_name` string
  - `user_email` string
  - `user_id` string

## Changes

> 19 revisions in range; 1 not diffed.

- **2025-11-17** `a39dc72168fe` — 6 warning, 6 info
  - added the new `cleaning` enum value to the `items/state` response property for the response status `200`
  - added the new `cursor` enum value to the `items/ide` response property for the response status `200`
  - added the new `hybrid_vm_aws` enum value to the `items/resource/infra_provider_type` response property for the response status `200`
  - added the new `pending_cleanup` enum value to the `items/instance/state` response property for the response status `200`
  - …8 more
- **2025-05-22** `65fcfa40f8cb` — 3 warning, 1 info
  - added the new `bitbucket_server` enum value to the `items/code_repo_type` response property for the response status `200`
  - added the new `github_enterprise` enum value to the `items/code_repo_type` response property for the response status `200`
  - added the new `gitlab_on_prem` enum value to the `items/code_repo_type` response property for the response status `200`
  - added the optional property `items/initialize_log_key` to the response with the `200` status
- **2025-04-01** `754dabce6b6f` — 2 warning
  - added the new `cleaned` enum value to the `items/instance/state` response property for the response status `200`
  - added the new `cleaning` enum value to the `items/instance/state` response property for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/harness/apis/api-specification/changes/accounts/:accountIdentifier/gitspaces/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/3b3bedabcfa7/schema)
