create_sdk_connection
Generate an SDK connection for GrowthBook to fetch features and experiments. Specify the SDK language, environment, and name to create a client key.
Instructions
Create an SDK connection for a user. Returns an SDK clientKey that can be used to fetch features and experiments.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
environment | No | The environment associated with the SDK connection. | |
language | Yes | The language of the SDK. Either 'javascript' or 'typescript'. | |
name | Yes | Name of the SDK connection in GrowthBook. Should reflect the current project. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"environment": {
"description": "The environment associated with the SDK connection.",
"type": "string"
},
"language": {
"description": "The language of the SDK. Either 'javascript' or 'typescript'.",
"enum": [
"nocode-webflow",
"nocode-wordpress",
"nocode-shopify",
"nocode-other",
"javascript",
"nodejs",
"react",
"php",
"ruby",
"python",
"go",
"java",
"csharp",
"android",
"ios",
"flutter",
"elixir",
"edge-cloudflare",
"edge-fastly",
"edge-lambda",
"edge-other",
"other"
],
"type": "string"
},
"name": {
"description": "Name of the SDK connection in GrowthBook. Should reflect the current project.",
"type": "string"
}
},
"required": [
"name",
"language"
],
"type": "object"
}