Create a custom connector
Creates an environment-scoped custom provider (connector) with authentication patterns and optional proxy configuration. The returned identifier must be used for all subsequent update and delete operations on this provider.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Body
auth_patternsarray of objectrequiredShow 9 child attributes
display_namestringrequiredtypestring (enum)requiredNO_AUTH only for a public MCP server, with is_mcp set and no fields. The type of an existing pattern can't change.OAUTHBEARERAPI_KEYBASICNO_AUTHaccount_fieldsarray of objectOAUTH pattern, such as a value proxy_url needs. Same fields as fields.auth_field_mutationsobjectprefix, suffix or default applied to a credential before Scalekit sends it, keyed by api_key, token, username or password.auth_header_key_overridestringAuthorization, such as X-API-Key.descriptionstringfieldsarray of objectBEARER, API_KEY and BASIC. Leave it empty for OAUTH and NO_AUTH.Show 6 child attributes
field_namestringrequiredtoken for BEARER, api_key for API_KEY, username and password for BASIC, or a name such as domain that proxy_url uses as {{domain}}.hintstringinput_typestring (enum)password for secrets, so the input is masked.textpasswordselectlabelstringoptionsarray of objectselect input, each with value, display_name, description and default.requiredbooleanis_mcpbooleantrue when proxy_url is an MCP server. Set it on every pattern; it can't change later.oauth_configobjectOAUTH pattern. For an MCP server, {"pkce_enabled": true} is enough: the server handles authorization.Show 5 child attributes
authorize_uristringavailable_scopesarray of objectscope, display_name, description and required.pkce_enabledbooleantoken_uristringuser_info_uristringdisplay_namestringrequiredproxy_urlstringrequireddescriptionstringicon_srcstringmetadataobjectproxy_enabledbooleanscalekit_client.actions.providers.create_custom_provider
Create a new custom provider.
scalekit_client.actions.providers.create_custom_provider( request: CreateCustomProviderRequest,) -> CreateCustomProviderResponseParameters
requestCreateCustomProviderRequestrequiredReturns CreateCustomProviderResponse: The created provider with its server-assigned identifier and all decoded auth_patterns.
From scalekit-sdk-python 2.19.1.
scalekit.actions.providers.createCustomProvider
Creates a custom connector.
scalekit.actions.providers.createCustomProvider( params: { displayName: string; proxyUrl: string; proxyEnabled?: boolean; description?: string; authPatterns: AuthPattern[]; iconSrc?: string; metadata?: Record<string, string>; },): Promise<CreateProviderResponse>Parameters
displayNamestringrequiredproxyUrlstringrequiredproxyEnabledbooleandescriptionstringauthPatternsAuthPattern[]requiredtype, display_name and the fields users fill in.iconSrcstringmetadataRecord<string, string>Returns Promise<CreateProviderResponse>: provider.identifier on the response is the id you pass to updateCustomProvider and deleteCustomProvider.
From @scalekit-sdk/node 2.18.0.
Response 200
providerobjectShow 14 child attributes
auth_patternsarray of objectShow 9 child attributes
account_fieldsarray of objectOAUTH pattern, such as a value proxy_url needs. Same fields as fields.auth_field_mutationsobjectprefix, suffix or default applied to a credential before Scalekit sends it, keyed by api_key, token, username or password.auth_header_key_overridestringAuthorization, such as X-API-Key.descriptionstringdisplay_namestringfieldsarray of objectBEARER, API_KEY and BASIC. Leave it empty for OAUTH and NO_AUTH.Show 6 child attributes
field_namestringtoken for BEARER, api_key for API_KEY, username and password for BASIC, or a name such as domain that proxy_url uses as {{domain}}.hintstringinput_typestring (enum)password for secrets, so the input is masked.textpasswordselectlabelstringoptionsarray of objectselect input, each with value, display_name, description and default.requiredbooleanis_mcpbooleantrue when proxy_url is an MCP server. Set it on every pattern; it can't change later.oauth_configobjectOAUTH pattern. For an MCP server, {"pkce_enabled": true} is enough: the server handles authorization.Show 5 child attributes
authorize_uristringavailable_scopesarray of objectscope, display_name, description and required.pkce_enabledbooleantoken_uristringuser_info_uristringtypestring (enum)NO_AUTH only for a public MCP server, with is_mcp set and no fields. The type of an existing pattern can't change.OAUTHBEARERAPI_KEYBASICNO_AUTHcategoriesarray of stringcoming_soonbooleandescriptionstringdisplay_namestringdisplay_priorityintegericon_srcstringidstringidentifierstringdisplay_name.is_custombooleanis_custom_mcpbooleanmetadataobjectproxy_enabledbooleanproxy_url.proxy_urlstringErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - the provider payload failed validation (e.g. missing required fields or invalid proxy URL)