The Extension Object
The extension
object (which is called app
due to legacy reasons) contains the setting information of one of your Extension. To access this setting information, use the OAuth token provided through the extension or the personal access token. With the OAuth token, your extension can send a request to retrieve the setting information to the app_provisions
endpoint.
You can find more information on how to get your OAuth token on our OAuth 2.0 Authorization Flow documentation. We mentioned an important endpoint, app_provisions
and you can check examples in this section of our documentation.
To generate a personal access token, you can do that from My Account → Account Settings → Personal access token.
Properties
-
id
numberNumeric ID of the Extension
-
name
stringName of the Extension
-
slug
stringThe slug specific to this Extension
-
icon
stringIcon image path of the Extension from the Extension Details
-
plan_level
numberPlan Level of Space
-
preview_video
stringDefine the video URL in the extension configured on the Extension Details in the settings
-
app_url
stringExtension URL
-
description
stringA description of your extension
-
intro
stringA short description of your extension
-
screenshot
stringA screenshot image path of your extension
-
status
stringStatus of the extension
-
website
stringWebsite URL of your extension
-
author
stringAuthor of the extension
-
updated_at
stringLatest update date (Format:
yyyy-MM-dd'T'HH:mm:ssZ
) -
field_type_ids
number[]An array of field type ids
-
embedded_app_url
stringAn embedded Space app or Tool Plugin URL
-
dev_embedded_app_url
stringA developer mode of embedded Space Plugin or Tool Plugin URL
-
dev_oauth_redirect_uri
stringA developer mode of OAuth Space Plugin or Tool Plugin URI
-
in_sidebar
booleanA status in the sidebar if your plugin is a space app
-
in_toolbar
booleanA status in the toolbar if your plugin is tool plugin
-
sidebar_icon
stringYour space app sidebar icon image path
-
oauth_redirect_uri
stringOAuth Space Plugin or Tool Plugin URI
-
enable_space_settings
booleanA status to show whether your extension is enabled for space level settings or not
{
"app": {
"id": 12345,
"name": "My first plugin",
"slug": "my-first-plugin",
"icon": "//a.storyblok.com/app-assets/1/833729bae2/my_plugin.png",
"plan_level": null,
"preview_video": "https://this-is-a-video.com",
"app_url": null,
"description": "This is my plugin description.",
"intro": "This is a short description.",
"screenshot": "//a.storyblok.com/app-assets/1/a8295d3fe0/screenshot.jpg",
"status": "created",
"website": "https://this-is-a-website.com",
"author": "Arisa Fukuzaki",
"updated_at": "2024-04-10T12:08:48.617Z",
"field_type_ids": [],
"embedded_app_url": null,
"dev_embedded_app_url": null,
"dev_oauth_redirect_uri": null,
"in_sidebar": true,
"in_toolbar": false,
"sidebar_icon": null,
"enable_space_settings": true
},
"granted": false
}