> For the complete documentation index, see [llms.txt](https://docs.frends.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frends.com/reference/frends-platform-api/platform-api-reference/data-protection.md).

# Data Protection

## Report how certificate and ACME key material is protected at rest

> Lists the configured key-encryption certificate, every certificate thumbprint referenced by the Data Protection key ring, and the encrypted/plaintext row counts: what a database backup, a disaster-recovery drill or a tenant migration needs. Never returns key material.

```json
{"openapi":"3.1.1","info":{"title":"Frends API","version":"1.0.0"},"tags":[{"name":"DataProtection"}],"servers":[{"url":"https://example.v64.frendsapp.com/"}],"security":[{}],"paths":{"/api/v1/data-protection/status":{"get":{"tags":["DataProtection"],"summary":"Report how certificate and ACME key material is protected at rest","description":"Lists the configured key-encryption certificate, every certificate thumbprint referenced by the Data Protection key ring, and the encrypted/plaintext row counts: what a database backup, a disaster-recovery drill or a tenant migration needs. Never returns key material.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseOfDtoDataProtectionStatus"}}}}}}}},"components":{"schemas":{"ResponseOfDtoDataProtectionStatus":{"required":["data"],"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"description":"Response data","$ref":"#/components/schemas/DtoDataProtectionStatus"}]}}},"DtoDataProtectionStatus":{"required":["keyProtection","keyEncryptionCertificateThumbprint","keyEncryptionCertificateSource","keyEncryptionCertificateNotAfterUtc","previousKeyEncryptionCertificateThumbprints","keyRingEntries","keyRingCertificateThumbprints","unprotectedKeyRingEntries","certificatePrivateKeys","acmeAccountKeys","acmeExternalAccountBindingKeys","status","problems","warnings"],"type":"object","properties":{"keyProtection":{"type":"string","description":"Configured mode: None (plaintext) or Certificate"},"keyEncryptionCertificateThumbprint":{"type":["null","string"],"description":"Thumbprint of the current key-encryption certificate; null in None mode"},"keyEncryptionCertificateSource":{"type":["null","string"],"description":"Where the current key-encryption certificate was loaded from (store thumbprint, file or Key Vault secret)"},"keyEncryptionCertificateNotAfterUtc":{"type":["null","string"],"description":"Expiry of the current key-encryption certificate (UTC)","format":"date-time"},"previousKeyEncryptionCertificateThumbprints":{"type":"array","items":{"type":"string"},"description":"Thumbprints of the retired key-encryption certificates configured under Previous"},"keyRingEntries":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Number of Data Protection key-ring entries stored in the configuration database","format":"int32"},"keyRingCertificateThumbprints":{"type":"array","items":{"type":"string"},"description":"Thumbprints of every certificate that wraps a key-ring entry; all of them must travel with a database backup"},"unprotectedKeyRingEntries":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Key-ring entries stored without certificate wrapping (must be 0)","format":"int32"},"certificatePrivateKeys":{"description":"CERTIFICATE.CERTIFICATE_PFX rows","$ref":"#/components/schemas/DtoProtectedRowCounts"},"acmeAccountKeys":{"description":"ACME_ACCOUNT.ACCOUNT_KEY_PEM rows","$ref":"#/components/schemas/DtoProtectedRowCounts"},"acmeExternalAccountBindingKeys":{"description":"ACME_ACCOUNT.EAB_HMAC_KEY rows (accounts with an External Account Binding secret)","$ref":"#/components/schemas/DtoProtectedRowCounts"},"status":{"description":"Overall verdict, the same word /health reports: Unhealthy when Problems is non-empty, Degraded when only Warnings is, Healthy otherwise","$ref":"#/components/schemas/DataProtectionHealthStatus"},"problems":{"type":"array","items":{"type":"string"},"description":"Human-readable problems"},"warnings":{"type":"array","items":{"type":"string"},"description":"Conditions that need attention but do not stop the instance from working, such as rows still stored in plaintext in Certificate mode"}}},"DtoProtectedRowCounts":{"required":["encrypted","plaintext"],"type":"object","properties":{"encrypted":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Rows whose stored value carries the encryption marker","format":"int32"},"plaintext":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Rows still stored in plaintext","format":"int32"}}},"DataProtectionHealthStatus":{"enum":["Healthy","Degraded","Unhealthy"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.frends.com/reference/frends-platform-api/platform-api-reference/data-protection.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
