Skip to main content

GET Whitelisting Domains with Pagination

Overview


The following table provides information about the GET method used to retrieve all whitelisting domains as a list, based on specified request parameters.

GET Whitelisting Domains with Pagination
MethodGET
URL or Endpoint/api/projects/projectId/whitelisting-domains
HeadersAuthorization
Parameterssearch(query), order(query), insertedDate(query), page(query), take(query), projectId
BodyNot Applicable

The description of the URL parameter is as follows:

projectId Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

The description of the parameters is as follows:

Parameter NameMandatoryTypeDescription
searchNostringSearch for a specific domain.
orderNostringSpecifies the sorting order.
insertedDateNostring($date-time)Date when the domain was inserted.
pageNointeger($int32)A specific page with whitelisting domains.
takeNointeger($int32)Number of whitelisting domains to take.
api-versionNostringAPI version.

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"currentPage": 1,
"totalPages": 1,
"pageSize": 10,
"totalCount": 2,
"items": [
{
"id": 1,
"domain": "{domain}",
"insertDate": "2025-03-17T12:36:17.624Z",
"active": false
},
{
"id": 2,
"domain": "{domain}",
"insertDate": "2025-03-17T12:37:36.730Z",
"active": false
}
]
},
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear in the response is displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful, it will return true. Otherwise, it will return false.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns any messages from the back-end.
resultobjectThe main object containing the paginated result details.
currentPageintegerThe current page number being returned.
totalPagesintegerTotal number of available pages.
pageSizeintegerThe number of items displayed per page.
totalCountintegerThe total number of items across all pages.
itemsarray[object]An array containing the list of items for the current page.
idintegerThe unique identifier of the whitelisted domain.
domainstringThe whitelisted domain.
insertDatestring (DateTime)The date and time when the domain was inserted.
activeboolIndicates if the domain is active.
resultInfonullableReturns additional information about the result (if any).
statusCodeintegerReturns the HTTP status code (e.g., 200).

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed