Skip to main content
GET
/
workspace
curl -X GET "https://config.gms.ensync.cloud/v1/workspace?pageIndex=0&limit=10&order=ASC&orderBy=name" \
  -H "X-API-KEY: your-api-key"
{
  "resultsLength": 2,
  "results": [
    {
      "id": 1,
      "name": "production",
      "path": "/production",
      "parentId": 0,
      "createdAt": "2024-01-15T10:30:00Z",
      "children": []
    }
  ]
}

Query Parameters

name
string
The name of the workspace to filter
id
string
The id of the workspace to filter
pageIndex
integer
required
Page index (minimum: 0)
limit
integer
required
Number of results per page (1-100)
order
string
required
Sort order: ASC, DESC, asc, or desc
orderBy
string
required
Field to sort by: name or createdAt

Response

resultsLength
integer
Number of results returned
results
array
Array of workspace objects
curl -X GET "https://config.gms.ensync.cloud/v1/workspace?pageIndex=0&limit=10&order=ASC&orderBy=name" \
  -H "X-API-KEY: your-api-key"
{
  "resultsLength": 2,
  "results": [
    {
      "id": 1,
      "name": "production",
      "path": "/production",
      "parentId": 0,
      "createdAt": "2024-01-15T10:30:00Z",
      "children": []
    }
  ]
}