> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuro-tech.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Check endpoint

> Allows the client to check open intelligence of an endpoint.

## Overview

Allows the client to check open intelligence of an endpoint.

## HTTP request

`POST /Agent/Intelligence/CheckEndpoint`

## Authentication

Requires a valid JWT bearer token.

## Request (JSON)

```json theme={null}
{
	"endpoint":Required(Str(PEndpoint))
}
```

## Input parameters

| Parameter | Description                                                                                               |
| --------- | --------------------------------------------------------------------------------------------------------- |
| PEndpoint | The endpoint to check. It can be an IP endpoint, XMPP endpoint, etc. Format depends on the protocol used. |

## Response (JSON)

```json theme={null}
{
	"endpoint": Required(Str(PEndpoint)),
	"EndpointInfo": Optional(
	{
		"created": Required(DateTime(PCreated)),
		"domain": Required(Str(PDomain)),
		"lastProtocol": Required(Str(PLastProtocol)),
		"lastFailed": Required(Bool(PLastFailed)),
		"permanentBlock": Optional(Bool(PPermanentBlock)),
		"temporaryBlock": Optional(DateTime(PTemporaryBlock)),
		"reason": Optional(Str(PReason)),
		"whois": Optional(Str(PWhois)),
		"city": Optional(Str(PCity)),
		"region": Optional(Str(PRegion)),
		"country": Optional(Str(PCountry)),
		"countryCode": Optional(Str(PCountryCode)),
		"flag": Optional(Str(PFlag))
	})
}
```

## Response parameters

| Parameter       | Description                                                                                                                                                                           |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| PEndpoint       | Endpoint recorded in the record. This may be the same in the input, or a scaled down version, depending on the protocol. For IP Endpoints, the port number is removed (for instance). |
| PCreated        | When the record was created.                                                                                                                                                          |
| PLastProtocol   | Last protocol used from endpoint.                                                                                                                                                     |
| PLastFailed     | If last authentication attempt failed.                                                                                                                                                |
| PPermanentBlock | If endpoint is permanently blocked.                                                                                                                                                   |
| PTemporaryBlock | If endpoint is temporarily blocked, and when next login attempt is allowed.                                                                                                           |
| PReason         | Reason for any block.                                                                                                                                                                 |
| PWhois          | WHOIS information about the endpoint, if available.                                                                                                                                   |
| PCity           | City associated with endpoint.                                                                                                                                                        |
| PRegion         | Region associated with endpoint.                                                                                                                                                      |
| PCountry        | Country associated with endpoint.                                                                                                                                                     |
| PCountryCode    | Country code associated with endpoint.                                                                                                                                                |
| PFlag           | Country flag associated with endpoint.                                                                                                                                                |

## Notes

This endpoint uses the request schema notation described in [Pattern matching](/guides/pattern-matching).
