| title | List Functions |
|---|---|
| description | List all functions for your account |
const response = await fetch('https://api.sequinstream.com/api/functions', {
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
});
const { data } = await response.json();Returns an array of function objects.
Array of function objects{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-filter",
"description": "Filter records with value greater than 40",
"type": "filter",
"code": "def filter(action, record, changes, metadata) do\n record[\"value\"] > 40\nend"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"name": "my-transform",
"description": "Extract ID and action",
"type": "transform",
"code": "def transform(action, record, changes, metadata) do\n %{id: record[\"id\"], action: action}\nend"
}
]
}