Skip to main content
The filter parameter on every list is an expression in CEL, the Common Expression Language. CEL is an open-source language from Google for short expressions that are safe to evaluate. Kubernetes and Google Cloud use it for policies and filters. Its syntax looks like a condition in JavaScript, Go or Java:
The API supports only a small part of CEL. You do not need to learn the full language: this page lists everything that a filter can contain.

Supported syntax

Each comparison has one field and one value. The value can come first: timestamp("2026-10-01T00:00:00Z") < updatedAt is the same as updatedAt > timestamp("2026-10-01T00:00:00Z"). The API refuses any other CEL. This includes:
  • Functions and methods, such as startsWith(), contains(), matches(), size() and has().
  • Arithmetic, such as + and -.
  • A comparison of two fields, such as createdAt < updatedAt.
  • The ? : conditional.
  • Number and boolean values. Every value is a string in double quotes, timestamp("…") or null.
  • in []. Send at least one value.
Each list has its own filter fields. They are on each endpoint’s page. A filter can have at most 20 comparisons. It can put &&, || and ! at most 4 levels deep: !!!!(status == "open") is allowed, and !!!!!(status == "open") is not. A chain such as a && b && c is one level, and parentheses do not add a level. The field kind decides which operators you can use: On a field that can be empty, only == null and != null match a record with no value. Any other comparison is false for that record, != included. For example, dueAt < timestamp("2026-12-01T00:00:00Z") does not match an assignment with no due date.

Examples

Open assignments that are due before 1 December 2026:
Assignments that are open or scheduled and have a due date:
Assignments that are not drafts:
Enrollments that changed after 1 October 2026:
Learners in one assignment who have not started. This filter is for List an assignment’s enrollments:
The same learners, in one group only:

URL-encode the filter

Encode the filter before you put it in the URL. With curl, --get --data-urlencode does this for you:
This is the same request with the filter encoded by hand:

Errors

A filter that the API cannot read returns 400 with code invalid_request. The detail says what to fix: