Skip to content

List sessions of a project with filters

Request

Security
ApiKeyAuth
Path
idinteger, (int32)required

project id

Query
workflowstring

exact matching filter on workflow name

last_idinteger, (int64)

List sessions whose ID is smaller than this ID for pagination. Sessions are returned in descending order by ID.

page_sizeinteger, (int32)

number of sessions to return

curl -i -X GET \
  'https://api-workflow.treasuredata.com/api/projects/{id}/sessions?workflow=string&last_id=0&page_size=0' \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>'

Responses

default response

Bodyapplication/json
sessionsArray of objects(RestSession)
Response
{ "sessions": [ {} ] }