---
title: Secrets Store
---

[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**

# Secrets Store

#### Secrets StoreStores

##### [List account stores](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/methods/list)

secrets\_store.stores.list(StoreListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[StoreListResponse](<https://developers.cloudflare.com/api/python/resources/secrets_store#(resource)%20secrets_store.stores%20%3E%20(model)%20store_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/secrets\_store/stores

##### [Get a store by ID](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/methods/get)

secrets\_store.stores.get(strstore\_id, StoreGetParams\*\*kwargs) -> [StoreGetResponse](<https://developers.cloudflare.com/api/python/resources/secrets_store#(resource)%20secrets_store.stores%20%3E%20(model)%20store_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/secrets\_store/stores/{store\_id}

##### [Create a store](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/methods/create)

secrets\_store.stores.create(StoreCreateParams\*\*kwargs) -> [StoreCreateResponse](<https://developers.cloudflare.com/api/python/resources/secrets_store#(resource)%20secrets_store.stores%20%3E%20(model)%20store_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/secrets\_store/stores

##### [Delete a store](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/methods/delete)

secrets\_store.stores.delete(strstore\_id, StoreDeleteParams\*\*kwargs) -> object

DELETE/accounts/{account\_id}/secrets\_store/stores/{store\_id}

##### ModelsExpand Collapse

<details>

<summary>

class StoreListResponse: …

</summary>

id: str

Store Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: datetime

When the secret was created.

formatdate-time

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_list_response%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

modified: datetime

When the secret was modified.

formatdate-time

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_list_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

name: str

The name of the store.

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

account\_id: Optional\[str]

Account Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_list_response%20%3E%20(schema)%20%3E%20(property)%20account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20secrets_store.stores%20%3E%20(model)%20store_list_response%20%3E%20(schema)>)

<details>

<summary>

class StoreGetResponse: …

</summary>

id: str

Store Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: datetime

When the secret was created.

formatdate-time

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_get_response%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

modified: datetime

When the secret was modified.

formatdate-time

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_get_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

name: str

The name of the store.

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

account\_id: Optional\[str]

Account Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_get_response%20%3E%20(schema)%20%3E%20(property)%20account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20secrets_store.stores%20%3E%20(model)%20store_get_response%20%3E%20(schema)>)

<details>

<summary>

class StoreCreateResponse: …

</summary>

id: str

Store Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: datetime

When the secret was created.

formatdate-time

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_create_response%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

modified: datetime

When the secret was modified.

formatdate-time

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_create_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

name: str

The name of the store.

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

account\_id: Optional\[str]

Account Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores%20%3E%20(model)%20store_create_response%20%3E%20(schema)%20%3E%20(property)%20account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20secrets_store.stores%20%3E%20(model)%20store_create_response%20%3E%20(schema)>)

#### Secrets StoreStoresSecrets

##### [List store secrets](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/subresources/secrets/methods/list)

secrets\_store.stores.secrets.list(strstore\_id, SecretListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[SecretListResponse](<https://developers.cloudflare.com/api/python/resources/secrets_store#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/secrets\_store/stores/{store\_id}/secrets

##### [Get a secret by ID](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/subresources/secrets/methods/get)

secrets\_store.stores.secrets.get(strsecret\_id, SecretGetParams\*\*kwargs) -> [SecretGetResponse](<https://developers.cloudflare.com/api/python/resources/secrets_store#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/secrets\_store/stores/{store\_id}/secrets/{secret\_id}

##### [Create a secret](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/subresources/secrets/methods/create)

secrets\_store.stores.secrets.create(strstore\_id, SecretCreateParams\*\*kwargs) -> SyncSinglePage\[[SecretCreateResponse](<https://developers.cloudflare.com/api/python/resources/secrets_store#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)>)]

POST/accounts/{account\_id}/secrets\_store/stores/{store\_id}/secrets

##### [Patch a secret](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/subresources/secrets/methods/edit)

secrets\_store.stores.secrets.edit(strsecret\_id, SecretEditParams\*\*kwargs) -> [SecretEditResponse](<https://developers.cloudflare.com/api/python/resources/secrets_store#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/secrets\_store/stores/{store\_id}/secrets/{secret\_id}

##### [Delete a secret](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/subresources/secrets/methods/delete)

secrets\_store.stores.secrets.delete(strsecret\_id, SecretDeleteParams\*\*kwargs) -> object

DELETE/accounts/{account\_id}/secrets\_store/stores/{store\_id}/secrets/{secret\_id}

##### [Delete secrets](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/subresources/secrets/methods/bulk_delete)

secrets\_store.stores.secrets.bulk\_delete(strstore\_id, SecretBulkDeleteParams\*\*kwargs) -> object

DELETE/accounts/{account\_id}/secrets\_store/stores/{store\_id}/secrets

##### [Duplicate Secret](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/stores/subresources/secrets/methods/duplicate)

secrets\_store.stores.secrets.duplicate(strsecret\_id, SecretDuplicateParams\*\*kwargs) -> [SecretDuplicateResponse](<https://developers.cloudflare.com/api/python/resources/secrets_store#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/secrets\_store/stores/{store\_id}/secrets/{secret\_id}/duplicate

##### ModelsExpand Collapse

<details>

<summary>

class SecretListResponse: …

</summary>

id: str

Secret identifier tag.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: datetime

When the secret was created.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

modified: datetime

When the secret was modified.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

name: str

The name of the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

status: Literal\["pending", "active", "deleted"]

</summary>

One of the following:

"pending"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"active"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"deleted"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

store\_id: str

Store Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20store_id">Link to this property</a>

comment: Optional\[str]

Freeform text describing the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

<details>

<summary>

scopes: Optional\[List\[Literal\["workers", "ai\_gateway", "dex", 3 more]]]

The list of services that can use this secret.

</summary>

One of the following:

"workers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"ai\_gateway"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"dex"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"access"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"containers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"websearch"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_list_response%20%3E%20(schema)>)

<details>

<summary>

class SecretGetResponse: …

</summary>

id: str

Secret identifier tag.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: datetime

When the secret was created.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

modified: datetime

When the secret was modified.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

name: str

The name of the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

status: Literal\["pending", "active", "deleted"]

</summary>

One of the following:

"pending"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"active"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"deleted"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

store\_id: str

Store Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20store_id">Link to this property</a>

comment: Optional\[str]

Freeform text describing the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

<details>

<summary>

scopes: Optional\[List\[Literal\["workers", "ai\_gateway", "dex", 3 more]]]

The list of services that can use this secret.

</summary>

One of the following:

"workers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"ai\_gateway"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"dex"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"access"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"containers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"websearch"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)%20%3E%20(property)%20scopes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_get_response%20%3E%20(schema)>)

<details>

<summary>

class SecretCreateResponse: …

</summary>

id: str

Secret identifier tag.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: datetime

When the secret was created.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

modified: datetime

When the secret was modified.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

name: str

The name of the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

status: Literal\["pending", "active", "deleted"]

</summary>

One of the following:

"pending"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"active"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"deleted"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

store\_id: str

Store Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20store_id">Link to this property</a>

comment: Optional\[str]

Freeform text describing the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

<details>

<summary>

scopes: Optional\[List\[Literal\["workers", "ai\_gateway", "dex", 3 more]]]

The list of services that can use this secret.

</summary>

One of the following:

"workers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"ai\_gateway"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"dex"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"access"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"containers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"websearch"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)%20%3E%20(property)%20scopes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_create_response%20%3E%20(schema)>)

<details>

<summary>

class SecretEditResponse: …

</summary>

id: str

Secret identifier tag.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: datetime

When the secret was created.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

modified: datetime

When the secret was modified.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

name: str

The name of the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

status: Literal\["pending", "active", "deleted"]

</summary>

One of the following:

"pending"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"active"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"deleted"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

store\_id: str

Store Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20store_id">Link to this property</a>

comment: Optional\[str]

Freeform text describing the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

<details>

<summary>

scopes: Optional\[List\[Literal\["workers", "ai\_gateway", "dex", 3 more]]]

The list of services that can use this secret.

</summary>

One of the following:

"workers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"ai\_gateway"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"dex"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"access"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"containers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"websearch"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)%20%3E%20(property)%20scopes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_edit_response%20%3E%20(schema)>)

<details>

<summary>

class SecretDuplicateResponse: …

</summary>

id: str

Secret identifier tag.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created: datetime

When the secret was created.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

modified: datetime

When the secret was modified.

formatdate-time

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

name: str

The name of the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

status: Literal\["pending", "active", "deleted"]

</summary>

One of the following:

"pending"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"active"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"deleted"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

store\_id: str

Store Identifier.

maxLength32

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20store_id">Link to this property</a>

comment: Optional\[str]

Freeform text describing the secret.

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

<details>

<summary>

scopes: Optional\[List\[Literal\["workers", "ai\_gateway", "dex", 3 more]]]

The list of services that can use this secret.

</summary>

One of the following:

"workers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"ai\_gateway"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"dex"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"access"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"containers"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"websearch"

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)%20%3E%20(property)%20scopes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20secrets_store.stores.secrets%20%3E%20(model)%20secret_duplicate_response%20%3E%20(schema)>)

#### Secrets StoreQuota

##### [View secret usage](https://developers.cloudflare.com/api/python/resources/secrets_store/subresources/quota/methods/get)

secrets\_store.quota.get(QuotaGetParams\*\*kwargs) -> [QuotaGetResponse](<https://developers.cloudflare.com/api/python/resources/secrets_store#(resource)%20secrets_store.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/secrets\_store/quota

##### ModelsExpand Collapse

<details>

<summary>

class QuotaGetResponse: …

</summary>

<details>

<summary>

secrets: Secrets

</summary>

quota: float

The number of secrets the account is entitled to use.

<a href="#(resource)%20secrets_store.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)%20%3E%20(property)%20secrets%20%3E%20(property)%20quota">Link to this property</a>

usage: float

The number of secrets the account is currently using.

<a href="#(resource)%20secrets_store.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)%20%3E%20(property)%20secrets%20%3E%20(property)%20usage">Link to this property</a>

</details>

<a href="#(resource)%20secrets_store.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)%20%3E%20(property)%20secrets">Link to this property</a>

</details>

[Link to this property](<#(resource)%20secrets_store.quota%20%3E%20(model)%20quota_get_response%20%3E%20(schema)>)