# ThreatEntry

- [JSON representation](https://developers.google.com/safe-browsing/reference/rest/v4/ThreatEntry#SCHEMA_REPRESENTATION)

An individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set.

| JSON representation |
|---|
| ``` { "hash": string, "url": string, "digest": string } ``` |

| Fields ||
|---|---|
| `hash` | `string (https://developers.google.com/discovery/v1/type-format format)` A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded. A base64-encoded string. |
| `url` | `string` A URL. |
| `digest` | `string (https://developers.google.com/discovery/v1/type-format format)` The digest of an executable in SHA256 format. The API supports both binary and hex digests. For JSON requests, digests are base64-encoded. A base64-encoded string. |