[BETA] Search companies

Search the companies of your school. This read-only operation uses POST to carry the filters in its body: credentials holding only read access are served.

Filters are combined with AND; the values of ids and of externalReferenceIds are combined with OR, up to 100 each, and references unknown to your school are ignored. Text filters are exact, except search, a literal substring of name, displayName or businessIdentifier. Date ranges are inclusive ISO-8601 instants. Sorts apply in array order, then by ID ascending.

includeStudents and includeExternals add the full, unpaginated students and externals arrays to each company: active people only; learners attached directly or through an apprenticeship contract, each once; external contacts counted once per email, the ones without an email left out. Learners are ordered by last name, first name, then ID; external contacts by last name, first name, then email. Each array is empty when nobody is attached. hasStudents and hasExternals follow the same rules: a company "has" exactly the people it would list.

Several learners and external contacts can be attached to one company, and a change to the company applies to all of them.

Attach a learner with companyId on PATCH /students/{id} (or its by-reference-id twin): it is the "Company" field of the learner record in the School app. That call also copies the company display name into the learner's historical company text; updating the company later does not rewrite that text.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
filters
object

Filters, combined with AND

sort
array of objects
Defaults to [object Object]

Sorts applied in order, then by ID ascending. Default: createdAt descending

sort
string
enum
required
Allowed:
string
enum
required
Allowed:
number
Defaults to 1

Page number, from 1

number
Defaults to 50

Companies per page (max 100)

boolean
Defaults to false

When true, include a students[] array on each company: every active learner it hosts

boolean
Defaults to false

When true, include an externals[] array on each company: every active external contact attached to it

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json