---
title: Security TXT
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Security TXT

##### [Retrieves security.txt](https://developers.cloudflare.com/api/python/resources/security_txt/methods/get)

security\_txt.get(SecurityTXTGetParams\*\*kwargs) -> [SecurityTXTGetResponse](<https://developers.cloudflare.com/api/python/resources/security_txt#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)>)

GET/zones/{zone\_id}/security-center/securitytxt

##### [Updates security.txt](https://developers.cloudflare.com/api/python/resources/security_txt/methods/update)

security\_txt.update(SecurityTXTUpdateParams\*\*kwargs) -> [SecurityTXTUpdateResponse](<https://developers.cloudflare.com/api/python/resources/security_txt#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)>)

PUT/zones/{zone\_id}/security-center/securitytxt

##### [Deletes security.txt](https://developers.cloudflare.com/api/python/resources/security_txt/methods/delete)

security\_txt.delete(SecurityTXTDeleteParams\*\*kwargs) -> [SecurityTXTDeleteResponse](<https://developers.cloudflare.com/api/python/resources/security_txt#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)>)

DELETE/zones/{zone\_id}/security-center/securitytxt

##### ModelsExpand Collapse

<details>

<summary>

class SecurityTXTGetResponse: …

</summary>

acknowledgments: Optional\[List\[str]]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)%20%3E%20(property)%20acknowledgments">Link to this property</a>

canonical: Optional\[List\[str]]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)%20%3E%20(property)%20canonical">Link to this property</a>

contact: Optional\[List\[str]]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)%20%3E%20(property)%20contact">Link to this property</a>

enabled: Optional\[bool]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

encryption: Optional\[List\[str]]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)%20%3E%20(property)%20encryption">Link to this property</a>

expires: Optional\[datetime]

formatdate-time

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)%20%3E%20(property)%20expires">Link to this property</a>

hiring: Optional\[List\[str]]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)%20%3E%20(property)%20hiring">Link to this property</a>

policy: Optional\[List\[str]]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)%20%3E%20(property)%20policy">Link to this property</a>

preferred\_languages: Optional\[str]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)%20%3E%20(property)%20preferred_languages">Link to this property</a>

</details>

[Link to this property](<#(resource)%20security_txt%20%3E%20(model)%20security_txt_get_response%20%3E%20(schema)>)

<details>

<summary>

class SecurityTXTUpdateResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20security_txt%20%3E%20(model)%20security_txt_update_response%20%3E%20(schema)>)

<details>

<summary>

class SecurityTXTDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20security_txt%20%3E%20(model)%20security_txt_delete_response%20%3E%20(schema)>)