---
title: Introduction
description: Discover Storyblok's documentation with comprehensive developer guides, user manuals, API references, and examples to help you get the most out of the headless CMS platform.
url: https://storyblok.com/docs/plugins/space-plugins
---

# Introduction

Space plugins operate at the space level and outside the Visual Editor, making them ideal for embedding functionality within Storyblok that does not require direct content editing. For example, the [Broken Links Checker](https://www.storyblok.com/apps/storyblok-gmbh@broken-links-checker) to scan for broken links or a Google Analytics app to display data directly in Storyblok.

> [!NOTE]
> Space plugins are a premium feature. Learn more on the [pricing](/pricing) page.

## **Integrating with the Management API**

Server-side code can interact with the Management API by reading `accessToken` and `spaceId` from `http.IncomingMessage`:

```javascript
const { query } = req;
const sessionStore = sessionCookieStore(authHandlerParams)({ req, res });
const { accessToken, region, spaceId } = await sessionStore.get(query);
```

The `@storyblok/app-extension-auth` library automatically appends `storyId` and `spaceId` as query parameters, enabling access to `accessToken` and `region` from the session store. With these values, send Management API requests, such as:

```javascript
new StoryblokClient({
    oauthToken: `Bearer ${accessToken}`,
    region,
})
.get(`spaces/${spaceId.toString(10)}/stories`, { sort_by: 'updated_at:desc' });
```

> [!TIP]
> Take a look at our [starter projects](https://github.com/storyblok/space-tool-plugins/tree/main/space-plugins) for similar examples.

## Space-Level Settings

The **Enable settings on space levels** toggle in the **Extension details** at the Partner Portal allows configuration at the space level, available for Space plugins and Tool plugins only. Use OAuth credentials from the OAuth 2.0 API to access these settings.

Retrieve settings with the following endpoint:

```bash
curl --location '<https://mapi.storyblok.com/v1/spaces/{{space_id}>}/app_provisions/{{app_id}}' \\
 --header 'Authorization: Bearer {{oauth_token}}'
```

## Pagination

-   [Previous: Introduction](/docs/plugins/tool-plugins)
-   [Next: App Bridge for Space and Tool Plugins](/docs/plugins/app-bridge)
