Functions
List runs
GET /v1/functions/{id}/runs- Permission
read:functions- Tokens
- API key, CLI user token
List the runs of a function, newest first. Page with limit and cursor.
Path parameters
idstringrequired
Query parameters
limitdefault
50integercursorstring
The `next_cursor` of the previous page.
user_idstring
A user id (see GET /v1/users). Keeps only runs that user started.
{
"has_more": bool,
"next_cursor": str,
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
for item in client.functions.runs.list("..."):
8
print(item)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
for await (const item of await client.functions.runs.list('...')) {
8
console.log(item);
9
}
1
curl "https://api.ellipsis.dev/v1/functions/{id}/runs" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
has_moredefault
falsebooleanWhether more results exist past this page.
next_cursorstring
Pass as `cursor` to fetch the next page. Null on the last page. Opaque , echo it back rather than parsing it.
runsarray<FunctionRun>required
Runs on this page.