Get integration scripts config
Return the configuration for all integration scripts.
The /scripts/config
endpoint returns the configuration for all integration scripts. There are two variants of this endpoint:
/scripts/config?format=nango
- Returns the standard configuration format/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 nango.yaml
file, you can define a script like this:
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:
It will be transformed into:
Query Parameters
The output type of the script configuration
nango
, openai
Response
Successfully returned integration scripts config
The response is of type object
.