Get the jobs.
GET/api/v4/jobs
Get a page of jobs. Use the query parameters to modify the behaviour of this endpoint.
Minimum server version: 4.1
Permissions
Required permission depends on the job type:
read_data_retention_job—data_retentionread_compliance_export_job—message_exportread_elasticsearch_post_indexing_job—elasticsearch_post_indexingread_elasticsearch_post_aggregation_job—elasticsearch_post_aggregationread_ldap_sync_job—ldap_syncread_jobs—migrations,plugins,product_notices,expiry_notify,active_users,import_process,import_delete,export_process,export_delete,cloud,extract_content,mobile_session_metadata,post_persistent_notifications,delete_expired_postsmanage_systemormanage_team_access_rulesgranted at the system level —access_control_team_syncsysconsole_read_reporting_site_statistics—health_checkmanage_system— all other job types
When job_type is set, you must have the permission that matches that type.
When job_type is not set, the response includes only job types that can be created through the API (see POST /api/v4/jobs) and that your session may read, so you must be able to read at least one of them. Jobs of other types are run by the server itself; request them with job_type.
This endpoint does not accept team_id. To list access_control_sync jobs scoped to a team without manage_system, use GET /api/v4/jobs/type/access_control_sync with query parameter team_id set to the team GUID (requires manage_team_access_rules on that team).
Request
Responses
- 200
- 400
- 401
- 403
Job list retrieval successful
Invalid or missing parameters in URL or request body
No access token provided
Do not have appropriate permissions