Northpass

Welcome to the Northpass Developer Hub!

The Northpass platform was purpose-built for developers to flex their creative muscles. Discover what's possible with our solution so that you can deliver the most impactful experiences within your products.

Start by browsing our guides to learn how to best interact with our APIs. Then, dive into our API Reference to see what's possible.

Get Started    API Reference

Each endpoint that supports sorting has a default. Please visit the API reference to get this information for a specific endpoint under default sorting. When the default sorting is not specified explicitly for an endpoint, it means it uses an internal order based on IDs.

The default sorting can be changed using a sort query param:

curl --request GET \
--url 'https://api.northpass.com/v2/courses?sort=name' \
--header 'Accept: application/json' \
--header 'X-Api-Key: <INSERT_API_KEY_HERE>'

Sorting can be performed using every attribute returned for a specific resource. In the example above, the returned list will be sorted ascending using the name attribute. To sort it descending, a - sign has to be prepended to the attribute's name:

curl --request GET \
--url 'https://api.northpass.com/v2/courses?sort=-name' \
--header 'Accept: application/json' \
--header 'X-Api-Key: <INSERT_API_KEY_HERE>'

The API allows specifying multiple sort attributes, separated by a comma:

curl --request GET \
--url 'https://api.northpass.com/v2/courses?sort=-enrollments_count,name' \
--header 'Accept: application/json' \
--header 'X-Api-Key: <INSERT_API_KEY_HERE>'

In the example above, the list will be sorted descending by the enrollments_count attribute and then ascending by the name attribute.

Updated 6 months ago


Sorting


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.