> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get legacy integration functions config

> Return the configuration for all integration functions.

> [!NOTE]
>
> Requires an Environment API key with the `environment:integrations:list_functions` scope. [Learn more about API key scopes](https://nango.dev/docs/reference/backend/http-api/api-keys.md#scopes).

> [!WARNING]
>
> This is a legacy configuration endpoint for deployed syncs and deprecated actions. For new integrations, use [List functions](https://nango.dev/docs/reference/backend/http-api/functions/list.md) to discover tools, including catalog tools, and [agent sessions](https://nango.dev/docs/guides/agent-sessions.md) to expose them to agents.

Existing callers can continue to use:

* `GET /scripts/config?format=nango` for the legacy configuration format.
* `GET /scripts/config?format=openai` for deployed function schemas in OpenAI function-calling format.

The OpenAI format derives parameter descriptions from Markdown parameter lists in the function description and preserves array schemas. This endpoint does not include undeployed catalog tools or HTTP-triggered tools. Call available tools through the [tool-call API](https://nango.dev/docs/reference/backend/http-api/tools/call.md).


## OpenAPI

````yaml GET /scripts/config
openapi: 3.1.0
info:
  title: Nango API
  description: Nango API specs used to authorize & sync data with external APIs.
  version: 1.0.0
servers:
  - url: https://api.nango.dev
    description: Production server
  - url: http://localhost:3003
    description: Local server
security:
  - bearerAuth: []
externalDocs:
  url: https://nango.dev/docs/reference/backend/http-api/authentication
paths:
  /scripts/config:
    get:
      summary: Get scripts configuration
      description: Return the configuration for all integration functions.
      parameters:
        - name: format
          in: query
          required: false
          schema:
            type: string
            enum:
              - nango
              - openai
          description: The output type of the script configuration
      responses:
        '200':
          description: Successfully returned integration functions config
          content:
            application/json:
              schema:
                type: object
                properties:
                  providerConfigKey:
                    type: string
                  syncs:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                        name:
                          type: string
                          example: github-issues
                        enabled:
                          type: boolean
                        type:
                          type: string
                          example: sync
                        json_schema:
                          type: object
                        runs:
                          type: string
                          example: every 30 minutes
                        track_deletes:
                          type: boolean
                        auto_start:
                          type: boolean
                        last_deployed:
                          type: string
                          example: '2024-02-01T09:09:03.502Z'
                        is_public:
                          type: boolean
                        pre_built:
                          type: boolean
                        version:
                          type: string
                          example: 0.0.3
                        attributes:
                          type: object
                        input:
                          type: object
                        returns:
                          type: array
                          items:
                            type: string
                            example: GithubIssue
                        description:
                          type: string
                          example: >
                            Fetches the Github issues from all a user's
                            repositories.

                            Details: doesn't track deletes, metadata is not
                            required.
                        scopes:
                          type: array
                          items:
                            type: string
                            example: public_repo
                        endpoints:
                          type: array
                          items:
                            type: object
                        webhookSubscriptions:
                          type: array
                          items:
                            type: string
                        models:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              fields:
                                type: array
                            required:
                              - name
                  actions:
                    type: array
                    description: >-
                      Deprecated action definitions. Use tools for new on-demand
                      functions.
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                        name:
                          type: string
                          example: github-issues
                        type:
                          type: string
                          example: action
                        last_deployed:
                          type: string
                          example: '2024-02-28T20:16:38.052Z'
                        is_public:
                          type: boolean
                          example: false
                        pre_built:
                          type: boolean
                          example: false
                        version:
                          type: string
                          example: '4'
                        attributes:
                          type: object
                        input:
                          type: object
                        returns:
                          type: object
                        description:
                          type: string
                          example: >
                            Fetches the Github issues from all a user's
                            repositories.

                            Details: doesn't track deletes, metadata is not
                            required.
                        scopes:
                          type: array
                          items:
                            type: string
                            example: public_repo
                        endpoints:
                          type: array
                          items:
                            type: object
                        models:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              fields:
                                type: array
                            required:
                              - name
                  on-events:
                    type: array
                    items:
                      type: string
                  provider:
                    type: string
                    example: github
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
  schemas:
    StdError:
      type: object
      additionalProperties: false
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
          properties:
            code:
              type: string
            message:
              type: string
            errors:
              type: array
              items:
                type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An Environment API key from your Nango environment, or an Account API
        key for account-level endpoints.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.