# List all projects

`GET https://api.lingohub.com/v1/projects`

LingoHub API V1 · [Projects](https://developers.lingohub.com/reference/v1/operations/tags/projects.md) · operation `v1ProjectGetListOfProjects`

Retrieves a list of all projects accessible by the authenticated user. This includes projects the user owns as well as projects they collaborate on across all workspaces.

## Example request

```sh
curl --request GET \
  --url https://api.lingohub.com/v1/projects \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Responses

- `200`: Successfully returns the list of projects the authenticated user has access to.
- `401`: Unauthorized: Authentication credentials are missing or invalid.

## OpenAPI definition

The complete definition of this operation, with every schema it references:

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "LingoHub API V1",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.lingohub.com",
      "description": "Generated server url"
    }
  ],
  "tags": [
    {
      "name": "Projects",
      "description": "Endpoints for the operations that can be performed on projects of a workspace"
    }
  ],
  "paths": {
    "/v1/projects": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "List all projects",
        "description": "Retrieves a list of all projects accessible by the authenticated user. This includes projects the user owns as well as projects they collaborate on across all workspaces.",
        "operationId": "v1ProjectGetListOfProjects",
        "responses": {
          "200": {
            "description": "Successfully returns the list of projects the authenticated user has access to.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectList"
                },
                "examples": {
                  "projectList": {
                    "summary": "Two projects in a workspace",
                    "description": "projectList",
                    "value": {
                      "members": [
                        {
                          "title": " Feature Demo",
                          "links": [
                            {
                              "rel": "self",
                              "href": "https://api.lingohub.com/v1/lingohub-demo/projects/feature-demo"
                            }
                          ]
                        },
                        {
                          "title": "Storyblok Demo",
                          "links": [
                            {
                              "rel": "self",
                              "href": "https://api.lingohub.com/v1/lingohub-demo/projects/storyblok-demo"
                            }
                          ]
                        }
                      ],
                      "links": [
                        {
                          "rel": "self",
                          "href": "https://api.lingohub.com/v1/projects"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized: Authentication credentials are missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1ErrorInfo"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ProjectList": {
        "type": "object",
        "description": "A paginated list of projects within a workspace, with HATEOAS navigation links.",
        "properties": {
          "members": {
            "type": "array",
            "description": "The list of projects in the workspace.",
            "items": {
              "$ref": "#/components/schemas/ProjectListItem"
            }
          },
          "links": {
            "type": "array",
            "description": "HATEOAS links for navigating the project list (e.g. self, next, prev).",
            "items": {
              "$ref": "#/components/schemas/Link"
            }
          }
        }
      },
      "ProjectListItem": {
        "type": "object",
        "description": "Summary information for a single project in a list response.",
        "properties": {
          "title": {
            "type": "string",
            "description": "The title of the project.",
            "example": "My Mobile App"
          },
          "links": {
            "type": "array",
            "description": "HATEOAS links for the project (e.g. self link to project details).",
            "items": {
              "$ref": "#/components/schemas/Link"
            }
          }
        }
      },
      "Link": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string"
          },
          "hreflang": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "deprecation": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "templated": {
            "type": "boolean"
          }
        }
      },
      "V1ErrorInfo": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "description": "API key authentication. Create API keys in your LingoHub workspace settings. Keys use the `lh-api_` prefix. Pass the full key as the Bearer token.",
        "scheme": "bearer"
      }
    }
  }
}
````
