> 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/certificates.md).

# Certificates

## GET /api/v1/certificates

> List certificates for an agent group

```json
{"openapi":"3.1.1","info":{"title":"Frends API","version":"1.0.0"},"tags":[{"name":"Certificates"}],"servers":[{"url":"https://example.v64.frendsapp.com/"}],"security":[{}],"paths":{"/api/v1/certificates":{"get":{"tags":["Certificates"],"summary":"List certificates for an agent group","parameters":[{"name":"agentGroupName","in":"query","description":"Target agent group name","schema":{"type":"string"}},{"name":"name","in":"query","description":"Only certificates with this name (optional)","schema":{"type":"string"}},{"name":"purpose","in":"query","description":"Only certificates with this purpose: HttpsServer, ClientAuthentication or ClientCertificateIssuer (optional)","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseOfListOfDtoCertificateGet"}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Forbidden"}}}}},"components":{"schemas":{"ResponseOfListOfDtoCertificateGet":{"required":["data"],"type":"object","properties":{"data":{"type":["null","array"],"items":{"$ref":"#/components/schemas/DtoCertificateGet"},"description":"Response data"}}},"DtoCertificateGet":{"required":["certificateGuid","name","purpose","thumbprint","subject","issuer","notBeforeUtc","notAfterUtc","isActive","hasPrivateKey","source","managedByFrends","agentGroupName","agents","acmeOrderGuid"],"type":"object","properties":{"certificateGuid":{"type":"string","description":"Certificate unique identifier","format":"uuid"},"name":{"type":"string","description":"Stable certificate name; processes and triggers reference it as #cert.<name>. Uploading a new certificate under an existing name rotates it"},"purpose":{"description":"Certificate purpose: HttpsServer (agent HTTPS listener), ClientAuthentication (client certificate with private key) or ClientCertificateIssuer (trusted issuer for HTTP trigger client certificates)","$ref":"#/components/schemas/CertificatePurpose"},"thumbprint":{"type":"string","description":"Certificate thumbprint (SHA-1, uppercase hex)"},"subject":{"type":["null","string"],"description":"Certificate subject"},"issuer":{"type":["null","string"],"description":"Certificate issuer"},"notBeforeUtc":{"type":"string","description":"Validity start (UTC)","format":"date-time"},"notAfterUtc":{"type":"string","description":"Validity end (UTC)","format":"date-time"},"isActive":{"type":"boolean","description":"Whether this certificate is the active version of its name in its agent group"},"hasPrivateKey":{"type":"boolean","description":"Whether the stored certificate carries a private key (always true except for issuer certificates)"},"source":{"type":"string","description":"Certificate source (Manual or ACME)"},"managedByFrends":{"type":"boolean","description":"True when the certificate is an HTTPS certificate of a Frends-operated agent group and can only be changed by Frends operations"},"agentGroupName":{"type":"string","description":"Agent group name"},"agents":{"type":"array","items":{"$ref":"#/components/schemas/DtoCertificateAgentStatus"},"description":"Install status per agent in the certificate's agent group, as reported by agent heartbeats"},"acmeOrderGuid":{"type":["null","string"],"description":"Guid of the ACME order that issued this certificate (null for manually uploaded certificates). A renewal is issued by its own order","format":"uuid"}}},"CertificatePurpose":{"enum":["HttpsServer","ClientAuthentication","ClientCertificateIssuer"]},"DtoCertificateAgentStatus":{"required":["agentName","status","thumbprint","installedUtc","message","reportedUtc","served"],"type":"object","properties":{"agentName":{"type":"string","description":"Agent name"},"status":{"type":"string","description":"Installed | Failed | Missing | Unknown (reported by the agent for this certificate, or Unknown when agent status information is unavailable), OtherVersion (the agent holds another version of the same name), NotReported (the agent has not reported this certificate)"},"thumbprint":{"type":["null","string"],"description":"Thumbprint the agent reported for the name, when any"},"installedUtc":{"type":["null","string"],"description":"When the agent installed the reported version (UTC)","format":"date-time"},"message":{"type":["null","string"],"description":"Failure or explanation from the agent, when any"},"reportedUtc":{"type":["null","string"],"description":"Timestamp of the heartbeat the status comes from (UTC), when any","format":"date-time"},"served":{"type":"boolean","description":"True when the agent reports serving this certificate on its HTTPS listener"}}},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}}}}}}
```

## POST /api/v1/certificates

> Upload a certificate for an agent group

```json
{"openapi":"3.1.1","info":{"title":"Frends API","version":"1.0.0"},"tags":[{"name":"Certificates"}],"servers":[{"url":"https://example.v64.frendsapp.com/"}],"security":[{}],"paths":{"/api/v1/certificates":{"post":{"tags":["Certificates"],"summary":"Upload a certificate for an agent group","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"file":{"$ref":"#/components/schemas/IFormFile"}}},{"type":"object","properties":{"agentGroupName":{"type":"string"}}},{"type":"object","properties":{"name":{"type":"string"}}},{"type":"object","properties":{"purpose":{"type":"string"}}},{"type":"object","properties":{"password":{"type":"string"}}}]}}},"required":true},"responses":{"201":{"description":"Created","headers":{"Location":{"description":"Location of the uploaded certificate","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseOfDtoCertificateGet"}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Forbidden"}}}}},"components":{"schemas":{"IFormFile":{"type":"string","format":"binary"},"ResponseOfDtoCertificateGet":{"required":["data"],"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"description":"Response data","$ref":"#/components/schemas/DtoCertificateGet"}]}}},"DtoCertificateGet":{"required":["certificateGuid","name","purpose","thumbprint","subject","issuer","notBeforeUtc","notAfterUtc","isActive","hasPrivateKey","source","managedByFrends","agentGroupName","agents","acmeOrderGuid"],"type":"object","properties":{"certificateGuid":{"type":"string","description":"Certificate unique identifier","format":"uuid"},"name":{"type":"string","description":"Stable certificate name; processes and triggers reference it as #cert.<name>. Uploading a new certificate under an existing name rotates it"},"purpose":{"description":"Certificate purpose: HttpsServer (agent HTTPS listener), ClientAuthentication (client certificate with private key) or ClientCertificateIssuer (trusted issuer for HTTP trigger client certificates)","$ref":"#/components/schemas/CertificatePurpose"},"thumbprint":{"type":"string","description":"Certificate thumbprint (SHA-1, uppercase hex)"},"subject":{"type":["null","string"],"description":"Certificate subject"},"issuer":{"type":["null","string"],"description":"Certificate issuer"},"notBeforeUtc":{"type":"string","description":"Validity start (UTC)","format":"date-time"},"notAfterUtc":{"type":"string","description":"Validity end (UTC)","format":"date-time"},"isActive":{"type":"boolean","description":"Whether this certificate is the active version of its name in its agent group"},"hasPrivateKey":{"type":"boolean","description":"Whether the stored certificate carries a private key (always true except for issuer certificates)"},"source":{"type":"string","description":"Certificate source (Manual or ACME)"},"managedByFrends":{"type":"boolean","description":"True when the certificate is an HTTPS certificate of a Frends-operated agent group and can only be changed by Frends operations"},"agentGroupName":{"type":"string","description":"Agent group name"},"agents":{"type":"array","items":{"$ref":"#/components/schemas/DtoCertificateAgentStatus"},"description":"Install status per agent in the certificate's agent group, as reported by agent heartbeats"},"acmeOrderGuid":{"type":["null","string"],"description":"Guid of the ACME order that issued this certificate (null for manually uploaded certificates). A renewal is issued by its own order","format":"uuid"}}},"CertificatePurpose":{"enum":["HttpsServer","ClientAuthentication","ClientCertificateIssuer"]},"DtoCertificateAgentStatus":{"required":["agentName","status","thumbprint","installedUtc","message","reportedUtc","served"],"type":"object","properties":{"agentName":{"type":"string","description":"Agent name"},"status":{"type":"string","description":"Installed | Failed | Missing | Unknown (reported by the agent for this certificate, or Unknown when agent status information is unavailable), OtherVersion (the agent holds another version of the same name), NotReported (the agent has not reported this certificate)"},"thumbprint":{"type":["null","string"],"description":"Thumbprint the agent reported for the name, when any"},"installedUtc":{"type":["null","string"],"description":"When the agent installed the reported version (UTC)","format":"date-time"},"message":{"type":["null","string"],"description":"Failure or explanation from the agent, when any"},"reportedUtc":{"type":["null","string"],"description":"Timestamp of the heartbeat the status comes from (UTC), when any","format":"date-time"},"served":{"type":"boolean","description":"True when the agent reports serving this certificate on its HTTPS listener"}}},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}}}}}}
```

## Get a single certificate

> Metadata only, never key material. Includes the install status reported by every agent in the certificate's agent group.

```json
{"openapi":"3.1.1","info":{"title":"Frends API","version":"1.0.0"},"tags":[{"name":"Certificates"}],"servers":[{"url":"https://example.v64.frendsapp.com/"}],"security":[{}],"paths":{"/api/v1/certificates/{certificateGuid}":{"get":{"tags":["Certificates"],"summary":"Get a single certificate","description":"Metadata only, never key material. Includes the install status reported by every agent in the certificate's agent group.","operationId":"GetCertificateByGuid","parameters":[{"name":"certificateGuid","in":"path","description":"Certificate unique identifier","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseOfDtoCertificateGet"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"ResponseOfDtoCertificateGet":{"required":["data"],"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"description":"Response data","$ref":"#/components/schemas/DtoCertificateGet"}]}}},"DtoCertificateGet":{"required":["certificateGuid","name","purpose","thumbprint","subject","issuer","notBeforeUtc","notAfterUtc","isActive","hasPrivateKey","source","managedByFrends","agentGroupName","agents","acmeOrderGuid"],"type":"object","properties":{"certificateGuid":{"type":"string","description":"Certificate unique identifier","format":"uuid"},"name":{"type":"string","description":"Stable certificate name; processes and triggers reference it as #cert.<name>. Uploading a new certificate under an existing name rotates it"},"purpose":{"description":"Certificate purpose: HttpsServer (agent HTTPS listener), ClientAuthentication (client certificate with private key) or ClientCertificateIssuer (trusted issuer for HTTP trigger client certificates)","$ref":"#/components/schemas/CertificatePurpose"},"thumbprint":{"type":"string","description":"Certificate thumbprint (SHA-1, uppercase hex)"},"subject":{"type":["null","string"],"description":"Certificate subject"},"issuer":{"type":["null","string"],"description":"Certificate issuer"},"notBeforeUtc":{"type":"string","description":"Validity start (UTC)","format":"date-time"},"notAfterUtc":{"type":"string","description":"Validity end (UTC)","format":"date-time"},"isActive":{"type":"boolean","description":"Whether this certificate is the active version of its name in its agent group"},"hasPrivateKey":{"type":"boolean","description":"Whether the stored certificate carries a private key (always true except for issuer certificates)"},"source":{"type":"string","description":"Certificate source (Manual or ACME)"},"managedByFrends":{"type":"boolean","description":"True when the certificate is an HTTPS certificate of a Frends-operated agent group and can only be changed by Frends operations"},"agentGroupName":{"type":"string","description":"Agent group name"},"agents":{"type":"array","items":{"$ref":"#/components/schemas/DtoCertificateAgentStatus"},"description":"Install status per agent in the certificate's agent group, as reported by agent heartbeats"},"acmeOrderGuid":{"type":["null","string"],"description":"Guid of the ACME order that issued this certificate (null for manually uploaded certificates). A renewal is issued by its own order","format":"uuid"}}},"CertificatePurpose":{"enum":["HttpsServer","ClientAuthentication","ClientCertificateIssuer"]},"DtoCertificateAgentStatus":{"required":["agentName","status","thumbprint","installedUtc","message","reportedUtc","served"],"type":"object","properties":{"agentName":{"type":"string","description":"Agent name"},"status":{"type":"string","description":"Installed | Failed | Missing | Unknown (reported by the agent for this certificate, or Unknown when agent status information is unavailable), OtherVersion (the agent holds another version of the same name), NotReported (the agent has not reported this certificate)"},"thumbprint":{"type":["null","string"],"description":"Thumbprint the agent reported for the name, when any"},"installedUtc":{"type":["null","string"],"description":"When the agent installed the reported version (UTC)","format":"date-time"},"message":{"type":["null","string"],"description":"Failure or explanation from the agent, when any"},"reportedUtc":{"type":["null","string"],"description":"Timestamp of the heartbeat the status comes from (UTC), when any","format":"date-time"},"served":{"type":"boolean","description":"True when the agent reports serving this certificate on its HTTPS listener"}}},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}}}}}}
```

## DELETE /api/v1/certificates/{certificateGuid}

> Delete a certificate

```json
{"openapi":"3.1.1","info":{"title":"Frends API","version":"1.0.0"},"tags":[{"name":"Certificates"}],"servers":[{"url":"https://example.v64.frendsapp.com/"}],"security":[{}],"paths":{"/api/v1/certificates/{certificateGuid}":{"delete":{"tags":["Certificates"],"summary":"Delete a certificate","parameters":[{"name":"certificateGuid","in":"path","description":"Certificate unique identifier","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No Content"},"403":{"description":"Forbidden"},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Conflict"}}}}},"components":{"schemas":{"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}}}}}}
```

## POST /api/v1/certificates/{certificateGuid}/activate

> Activate a certificate as the current version of its name in its agent group

```json
{"openapi":"3.1.1","info":{"title":"Frends API","version":"1.0.0"},"tags":[{"name":"Certificates"}],"servers":[{"url":"https://example.v64.frendsapp.com/"}],"security":[{}],"paths":{"/api/v1/certificates/{certificateGuid}/activate":{"post":{"tags":["Certificates"],"summary":"Activate a certificate as the current version of its name in its agent group","parameters":[{"name":"certificateGuid","in":"path","description":"Certificate unique identifier","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseOfDtoCertificateGet"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"ResponseOfDtoCertificateGet":{"required":["data"],"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"description":"Response data","$ref":"#/components/schemas/DtoCertificateGet"}]}}},"DtoCertificateGet":{"required":["certificateGuid","name","purpose","thumbprint","subject","issuer","notBeforeUtc","notAfterUtc","isActive","hasPrivateKey","source","managedByFrends","agentGroupName","agents","acmeOrderGuid"],"type":"object","properties":{"certificateGuid":{"type":"string","description":"Certificate unique identifier","format":"uuid"},"name":{"type":"string","description":"Stable certificate name; processes and triggers reference it as #cert.<name>. Uploading a new certificate under an existing name rotates it"},"purpose":{"description":"Certificate purpose: HttpsServer (agent HTTPS listener), ClientAuthentication (client certificate with private key) or ClientCertificateIssuer (trusted issuer for HTTP trigger client certificates)","$ref":"#/components/schemas/CertificatePurpose"},"thumbprint":{"type":"string","description":"Certificate thumbprint (SHA-1, uppercase hex)"},"subject":{"type":["null","string"],"description":"Certificate subject"},"issuer":{"type":["null","string"],"description":"Certificate issuer"},"notBeforeUtc":{"type":"string","description":"Validity start (UTC)","format":"date-time"},"notAfterUtc":{"type":"string","description":"Validity end (UTC)","format":"date-time"},"isActive":{"type":"boolean","description":"Whether this certificate is the active version of its name in its agent group"},"hasPrivateKey":{"type":"boolean","description":"Whether the stored certificate carries a private key (always true except for issuer certificates)"},"source":{"type":"string","description":"Certificate source (Manual or ACME)"},"managedByFrends":{"type":"boolean","description":"True when the certificate is an HTTPS certificate of a Frends-operated agent group and can only be changed by Frends operations"},"agentGroupName":{"type":"string","description":"Agent group name"},"agents":{"type":"array","items":{"$ref":"#/components/schemas/DtoCertificateAgentStatus"},"description":"Install status per agent in the certificate's agent group, as reported by agent heartbeats"},"acmeOrderGuid":{"type":["null","string"],"description":"Guid of the ACME order that issued this certificate (null for manually uploaded certificates). A renewal is issued by its own order","format":"uuid"}}},"CertificatePurpose":{"enum":["HttpsServer","ClientAuthentication","ClientCertificateIssuer"]},"DtoCertificateAgentStatus":{"required":["agentName","status","thumbprint","installedUtc","message","reportedUtc","served"],"type":"object","properties":{"agentName":{"type":"string","description":"Agent name"},"status":{"type":"string","description":"Installed | Failed | Missing | Unknown (reported by the agent for this certificate, or Unknown when agent status information is unavailable), OtherVersion (the agent holds another version of the same name), NotReported (the agent has not reported this certificate)"},"thumbprint":{"type":["null","string"],"description":"Thumbprint the agent reported for the name, when any"},"installedUtc":{"type":["null","string"],"description":"When the agent installed the reported version (UTC)","format":"date-time"},"message":{"type":["null","string"],"description":"Failure or explanation from the agent, when any"},"reportedUtc":{"type":["null","string"],"description":"Timestamp of the heartbeat the status comes from (UTC), when any","format":"date-time"},"served":{"type":"boolean","description":"True when the agent reports serving this certificate on its HTTPS listener"}}},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}}}}}}
```

## Distribute a certificate to the agents of its agent group

> Returns which agents received the certificate now and which were skipped. Agents without a recent heartbeat receive an active certificate on their next synchronization if their version is 6.4 or later; outdated agents (below 6.4) cannot receive certificates.

```json
{"openapi":"3.1.1","info":{"title":"Frends API","version":"1.0.0"},"tags":[{"name":"Certificates"}],"servers":[{"url":"https://example.v64.frendsapp.com/"}],"security":[{}],"paths":{"/api/v1/certificates/{certificateGuid}/distribute":{"post":{"tags":["Certificates"],"summary":"Distribute a certificate to the agents of its agent group","description":"Returns which agents received the certificate now and which were skipped. Agents without a recent heartbeat receive an active certificate on their next synchronization if their version is 6.4 or later; outdated agents (below 6.4) cannot receive certificates.","parameters":[{"name":"certificateGuid","in":"path","description":"Certificate unique identifier","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseOfDtoCertificateDistributionResult"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"ResponseOfDtoCertificateDistributionResult":{"required":["data"],"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"description":"Response data","$ref":"#/components/schemas/DtoCertificateDistributionResult"}]}}},"DtoCertificateDistributionResult":{"required":["sentToAgents","sentWithUnknownVersion","outdatedAgents","inactiveAgents"],"type":"object","properties":{"sentToAgents":{"type":"array","items":{"type":"string"},"description":"Agents whose configuration queue received the certificate"},"sentWithUnknownVersion":{"type":"array","items":{"type":"string"},"description":"Agents that received the certificate although their version is unknown"},"outdatedAgents":{"type":"array","items":{"type":"string"},"description":"Agents skipped because their version is too old for certificate distribution"},"inactiveAgents":{"type":"array","items":{"type":"string"},"description":"Agents skipped because they have not sent a heartbeat recently; they receive the certificate on their next synchronization if it is active and their version is 6.4 or later"}}},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}}}}}}
```

## List the deployed process versions that depend on a certificate

> Processes whose steps, triggers or process variables reference the certificate as #cert.\<name> in its agent group; for issuer certificates also processes with certificate-authenticated HTTP triggers. Deleting the last active certificate a listed process depends on is refused.

```json
{"openapi":"3.1.1","info":{"title":"Frends API","version":"1.0.0"},"tags":[{"name":"Certificates"}],"servers":[{"url":"https://example.v64.frendsapp.com/"}],"security":[{}],"paths":{"/api/v1/certificates/{certificateGuid}/usages":{"get":{"tags":["Certificates"],"summary":"List the deployed process versions that depend on a certificate","description":"Processes whose steps, triggers or process variables reference the certificate as #cert.<name> in its agent group; for issuer certificates also processes with certificate-authenticated HTTP triggers. Deleting the last active certificate a listed process depends on is refused.","parameters":[{"name":"certificateGuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseOfListOfDtoCertificateUsage"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}}},"components":{"schemas":{"ResponseOfListOfDtoCertificateUsage":{"required":["data"],"type":"object","properties":{"data":{"type":["null","array"],"items":{"$ref":"#/components/schemas/DtoCertificateUsage"},"description":"Response data"}}},"DtoCertificateUsage":{"required":["processGuid","processName","version","agentGroupName","environment","kind"],"type":"object","properties":{"processGuid":{"type":"string","description":"Process guid","format":"uuid"},"processName":{"type":"string","description":"Process name"},"version":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Deployed process version","format":"int32"},"agentGroupName":{"type":"string","description":"Agent group the version is deployed to"},"environment":{"type":"string","description":"Environment of the deployment"},"kind":{"type":"string","description":"ProcessReference (a step or trigger uses #cert.<name>), ProcessVariableReference (a process variable of this agent group uses #cert.<name>) or HttpTriggerCertificateAuthentication (an HTTP trigger authenticates callers by client certificate, which relies on the group's issuer certificates)"}}}}}}
```

## Revoke an ACME-issued certificate at its certificate authority

> Signed with the ACME account that ordered the certificate. The certificate stays in Frends and on the agents; delete it separately. Revoke before deleting: a deleted certificate can no longer be revoked.

```json
{"openapi":"3.1.1","info":{"title":"Frends API","version":"1.0.0"},"tags":[{"name":"Certificates"}],"servers":[{"url":"https://example.v64.frendsapp.com/"}],"security":[{}],"paths":{"/api/v1/certificates/{certificateGuid}/revoke":{"post":{"tags":["Certificates"],"summary":"Revoke an ACME-issued certificate at its certificate authority","description":"Signed with the ACME account that ordered the certificate. The certificate stays in Frends and on the agents; delete it separately. Revoke before deleting: a deleted certificate can no longer be revoked.","parameters":[{"name":"certificateGuid","in":"path","description":"Certificate unique identifier","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeCertificateRequest"}}},"required":true},"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"RevokeCertificateRequest":{"type":"object","properties":{"reason":{"description":"Why the certificate is revoked (Unspecified, KeyCompromise, Superseded or CessationOfOperation); KeyCompromise when the private key may have leaked","$ref":"#/components/schemas/AcmeRevocationReason"}}},"AcmeRevocationReason":{"enum":["Unspecified","KeyCompromise","Superseded","CessationOfOperation"],"default":"Unspecified"},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}}}}}}
```


---

# 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/certificates.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.
