GET
/
api
/
v2
/
organizations
/
{organizationId}
/
workspaces
curl --request GET \
  --url https://app.infisical.com/api/v2/organizations/{organizationId}/workspaces \
  --header 'Authorization: Bearer <token>'
{
  "workspaces": [
    {
      "id": "<string>",
      "name": "<string>",
      "organization": "<string>",
      "environments": [
        {
          "name": "<string>",
          "slug": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

An access token in Infisical

Path Parameters

organizationId
string
required

The ID of the organization to get projects from.

Response

200 - application/json
Default Response
workspaces
object[]
required