---
title: Validate
---

[Skip to content](#%5Ftop) 

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

[Logpush](https://developers.cloudflare.com/api/typescript/resources/logpush)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Validate

##### [Validate destination](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/validate/methods/destination)

client.logpush.validate.destination(ValidateDestinationParams { destination\_conf, account\_id, zone\_id } params, RequestOptionsoptions?): [ValidateDestinationResponse](https://developers.cloudflare.com/api/typescript/resources/logpush#%28resource%29%20logpush.validate%20%3E%20%28model%29%20validate%5Fdestination%5Fresponse%20%3E%20%28schema%29) { message, valid } | null

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/validate/destination

##### [Check destination exists](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/validate/methods/destination%5Fexists)

client.logpush.validate.destinationExists(ValidateDestinationExistsParams { destination\_conf, account\_id, zone\_id } params, RequestOptionsoptions?): [ValidateDestinationExistsResponse](https://developers.cloudflare.com/api/typescript/resources/logpush#%28resource%29%20logpush.validate%20%3E%20%28model%29%20validate%5Fdestination%5Fexists%5Fresponse%20%3E%20%28schema%29) { exists } | null

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/validate/destination/exists

##### [Validate origin](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/validate/methods/origin)

client.logpush.validate.origin(ValidateOriginParams { logpull\_options, account\_id, zone\_id } params, RequestOptionsoptions?): [ValidateOriginResponse](https://developers.cloudflare.com/api/typescript/resources/logpush#%28resource%29%20logpush.validate%20%3E%20%28model%29%20validate%5Forigin%5Fresponse%20%3E%20%28schema%29) { message, valid } | null

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/validate/origin

##### ModelsExpand Collapse 

ValidateDestinationResponse { message, valid } 

message?: string

valid?: boolean

ValidateDestinationExistsResponse { exists } 

exists?: boolean

ValidateOriginResponse { message, valid } 

message?: string

valid?: boolean