Get list of currently running tasks
const url = 'https://example.com/api/v1/tasq/tasks?limit=50';const options = {method: 'GET', headers: {cookie: 'grommunioAuthJwt=<grommunioAuthJwt>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/tasq/tasks?limit=50' \ --cookie grommunioAuthJwt=<grommunioAuthJwt>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Sort by attribute. Can be given multiple times.
Filter one or more IDs
Set detail level of return value. Usually ranges from 0 to 2.
Maximum number of results to return
Match by substring
Comma separated list of attributes to restrict matching to.
Filter by command
Filter by message
Filter by last update time
Filter by create date
Responses
Section titled “Responses”List of tasks returned
object
object
Unique ID of the object
Task command
Task state (0=Queued, 1=Loaded, 2=Running, 3=Completed, 4=Error, 5=Cancelled)
Date string with time
Date string with time
Status message
Task specific parameters
object
Example
{ "data": [ { "state": 0 } ]}Validation of input parameters failed
object
List of errors encountered during validation
Examplegenerated
{ "message": "example", "errors": [ "example" ]}An error occurred while processing the request
object
String representation of the exception
Examplegenerated
{ "message": "example"}The database query failed
object
Description of the error
Examplegenerated
{ "message": "example"}