List projects – Management API – MediaKind

List projects

get https://app.mk.io/api/v1/projects

Listing, Sorting and Filtering Projects

This endpoint returns the list of projects.

Sorting

The results from this endpoint can be ordered using the $orderby query parameter. Specify a list of field names, separated by commas where each one can optionally specify asc or desc.

Sorting is valid on the following fields: assignedPaymentMethodId, created, createdBy, displayName, id, isActive, locationId, name, updated

Filtering

The $filter query parameter allows for projects to be filtered on the basis of fields in the schema using OData query syntax. See this document for more details on the syntax used.

Filters are valid on the following fields: assignedPaymentMethodId, created, createdBy, createdByEmail, createdByName, displayName, id, isActive, locationId, locationName, name, updated

Examples:

?$top=10 - Returns only the first 10 projects from the list.

?$orderby=name desc - Sorts projects by name in descending order.

?$filter=name eq 'descriptive name' - Returns projects that match the provided name.

?$orderby=created desc - Sorts projects by creation date in descending order.

?$filter=created ge 2021-01-01T00:00:00Z - Returns projects created after January 1, 2021.

RBAC Capability Required: core.project.get

Authentication

Authorization Bearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

Response

200 OK

Errors

400 Bad Request

401 Unauthorized

403 Forbidden

404 Not Found

429 Too Many Requests

500 Internal Server Error