List Function
GET {{host}}/{{version}}/{{workspace_id}}/functions
List Function Input
Field | Type | Description | Required? | Example |
---|---|---|---|---|
workspace_id | string | Identifier of the workspace the function resides in. | required | de76b5055e |
type | enum (SOURCE , DESTINATION ) | Type of function to list. | required | SOURCE |
page_size | integer (1-100, default=10) | Number of functions to list per page. | optional | 10 |
page_token | string | Token from a previous response, indicating which page to advance to. | optional | a3pVcVE2SkxaUg== |
Request Body
{"type"=>"SOURCE", "page_size"=>10, "page_token"=>""}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"functions":[{"settings":[{"name":"my setting","label":"my setting","type":"string","required":true},{"name":"arraysetting","label":"array setting","type":"array"}],"id":"sfnc_1234","workspace_id":"workspace_id","display_name":"my function","created_at":"2020-07-20T22:35:38.056Z","created_by":"user_id","logo_url":"https://logo-url","type":"SOURCE","catalog_id":"1234"},{"settings":[{"name":"myapiKey","label":"my api key","type":"string"},{"name":"mySecret","label":"my secret key","type":"string","sensitive":true}],"id":"sfnc_4567","workspace_id":"workspace_id","display_name":"my second function","created_at":"2020-07-30T19:15:26.660Z","created_by":"user_id","logo_url":"https://logo-url","type":"SOURCE","catalog_id":"4567"}],"next_page_token":"MTI="}