Functions
List functions
GET /v1/functions- Permission
read:functions- Tokens
- API key, CLI user token
List saved functions. Filter by label and annotation.
Query parameters
labelarray<string>
Keep only items with this label. Repeat to require every one.
annotationarray<string>
Keep only items with this annotation, written `key:value`. Repeat to require every one.
{
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
result = client.functions.list()
8
print(result)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
const result = await client.functions.list();
8
console.log(result);
1
curl "https://api.ellipsis.dev/v1/functions" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
functionsarray<Function>required
Saved functions.