Skip to main content
GET
Get scripts configuration
Requires an API key with the environment:integrations:list_functions scope. Learn more about API key scopes.
The /scripts/config endpoint returns the configuration for all integration functions. There are two variants of this endpoint:
  1. /scripts/config?format=nango - Returns the standard configuration format
  2. /scripts/config?format=openai - Returns the configuration in OpenAI’s function calling format

OpenAI Function Format

The /scripts/config?format=openai endpoint transforms the script configurations into OpenAI’s function calling format. This format is particularly useful when working with OpenAI’s API to enable function calling capabilities.

Parameter Descriptions

The endpoint automatically parses parameter descriptions from the script’s description field. If a script’s description contains a markdown list of parameters, these descriptions will be used for the corresponding parameters in the OpenAI function format. For example, in your script file, you can define a script like this:
google-calendar/actions/move-event.ts
The endpoint will generate a function definition like this:

Array Fields

The endpoint properly handles array fields in the configuration. For example, if a field is defined as:
google-calendar/actions/create-event.ts
It will be transformed into:

Authorizations

Authorization
string
header
required

The secret key from your Nango environment.

Query Parameters

format
enum<string>

The output type of the script configuration

Available options:
nango,
openai

Response

Successfully returned integration functions config

providerConfigKey
string
syncs
object[]
actions
object[]
on-events
string[]
provider
string
Example:

"github"