Institutions

Represents a list of institutions set up for the DreamApply instance.

URI
/api/v9/institutions

GET List institutions

List institutions using the filters set as parameters.

In most use cases there will only be one institution in the system. However, in exchange management setups as well as collaborative systems there may be a larger number of institutions.

Syntax
GET /api/v9/institutions
Host: apply.example.edu
Authorization: DREAM apikey="..."

Parameters

ParameterRequired/OptionalDescriptionNotes
byStatusesOptionalList of statuses, currently limited to: Online, Draft[1]
byModesOptionalInternal (DA user) or External (not users of DA, partner etc.)[1]
byCountriesOptionalList of ISO 3166-1 alpha-2 country codes[1]

Notes

Note [1]: Lists can be either comma or space separated. All list items are combined with logical OR operators — in other words an institution is considered matching if it matches to any of the values in the list.

Example request

Request
curl
curl \
  -X GET \
  -H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
  "https://apply.example.edu/api/v9/institutions?byStatuses=Online"

Response headers

HeaderValueDescription
Content-Typeapplication/jsonMedia type of the resource
Content-Length1234Size of the response body in bytes
X-Count3Number of registered institutions

Response codes

Response codeDescription
200 OKThe list of institutions was successfully returned

Example response

Response
{
  "1": {
    "id": 1,
    "status": "Online",
    "name": "School of Engineering and Technology",
    "country": "BE",
    "location": "Antwerp",
    "www": "https://engtech.edu",
    "erasmus": "BE ANTWERP08",
    "address": "15 De Keyserlei\r\n2000 Antwerp",
    "vat": "BE0471123456",
    "iban": "BE68 5390 0754 7034",
    "registration": null,
    "departments": "/api/v9/institutions/1/departments"
  },
  "2": {
    "id": 2,
    "status": "Online",
    "name": "School of Chemistry",
    "country": "BE",
    "location": "Antwerp",
    "www": "https://dreamapply.com/",
    "erasmus": null,
    "address": "15 De Keyserlei\r\n2000 Antwerp",
    "vat": null,
    "iban": null,
    "registration": null,
    "departments": "/api/v9/institutions/2/departments"
  },
  "3": {
    "id": 3,
    "status": "Online",
    "name": "School of Applied Science",
    "country": "BE",
    "location": "Antwerp",
    "www": "https://dreamapply.com/",
    "erasmus": null,
    "address": "15 De Keyserlei\r\n2000 Antwerp",
    "vat": null,
    "iban": null,
    "registration": null,
    "departments": "/api/v9/institutions/3/departments"
  }
}