Skip to main content
GET
Get a function's source code
Requires an API key with the environment:functions:read scope. Learn more about API key scopes.
Returns the TypeScript source code of a function for a given integration.

Authorizations

Authorization
string
header
required

The secret key from your Nango environment.

Path Parameters

uniqueKey
string
required

The integration ID (unique_key) that you created in Nango.

name
string
required

The name of the function.

Query Parameters

type
enum<string>

The function type. Required to disambiguate when multiple functions share the same name.

Available options:
sync,
action,
on-event

Response

Successfully returned the function source code

type
enum<string>
required

The function type.

Available options:
sync,
action,
on-event
code
string
required

The TypeScript source code of the function.