Connery Docs
WebsiteGitHubJoin Private Beta
  • Docs
  • SDK
  • Changelog
  • Get started
    • Introduction
    • Core concepts
    • Open-source plugins
  • Guides
    • Create a plugin
    • Use a plugin
  • CLI reference
    • connery dev init
    • connery dev add-action
  • Advanced
    • Plugin server
Powered by GitBook
On this page
  • Configuration
  • API_KEY
  • HOSTING_MODE
  • REST API
  • Interactive OpenAPI docs
  • OpenAPI specification

Was this helpful?

  1. Advanced

Plugin server

Previousconnery dev add-action

Last updated 5 months ago

Was this helpful?

The SDK wraps a plugin with a plugin server, a web service with a standardized REST API that allows actions to be used in the same way across all the plugins.

Once the plugin server is running, you can access it directly from your browser at .

Configuration

Plugin server configuration is done through environment variables.

During the development, you can set them in the .env file.

API_KEY

Required: Yes

Default: 123456 (set by the command)

The API key that the plugin server will use to validate incoming requests. Provide the API key in the x-api-key header of the API request to authenticate it.

For security reasons, we strongly recommend changing the default value before deploying the code to production.

HOSTING_MODE

Required: No

Default: STANDARD

Available values:

  • STANDARD - Use this mode to run the plugin server as a standalone application or in a container.

  • AWS_LAMBDA - Use this mode to run the plugin server in AWS Lambda.

The hosting mode adjusts the behavior of the plugin server to the specific environment where it is running.

REST API

The SDK generates an OpepenAPI specification for the plugin, including the interactive docs based on Swagger UI.

Interactive OpenAPI docs

OpenAPI specification

In case you need to access a raw OpenAPI specification, you can find it in the following formats:

You can access the Swagger UI at while the plugin server is running.

To interact with the API, you must authenticate the request using the .

JSON:

YAML:

localhost:4201
connery dev init
localhost:4201/api
localhost:4201/api-json
localhost:4201/api-yaml
API Key