---
title: Detections
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Leaked Credential Checks](https://developers.cloudflare.com/api/go/resources/leaked_credential_checks)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Detections

##### [List the custom detection locations of a zone.](https://developers.cloudflare.com/api/go/resources/leaked_credential_checks/subresources/detections/methods/list)

client.LeakedCredentialChecks.Detections.List(ctx, query) (\*SinglePage\[[DetectionListResponse](<https://developers.cloudflare.com/api/go/resources/leaked_credential_checks#(resource)%20leaked_credential_checks.detections%20%3E%20(model)%20DetectionListResponse%20%3E%20(schema)>)], error)

GET/zones/{zone\_id}/leaked-credential-checks/detections

##### [Create a custom detection location for a zone.](https://developers.cloudflare.com/api/go/resources/leaked_credential_checks/subresources/detections/methods/create)

client.LeakedCredentialChecks.Detections.New(ctx, params) (\*[DetectionNewResponse](<https://developers.cloudflare.com/api/go/resources/leaked_credential_checks#(resource)%20leaked_credential_checks.detections%20%3E%20(model)%20DetectionNewResponse%20%3E%20(schema)>), error)

POST/zones/{zone\_id}/leaked-credential-checks/detections

##### [Get a custom detection location of a zone.](https://developers.cloudflare.com/api/go/resources/leaked_credential_checks/subresources/detections/methods/get)

client.LeakedCredentialChecks.Detections.Get(ctx, detectionID, query) (\*[DetectionGetResponse](<https://developers.cloudflare.com/api/go/resources/leaked_credential_checks#(resource)%20leaked_credential_checks.detections%20%3E%20(model)%20DetectionGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/leaked-credential-checks/detections/{detection\_id}

##### [Update a custom detection location of a zone.](https://developers.cloudflare.com/api/go/resources/leaked_credential_checks/subresources/detections/methods/update)

client.LeakedCredentialChecks.Detections.Update(ctx, detectionID, params) (\*[DetectionUpdateResponse](<https://developers.cloudflare.com/api/go/resources/leaked_credential_checks#(resource)%20leaked_credential_checks.detections%20%3E%20(model)%20DetectionUpdateResponse%20%3E%20(schema)>), error)

PUT/zones/{zone\_id}/leaked-credential-checks/detections/{detection\_id}

##### [Delete a custom detection location from a zone.](https://developers.cloudflare.com/api/go/resources/leaked_credential_checks/subresources/detections/methods/delete)

client.LeakedCredentialChecks.Detections.Delete(ctx, detectionID, body) (\*[DetectionDeleteResponse](<https://developers.cloudflare.com/api/go/resources/leaked_credential_checks#(resource)%20leaked_credential_checks.detections%20%3E%20(model)%20DetectionDeleteResponse%20%3E%20(schema)>), error)

DELETE/zones/{zone\_id}/leaked-credential-checks/detections/{detection\_id}