Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Create a custom connector

POST/api/v1/custom-providers

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 objectrequired
Authentication patterns for the connected app provider
Show 10 child attributes
display_namestringrequired
Name of the method, shown to the user while they connect.
typestring (enum)required
How users authenticate. Use 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_AUTH
account_fieldsarray of object
Inputs collected for an OAUTH pattern, such as a value proxy_url needs. Same fields as fields.
auth_field_mutationsobject
A prefix, suffix or default applied to a credential before Scalekit sends it, keyed by api_key, token, username or password.
auth_header_key_overridestring
Header to send the credential in when the app doesn't use Authorization, such as X-API-Key. It applies to a single credential: Scalekit ignores it on a pattern whose fields set header_name.
descriptionstring
Short explanation of the method.
fieldsarray of object
Inputs the user fills in for BEARER, API_KEY and BASIC. Leave it empty for OAUTH and NO_AUTH. For an API_KEY pattern that sends several credentials as separate headers, set header_name on every credential field.
Show 7 child attributes
field_namestringrequired
Key the value is stored under: token for BEARER, api_key for API_KEY, username and password for BASIC, or a name such as domain that proxy_url uses as {{domain}}. When you set header_name, Scalekit derives it from the header name.
header_namestring
On an API_KEY pattern, the HTTP header that carries this field's value. Set it on every credential field to send several credentials as separate headers; a pattern that sets it on only some fields is rejected. Scalekit derives field_name from it, so a connected account takes one value per header, keyed by the header name.
hintstring
Helper text shown with the input.
input_typestring (enum)
Use password for secrets, so the input is masked.
textpasswordselect
labelstring
Label shown above the input.
optionsarray of object
Choices for a select input, each with value, display_name, description and default.
requiredboolean
Whether the user must fill in the input before connecting.
is_mcpboolean
Set to true when proxy_url is an MCP server. Set it on every pattern; it can't change later.
is_open_apiboolean
Set to true on every pattern when you send openapi_spec_url. Scalekit sets it from openapi_spec_url, whatever you send.
oauth_configobject
OAuth settings for an OAUTH pattern. For an MCP server, {"pkce_enabled": true} is enough: the server handles authorization.
Show 5 child attributes
authorize_uristring
The app's authorization endpoint.
available_scopesarray of object
Scopes the connection can request, each with scope, display_name, description and required.
pkce_enabledboolean
Whether the authorization flow uses PKCE.
token_uristring
The app's token endpoint.
user_info_uristring
Endpoint that returns the signed-in user.
display_namestringrequired
Display name for the connected app provider
descriptionstring
Description of the connected app provider
icon_srcstring
URL for the provider icon. Should be an SVG image sized 800x800 pixels for best rendering experience.
metadataobject
Custom key-value metadata for this provider. Keys must be 3-25 characters, values must be 1-256 characters, with a maximum of 20 key-value pairs.
openapi_spec_urlstring
URL of the OpenAPI spec (JSON or YAML) to build the connector's tools from. Send this or proxy_url, not both. Must start with https://
proxy_enabledboolean
This flag indicates whether proxying is turned on for the connected app provider. When enabled, requests are routed through the provider proxy instead of being sent directly.
proxy_urlstring
Proxy URL for the connected app provider. Must start with https://. Omit it when you pass openapi_spec_url.

Response 200

providerobject
The connector.
Show 15 child attributes
auth_patternsarray of object
How users authenticate, as sent in the request.
Show 10 child attributes
account_fieldsarray of object
Inputs collected for an OAUTH pattern, such as a value proxy_url needs. Same fields as fields.
auth_field_mutationsobject
A prefix, suffix or default applied to a credential before Scalekit sends it, keyed by api_key, token, username or password.
auth_header_key_overridestring
Header to send the credential in when the app doesn't use Authorization, such as X-API-Key. It applies to a single credential: Scalekit ignores it on a pattern whose fields set header_name.
descriptionstring
Short explanation of the method.
display_namestring
Name of the method, shown to the user while they connect.
fieldsarray of object
Inputs the user fills in for BEARER, API_KEY and BASIC. Leave it empty for OAUTH and NO_AUTH. For an API_KEY pattern that sends several credentials as separate headers, set header_name on every credential field.
Show 7 child attributes
field_namestring
Key the value is stored under: token for BEARER, api_key for API_KEY, username and password for BASIC, or a name such as domain that proxy_url uses as {{domain}}. When you set header_name, Scalekit derives it from the header name.
header_namestring
On an API_KEY pattern, the HTTP header that carries this field's value. Set it on every credential field to send several credentials as separate headers; a pattern that sets it on only some fields is rejected. Scalekit derives field_name from it, so a connected account takes one value per header, keyed by the header name.
hintstring
Helper text shown with the input.
input_typestring (enum)
Use password for secrets, so the input is masked.
textpasswordselect
labelstring
Label shown above the input.
optionsarray of object
Choices for a select input, each with value, display_name, description and default.
requiredboolean
Whether the user must fill in the input before connecting.
is_mcpboolean
Set to true when proxy_url is an MCP server. Set it on every pattern; it can't change later.
is_open_apiboolean
Set to true on every pattern when you send openapi_spec_url. Scalekit sets it from openapi_spec_url, whatever you send.
oauth_configobject
OAuth settings for an OAUTH pattern. For an MCP server, {"pkce_enabled": true} is enough: the server handles authorization.
Show 5 child attributes
authorize_uristring
The app's authorization endpoint.
available_scopesarray of object
Scopes the connection can request, each with scope, display_name, description and required.
pkce_enabledboolean
Whether the authorization flow uses PKCE.
token_uristring
The app's token endpoint.
user_info_uristring
Endpoint that returns the signed-in user.
typestring (enum)
How users authenticate. Use 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_AUTH
categoriesarray of string
Catalog categories. Empty for a custom connector.
coming_soonboolean
Whether the catalog lists the connector as coming soon.
descriptionstring
Short description of the app.
display_namestring
Name shown to users.
display_priorityinteger
Where the connector sorts in lists; lower numbers come first.
icon_srcstring
URL of the connector's icon.
idstring
Scalekit's ID for the connector.
identifierstring
Pass it to update and delete the connector. Scalekit derives it from display_name.
is_customboolean
Indicates whether the provider is environment-scoped (custom provider)
is_custom_mcpboolean
Indicates whether this is an environment-scoped MCP-based custom provider
metadataobject
Custom key-value metadata stored for this provider. Returned for all providers; defaults to {} when no metadata has been set.
openapi_spec_urlstring
URL of the OpenAPI spec the connector was created from. Empty for an MCP server.
proxy_enabledboolean
Whether Scalekit proxies requests to proxy_url.
proxy_urlstring
Base URL of the API that the proxy calls.

Errors

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)

Used in