Skip to main content

GET Whitelisting Domain by ID

Overview


The table below provides information about the GET method for retrieving a whitelisted domain by its ID.

GET Whitelisted Domain by ID
MethodGET
URL or Endpoint/api/projects/projectId/whitelisting-domains/id
HeadersAuthorization
Parametersid, projectId
BodyNot Applicable

URL Parameters

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique ID of the project.
idYesintegerUnique ID of the whitelisted domain.

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"id": 0,
"domain": "string",
"insertDate": "2025-04-02T06:51:43.373Z",
"active": true
},
"resultInfo": "string",
"statusCode": 200
}

Information about the fields that appear when you receive the response are 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 messages from the back-end.
resultobjectThe main object containing the whitelisted domain details.
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.
resultInfostringReturns 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