List Spaces

Find the numeric Space ID to use in document and search requests.

{
    "title": "List Spaces",
    "description": "",
    "method": "GET",
    "baseUrl": "https://app.docuwriter.ai",
    "endpoint": "/api/spaces",
    "headers": [
        {
            "key": "Authorization",
            "value": "Bearer YOUR_API_TOKEN",
            "type": "string",
            "required": true
        },
        {
            "key": "Accept",
            "value": "application/json",
            "type": "string",
            "required": true
        }
    ],
    "queryParams": [],
    "pathParams": [],
    "bodyType": "none",
    "requestBody": "",
    "formData": [],
    "rawBody": "",
    "responses": {
        "200": {
            "description": "HTTP 200: success: true, data array. Each item contains id, name, is_public, created_at, items_count. Results are newest first. items_count includes Space menu items, so it is not necessarily the number of content pages. Illustrative JSON example; sample values are fictional. Some optional or additional resource fields may be omitted.",
            "body": "{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 123,\n      \"name\": \"Payments\",\n      \"is_public\": false,\n      \"created_at\": \"2026-09-28T10:00:00.000000Z\",\n      \"items_count\": 3\n    }\n  ]\n}"
        },
        "401": {
            "description": "Missing or invalid account API token.Missing or invalid account API token. Example JSON response.",
            "body": "{\n  \"message\": \"Unauthenticated.\"\n}"
        }
    }
}

Request notes

  • No pagination or filters are defined for this endpoint.

Usage notes

  • Returns Spaces through the authenticated account relationship.
  • Do not use a slug or document UUID as {space}.
  • Continue with List documents.

API authentication.

Updated