---
title: "REST API: Get Child Spaces"
type: "wiki"
space: "Axero Documentation"
author: "Anonymous User"
created: 2015-03-31T13:11:45Z
updated: 2026-09-28T01:13:10Z
tags: ["API"]
url: "https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/4771/rest-api-get-child-spaces"
---

# REST API: Get Child Spaces

[Open API Guide](https://my.axerosolutions.com/spaces/5/axero-documentation/api-guide?id=4771)
GET/api/spaces/child

List the child spaces one level below a space. A site administrator can narrow them to one user's spaces with UserID; anyone else gets only the child spaces they belong to.

## Request

### Request Header
| Header | Required | Value | Description |
| :--- | :--- | :--- | :--- |
| `Authorization` | YES | `Bearer YOUR_TOKEN` | Bearer token for the authenticated user. [Learn how to create Bearer tokens](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/108973/creating-bearer-tokens). |
### Required Parameters
| Parameter | Type | Required | Location | Description |
| :--- | :--- | :--- | :--- | :--- |
| `ParentSpaceID` | Integer | YES | Query | ID of the parent space whose child spaces are returned. 0 returns the top-level spaces. |
| `UserID` | Integer | YES | Query | ID of the user whose child spaces are returned. Send an empty value for no user filter; the parameter itself must be present. Only a site administrator's value is used: for anyone else, the caller's own ID replaces it. A value that is not a number counts as empty, and a comma-separated list answers 500. |
| `FromCache` | Boolean | YES | Query | Required by the route but has no effect: the results always come from the database. Send true or false; any other value answers 400. |
## Example

### Request Header

```
Authorization: Bearer YOUR_TOKEN
```

### Request URL

`https://your-site.com/api/spaces/child?parentSpaceID=1&userID=376&fromCache=false`

### Success Response

```
{
  "IsError": false,
  "ResponseMessage": "",
  "ResponseData": [
    {
      "SpaceID": 252,
      "ParentSpaceID": 208,
      "IsFeatured": false,
      "Stub": null,
      "LandingPage": null,
      "TotalMembers": 10,
      "CreatedBy": 1,
      "UserID": 376,
      "SpaceName": "Fish",
      "Author": null,
      "Description": "A fish is any member of a paraphyletic group of organisms that consist of all gill-bearing aquatic craniate animals that lack limbs with digits.",
      "UserName": "jhon",
      "UserFirstName": "John",
      "UserLastName": "Smith",
      "UserEmail": "SampleEmail@your-site.com",
      "StatusID": 1,
      "MembershipType": 0,
      "SpaceVisibility": 1,
      "DateCreated": "2026-01-01T12:00:00Z",
      "WorkFlowID": 0,
      "CurrentWorkFlowStepID": 0,
      "IsArticleWorkflowActive": false,
      "IsBlogWorkflowActive": false,
      "IsEventWorkflowActive": false,
      "IsForumWorkflowActive": false,
      "IsWikiWorkflowActive": false,
      "IsFileWorkflowActive": false,
      "IsPhotoWorkFlowActive": false,
      "IsVideoWorkFlowActive": false,
      "EnableForums": false,
      "EnableSurveys": false,
      "EnablePhotos": false,
      "EnableTaskManager": false,
      "EnableFiles": false,
      "EnableWiki": false,
      "EnableEvents": false,
      "EnableArticles": false,
      "EnableBlogs": false,
      "EnableVideos": false,
      "EnableIssueTracker": false,
      "EnableFileControl": false,
      "GroupPictureFileName": null,
      "SpaceIconFileName": null,
      "SpaceIconURL": null,
      "MediaServerID": 0,
      "SpaceMediaServerRootURL": null,
      "UserMediaServerRootURL": null,
      "SpaceURL": null,
      "UpdatedByUserID": 0,
      "InvitationExpiryInDays": 0,
      "DisableWallEmailNotifications": false,
      "AutoSubscribeEmail": false,
      "Image": null,
      "SpaceImageURL": null,
      "IsArticleCommentWorkflowActive": false,
      "IsBlogEntryCommentWorkflowActive": false,
      "IsEventCommentWorkflowActive": false,
      "IsForumPostWorkflowActive": false,
      "IsPhotoCommentWorkflowActive": false,
      "IsVideoCommentWorkflowActive": false,
      "IsWikiCommentWorkflowActive": false,
      "IsFileCommentWorkflowActive": false,
      "IsIdeaCommentWorkflowActive": false,
      "SpaceHeaderImageFileName": null,
      "EnableUpcomingBirthdaysControl": false,
      "EnableContentReadConfirmation": false
    }
  ]
}
```

### Error Response

```
{
  "Message": "The request is invalid."
}
```

## Error Handling

| Status Code | Likely Cause | Next Action |
| :--- | :--- | :--- |
| 400 Bad Request | ParentSpaceID or FromCache is missing or not valid, or UserID is left out of the query string. | Check the request against the required parameters. |
| 401 Unauthorized | Missing or invalid Bearer token. | Check token validity. [Learn how to create Bearer tokens →](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/108973/creating-bearer-tokens) |
| 403 Forbidden | The caller is not a site administrator and cannot view the parent space or one of the spaces above it. | Confirm the user has the required roles for this action. |
| 500 Server Error | UserID is a comma-separated list, or another internal failure. | Retry later. |

## Rate Limits

While Axero does not enforce hard rate limits by default, we recommend the following best practices to ensure optimal performance:

- **Sustained Request Rate:** Do not exceed 5 API calls per second
- **Sequential Processing:** Wait for each request to complete before sending the next in automated workflows
- **Concurrent Connections:** If parallel processing is required, limit to 3 or fewer simultaneous requests
- **Response Timeout:** Ensure API responses complete within 15 seconds during testing

Axero may implement temporary rate restrictions if excessive API usage affects overall site performance. For high-volume integrations, contact Axero to discuss your requirements.
