> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/rest-api/midapi-v2/validation-services/ip-validation.md). Agents can also search and read this documentation through its [MCP server](https://docs.facephi.com/~gitbook/mcp).

# IP Validation

Service that evaluates the fraud risk associated with an IP address.

### Endpoint

```
GET /validation/ip/{ip}
```

### Headers

| Name              | Type   | Required | Description                                                                                                                                        |
| ----------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Authorization** | string | **Yes**  | Consumer token in the format `Bearer <token>`. See [Authentication](https://docs.facephi.com/docs.facephi-en/rest-api/midapi-v2/autenticacion.md). |
| **consumer-id**   | string | **Yes**  | Consumer identifier.                                                                                                                               |

### Path parameters

| Parameter | Type   | Required | Description             |
| --------- | ------ | -------- | ----------------------- |
| `ip`      | string | **Yes**  | IP address to evaluate. |

### Responses

#### `200` Success

#### Response parameters

| Parameter       | Type    | Description                                          |
| --------------- | ------- | ---------------------------------------------------- |
| `consumerId`    | string  | Identifier of the consumer that made the call.       |
| `transactionId` | string  | Transaction identifier.                              |
| `timestamp`     | string  | Response timestamp in **ISO 8601**.                  |
| `message`       | string  | Descriptive field for the service execution result.  |
| `type`          | string  | Type of data queried: `IP`, `EMAIL` or `PHONE`.      |
| `fraud`         | boolean | Indicates whether the data is considered fraudulent. |
| `data`          | object  | Details of the risk signals evaluated.               |

#### Other responses

| Code  | Description                                                       |
| ----- | ----------------------------------------------------------------- |
| `401` | Token is missing, invalid, or expired.                            |
| `403` | The consumer is not provisioned with the service `IP_VALIDATION`. |

The body of an error response has the form described in [Middleware API v2](https://docs.facephi.com/docs.facephi-en/rest-api/midapi-v2.md#respuestas-de-error).
