Skip to main content
GET
List Business Areas
The List Business Areas endpoint returns the business areas that your API key has been granted access to. Business areas are the top-level organizational units in Pretectum that categorize your master data. Results are paged, like the other list endpoints.

Prerequisites

  • A Pretectum API key (see API Keys)
  • Permission to access business areas in your tenant

Authentication

Include your API key in the Authorization header.

Request

Query Parameters

string
A pagination token for retrieving the next page of results. This value is returned in the response as nextPageKey when more results are available.

Headers

string
required
Your Pretectum API key. Create one in the Pretectum app under Configuration → API Keys.
string
default:"application/json"
The response content type. Currently only application/json is supported.

Example Requests

Response

A successful request returns an object containing an array of business areas and pagination information.
array
required
An array of business area objects your API key has access to.
string
A pagination token for retrieving the next page of results. If this field is present, more business areas are available. Pass this value as the pageKey query parameter in your next request.

Example Response

When more business areas are available than fit in one page, the response also carries nextPageKey:

Empty Response

If your API key has not been granted access to any business areas, the response will contain an empty items array:

Error Responses

Use Cases

Filtering Search Results

Use the business area names returned by this endpoint to filter your data object searches:

Building Dynamic UI

Populate dropdown menus or filter options in your application with the available business areas:

Validating Business Area Access

Check if your application has access to a specific business area before performing operations:

Best Practices

  1. Cache the results: Business areas change infrequently. Cache the response and refresh periodically rather than calling this endpoint before every search.
  2. Filter by active status: Only show active business areas in user-facing interfaces unless there’s a specific need to display inactive ones.
  3. Use names for search filters: When filtering searches with the businessArea parameter, use the name field value, not the businessAreaId.
  4. Handle empty responses: Your application should gracefully handle cases where no business areas are returned.
  5. Handle pagination: Check for nextPageKey in the response and fetch the next page with pageKey until it is absent.
  6. Refresh on permission changes: If a user’s permissions change, refresh the cached business area list to reflect their new access.

Search Data Objects

Search within business areas

API Keys

Obtain authentication token