---
title: Validate
---

[Skip to content](#_top)

[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#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_response%20%3E%20(schema)>) {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_exists)

client.logpush.validate.destinationExists(ValidateDestinationExistsParams {destination\_conf, account\_id, zone\_id } params, RequestOptionsoptions?): [ValidateDestinationExistsResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_exists_response%20%3E%20(schema)>) {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#(resource)%20logpush.validate%20%3E%20(model)%20validate_origin_response%20%3E%20(schema)>) {message, valid } | null

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

##### ModelsExpand Collapse

<details>

<summary>

ValidateDestinationResponse {message, valid }

</summary>

message?: string

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_response%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

valid?: boolean

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_response%20%3E%20(schema)%20%3E%20(property)%20valid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_response%20%3E%20(schema)>)

<details>

<summary>

ValidateDestinationExistsResponse {exists }

</summary>

exists?: boolean

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_exists_response%20%3E%20(schema)%20%3E%20(property)%20exists">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_exists_response%20%3E%20(schema)>)

<details>

<summary>

ValidateOriginResponse {message, valid }

</summary>

message?: string

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_origin_response%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

valid?: boolean

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_origin_response%20%3E%20(schema)%20%3E%20(property)%20valid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.validate%20%3E%20(model)%20validate_origin_response%20%3E%20(schema)>)