Skip to main content
When you build a custom connector, you can embed step-by-step setup guides directly in the connector YAML configuration. These guides are exposed through the StackOne API’s /actions endpoint and can be rendered in your own documentation, dashboards, or integration hubs.

Overview

Connector documentation consists of two types of guides:

Account Link Guides

For end-users - Instructions to connect their account via Integration Hub. Covers finding credentials like API keys, domains, and OAuth authorization.

Auth Setup Guides

For application setup - Instructions to register OAuth applications and obtain client credentials before users can connect.
Where guides go:
  • Account link guides → authentication[].{method}.support.guides.config
  • Auth setup guides → authentication[].{method}.support.guides.setup

Guide Structure in YAML

Guides are added to the authentication block in your connector YAML configuration.

Basic Example

When to Use Each Guide Type

Only include guides.config if configFields exists. Only include guides.setup if setupFields exists.
Critical: Set support.link to the URL where you’ll render these guides in your own documentation or dashboard. The Integration Hub uses this link to direct users to your rendered guides. If not set, the Hub will link to StackOne’s generic documentation instead of your custom instructions.
The support.link should point to where you host the rendered version of these guides, ensuring users see your branded, customized setup instructions.

Section Structure

Each guide contains an array of sections with steps.

Section Properties

Content Formatting

The content and list fields contain plain strings. To render markdown formatting, use a markdown parser in your rendering code. Common patterns include:
  • Links: [Provider Dashboard](https://example.com/dashboard) → Parse with markdown renderer to create clickable links
  • Bold: **Settings** for UI elements → Parse to render as <strong>Settings</strong>
  • Code: `https://api.example.com` → Parse to render as <code>https://api.example.com</code>
The API returns raw strings with markdown syntax. You’re responsible for parsing and rendering them. Use libraries like react-markdown, marked, or similar, and always sanitize HTML output with tools like DOMPurify to prevent XSS attacks.

Scope Definitions

Preview Feature: Scope definitions and scope-aware guides are under active development. The structure and behavior may change. Currently used primarily for OAuth scopes, but designed to support any action requirements (pricing tiers, platform configuration, feature flags, etc.).
Define action requirements in scopeDefinitions at the connector root level. While commonly used for OAuth/API scopes, these can represent any prerequisite needed to enable an action.

Basic Scopes

Scopes aren’t limited to API permissions. Use them to represent pricing tiers (plan:enterprise), platform features (feature:advanced_reporting), or configuration requirements (config:sso_enabled).

Hierarchical Scopes

Rules:
  • Write scopes typically include read scopes via includes
  • Broader scopes include narrower scopes
  • Only include relationships explicitly documented by provider
  • Read-only scopes should NOT include write scopes

Scope-Aware Guide Content

Guide sections can be filtered based on selected scopes or requirements, showing only relevant instructions for the user’s configuration.

Basic Scope Filtering

Displaying Actions Enabled by Requirements

Use displayScopes: true to show which actions a step enables:
When rendered, this shows badges indicating which actions are enabled by these requirements (scopes, features, etc.).

Complete Examples

API Key Authentication

OAuth 2.0 with Setup Guide


Retrieving Guides via API

Once your connector is deployed, guides are available through the /actions API endpoint.

API Request

Response Structure

Query Parameters


Rendering Guides in Your System

You can render the guides however you choose. Here’s a basic approach using TypeScript and React:

1. Fetch and Parse

2. Render Content

Use a proper Markdown parser (like react-markdown or marked) with HTML sanitization (like DOMPurify) instead of regex replacements. The example below is simplified for demonstration and should not be used in production without proper sanitization.

3. Handle Requirement Filtering


Validation

After adding guides to your connector YAML, validate the configuration:
If you see a warning about Unknown field 'guides', update your CLI to the latest version with npm install -g @stackone/cli@latest. The guides field is fully supported at runtime.

Testing Your Guides

1. Deploy Connector

2. Fetch from API

3. Verify Response

Check that:
  • authentication[].support.guides.config exists if configFields exist
  • authentication[].support.guides.setup exists if setupFields exist
  • All sections have title and content or steps
  • Links are properly formatted
  • Requirement filters (applicableScopes) match your scopeDefinitions if used

Migration from Hub Docs

If you have existing guides in separate documentation, you can migrate them to the connector YAML.

MDX to YAML Mapping

Example Migration

From MDX:
To YAML:

Next Steps

Build Your Connector

Create the connector YAML configuration

Connector Structure

Learn about authentication patterns and actions

YAML Reference

Complete reference for all YAML properties

CLI Reference

Deploy and test connectors with the CLI