[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 sit at the root of the body and 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 bounds are inclusive ISO-8601 instants. Results are sorted by sortBy and sortOrder (default createdAt descending), 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
ids
array of strings

Edusign company IDs, combined with OR

ids

Literal substring of name, displayName or businessIdentifier

string
length between 1 and 255

Exact legal name

string
length between 1 and 255

Exact display name

string
length between 1 and 64

Exact registration number

string
length between 1 and 64

Exact kind of registration number

string
^[a-zA-Z]{2}$

ISO 3166-1 alpha-2 country of the registration number

externalReferenceIds
array of strings

External reference IDs, combined with OR; references unknown to the school are ignored

externalReferenceIds
string
length between 1 and 30

Exact external reference type

string
length between 1 and 128

Exact city of the address

string
length between 1 and 32

Exact postal code of the address

string
^[a-zA-Z]{2}$

ISO 3166-1 alpha-2 country of the address

date-time

Companies created at or after this instant. ISO 8601 date-time with a time zone

date-time

Companies created at or before this instant. ISO 8601 date-time with a time zone

date-time

Companies last updated at or after this instant. ISO 8601 date-time with a time zone

date-time

Companies last updated at or before this instant. ISO 8601 date-time with a time zone

boolean

true: companies hosting at least one active learner; false: companies hosting none

boolean

true: companies with at least one active external contact holding an email; false: none

string
enum
Defaults to createdAt

Field to sort by. Defaults to createdAt. Ties are broken on the company ID, so pages never skip or repeat a company.

Allowed:
string
enum
Defaults to desc

Sort direction. Defaults to desc (newest first).

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