Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-key-vault:microsoft-azure-key-vault-deletedcertificates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: KeyVaultClient Deletedcertificates API
version: '7.6'
description: The key vault client performs cryptographic key operations and vault operations against the Key Vault service.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
security:
- OAuth2Auth:
- https://vault.azure.net/.default
tags:
- name: Deletedcertificates
paths:
/deletedcertificates:
get:
operationId: GetDeletedCertificates
summary: Lists the deleted certificates in the specified vault currently available for…
description: The GetDeletedCertificates operation retrieves the certificates in the current vault which are in a deleted state and ready for recovery or purging. This operation includes deletion-specific information. This operation requires the certificates/get/list permission. This operation can only be enabled on soft-delete enabled vaults.
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: maxresults
in: query
description: Maximum number of results to return in a page. If not specified the service will return up to 25 results.
required: false
schema:
type: integer
format: int32
maximum: 25
minimum: 1
- name: includePending
in: query
description: Specifies whether to include certificates which are not completely provisioned.
required: false
schema:
type: boolean
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/DeletedCertificateListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/KeyVaultError'
x-ms-pageable:
nextLinkName: nextLink
tags:
- Deletedcertificates
/deletedcertificates/{certificate-name}:
get:
operationId: GetDeletedCertificate
summary: Retrieves information about the specified deleted certificate
description: The GetDeletedCertificate operation retrieves the deleted certificate information plus its attributes, such as retention interval, scheduled permanent deletion and the current deletion recovery level. This operation requires the certificates/get permission.
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: certificate-name
in: path
description: The name of the certificate
required: true
x-ms-client-name: certificateName
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/DeletedCertificateBundle'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/KeyVaultError'
tags:
- Deletedcertificates
delete:
operationId: PurgeDeletedCertificate
summary: Permanently deletes the specified deleted certificate
description: The PurgeDeletedCertificate operation performs an irreversible deletion of the specified certificate, without possibility for recovery. The operation is not available if the recovery level does not specify 'Purgeable'. This operation requires the certificate/purge permission.
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: certificate-name
in: path
description: The name of the certificate
required: true
x-ms-client-name: certificateName
schema:
type: string
responses:
'204':
description: 'There is no content to send for this request, but the headers may be useful. '
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/KeyVaultError'
tags:
- Deletedcertificates
/deletedcertificates/{certificate-name}/recover:
post:
operationId: RecoverDeletedCertificate
summary: Recovers the deleted certificate back to its current version under /certificates
description: The RecoverDeletedCertificate operation performs the reversal of the Delete operation. The operation is applicable in vaults enabled for soft-delete, and must be issued during the retention interval (available in the deleted certificate's attributes). This operation requires the certificates/recover permission.
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: certificate-name
in: path
description: The name of the deleted certificate
required: true
x-ms-client-name: certificateName
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/CertificateBundle'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/KeyVaultError'
tags:
- Deletedcertificates
components:
schemas:
KeyProperties:
type: object
description: Properties of the key pair backing a certificate.
properties:
exportable:
type: boolean
description: Indicates if the private key can be exported. Release policy must be provided when creating the first version of an exportable key.
kty:
$ref: '#/components/schemas/JsonWebKeyType'
description: The type of key pair to be used for the certificate.
x-ms-client-name: keyType
key_size:
type: integer
format: int32
description: 'The key size in bits. For example: 2048, 3072, or 4096 for RSA.'
x-ms-client-name: keySize
reuse_key:
type: boolean
description: Indicates if the same key pair will be used on certificate renewal.
x-ms-client-name: reuseKey
crv:
$ref: '#/components/schemas/JsonWebKeyCurveName'
description: Elliptic curve name. For valid values, see JsonWebKeyCurveName.
x-ms-client-name: curve
X509CertificateProperties:
type: object
description: Properties of the X509 component of a certificate.
properties:
subject:
type: string
description: The subject name. Should be a valid X509 distinguished Name.
ekus:
type: array
description: The enhanced key usage.
items:
type: string
sans:
$ref: '#/components/schemas/SubjectAlternativeNames'
description: The subject alternative names.
x-ms-client-name: subjectAlternativeNames
key_usage:
type: array
description: Defines how the certificate's key may be used.
items:
$ref: '#/components/schemas/KeyUsageType'
x-ms-client-name: keyUsage
validity_months:
type: integer
format: int32
description: The duration that the certificate is valid in months.
minimum: 0
x-ms-client-name: ValidityInMonths
LifetimeAction:
type: object
description: Action and its trigger that will be performed by Key Vault over the lifetime of a certificate.
properties:
trigger:
$ref: '#/components/schemas/Trigger'
description: The condition that will execute the action.
action:
$ref: '#/components/schemas/Action'
description: The action that will be executed.
DeletionRecoveryLevel:
type: string
description: Reflects the deletion recovery level currently in effect for secrets in the current vault. If it contains 'Purgeable', the secret can be permanently deleted by a privileged user; otherwise, only the system can purge the secret, at the end of the retention interval.
enum:
- Purgeable
- Recoverable+Purgeable
- Recoverable
- Recoverable+ProtectedSubscription
- CustomizedRecoverable+Purgeable
- CustomizedRecoverable
- CustomizedRecoverable+ProtectedSubscription
x-ms-enum:
name: DeletionRecoveryLevel
modelAsString: true
values:
- name: Purgeable
value: Purgeable
description: Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.)
- name: RecoverablePurgeable
value: Recoverable+Purgeable
description: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered
- name: Recoverable
value: Recoverable
description: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered
- name: RecoverableProtectedSubscription
value: Recoverable+ProtectedSubscription
description: Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered
- name: CustomizedRecoverablePurgeable
value: CustomizedRecoverable+Purgeable
description: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled.
- name: CustomizedRecoverable
value: CustomizedRecoverable
description: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available.
- name: CustomizedRecoverableProtectedSubscription
value: CustomizedRecoverable+ProtectedSubscription
description: Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7 <= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled.
KeyUsageType:
type: string
description: Supported usages of a certificate key.
enum:
- digitalSignature
- nonRepudiation
- keyEncipherment
- dataEncipherment
- keyAgreement
- keyCertSign
- cRLSign
- encipherOnly
- decipherOnly
x-ms-enum:
name: KeyUsageType
modelAsString: true
values:
- name: digitalSignature
value: digitalSignature
description: Indicates that the certificate key can be used as a digital signature.
- name: nonRepudiation
value: nonRepudiation
description: Indicates that the certificate key can be used for authentication.
- name: keyEncipherment
value: keyEncipherment
description: Indicates that the certificate key can be used for key encryption.
- name: dataEncipherment
value: dataEncipherment
description: Indicates that the certificate key can be used for data encryption.
- name: keyAgreement
value: keyAgreement
description: Indicates that the certificate key can be used to determine key agreement, such as a key created using the Diffie-Hellman key agreement algorithm.
- name: keyCertSign
value: keyCertSign
description: Indicates that the certificate key can be used to sign certificates.
- name: cRLSign
value: cRLSign
description: Indicates that the certificate key can be used to sign a certificate revocation list.
- name: encipherOnly
value: encipherOnly
description: Indicates that the certificate key can be used for encryption only.
- name: decipherOnly
value: decipherOnly
description: Indicates that the certificate key can be used for decryption only.
DeletedCertificateBundle:
type: object
description: A Deleted Certificate consisting of its previous id, attributes and its tags, as well as information on when it will be purged.
properties:
id:
type: string
description: The certificate id.
readOnly: true
kid:
type: string
description: The key id.
readOnly: true
sid:
type: string
description: The secret id.
readOnly: true
x5t:
type: string
format: base64url
description: Thumbprint of the certificate.
readOnly: true
x-ms-client-name: X509Thumbprint
policy:
$ref: '#/components/schemas/CertificatePolicy'
description: The management policy.
readOnly: true
cer:
type: string
format: byte
description: CER contents of x509 certificate.
contentType:
type: string
description: The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.
attributes:
$ref: '#/components/schemas/CertificateAttributes'
description: The certificate attributes.
tags:
type: object
description: Application specific metadata in the form of key-value pairs.
additionalProperties:
type: string
preserveCertOrder:
type: boolean
description: Specifies whether the certificate chain preserves its original order. The default value is false, which sets the leaf certificate at index 0.
recoveryId:
type: string
description: The url of the recovery object, used to identify and recover the deleted certificate.
scheduledPurgeDate:
type: integer
format: unixtime
description: The time when the certificate is scheduled to be purged, in UTC
readOnly: true
deletedDate:
type: integer
format: unixtime
description: The time when the certificate was deleted, in UTC
readOnly: true
Trigger:
type: object
description: A condition to be satisfied for an action to be executed.
properties:
lifetime_percentage:
type: integer
format: int32
description: Percentage of lifetime at which to trigger. Value should be between 1 and 99.
minimum: 1
maximum: 99
x-ms-client-name: lifetimePercentage
days_before_expiry:
type: integer
format: int32
description: Days before expiry to attempt renewal. Value should be between 1 and validity_in_months multiplied by 27. If validity_in_months is 36, then value should be between 1 and 972 (36 * 27).
x-ms-client-name: daysBeforeExpiry
CertificateAttributes:
type: object
description: The certificate management attributes.
properties:
enabled:
type: boolean
description: Determines whether the object is enabled.
nbf:
type: integer
format: unixtime
description: Not before date in UTC.
x-ms-client-name: NotBefore
exp:
type: integer
format: unixtime
description: Expiry date in UTC.
x-ms-client-name: Expires
created:
type: integer
format: unixtime
description: Creation time in UTC.
readOnly: true
updated:
type: integer
format: unixtime
description: Last updated time in UTC.
readOnly: true
recoverableDays:
type: integer
format: int32
description: softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0.
readOnly: true
recoveryLevel:
$ref: '#/components/schemas/DeletionRecoveryLevel'
description: Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval.
readOnly: true
SubjectAlternativeNames:
type: object
description: The Subject Alternative Names of a X509 object.
properties:
emails:
type: array
description: Email addresses.
items:
type: string
dns_names:
type: array
description: Domain Names.
items:
type: string
x-ms-client-name: dnsNames
upns:
type: array
description: User Principal Names.
items:
type: string
CertificatePolicyAction:
type: string
description: The type of the action.
enum:
- EmailContacts
- AutoRenew
x-ms-enum:
name: CertificatePolicyAction
modelAsString: false
values:
- name: EmailContacts
value: EmailContacts
description: A certificate policy that will email certificate contacts.
- name: AutoRenew
value: AutoRenew
description: A certificate policy that will auto-renew a certificate.
IssuerParameters:
type: object
description: Parameters for the issuer of the X509 component of a certificate.
properties:
name:
type: string
description: Name of the referenced issuer object or reserved names; for example, 'Self' or 'Unknown'.
cty:
type: string
description: Certificate type as supported by the provider (optional); for example 'OV-SSL', 'EV-SSL'
x-ms-client-name: CertificateType
cert_transparency:
type: boolean
description: Indicates if the certificates generated under this policy should be published to certificate transparency logs.
x-ms-client-name: CertificateTransparency
Error:
type:
- object
- 'null'
properties:
code:
type: string
description: The error code.
readOnly: true
message:
type: string
description: The error message.
readOnly: true
innererror:
$ref: '#/components/schemas/Error'
description: The key vault server error.
readOnly: true
x-ms-client-name: innerError
KeyVaultError:
type: object
description: The key vault error exception.
properties:
error:
$ref: '#/components/schemas/Error'
description: The key vault server error.
readOnly: true
SecretProperties:
type: object
description: Properties of the key backing a certificate.
properties:
contentType:
type: string
description: The media type (MIME type).
CertificatePolicy:
type: object
description: Management policy for a certificate.
properties:
id:
type: string
description: The certificate id.
readOnly: true
key_props:
$ref: '#/components/schemas/KeyProperties'
description: Properties of the key backing a certificate.
x-ms-client-name: keyProperties
secret_props:
$ref: '#/components/schemas/SecretProperties'
description: Properties of the secret backing a certificate.
x-ms-client-name: secretProperties
x509_props:
$ref: '#/components/schemas/X509CertificateProperties'
description: Properties of the X509 component of a certificate.
x-ms-client-name: X509CertificateProperties
lifetime_actions:
type: array
description: Actions that will be performed by Key Vault over the lifetime of a certificate.
items:
$ref: '#/components/schemas/LifetimeAction'
x-ms-client-name: lifetimeActions
issuer:
$ref: '#/components/schemas/IssuerParameters'
description: Parameters for the issuer of the X509 component of a certificate.
x-ms-client-name: IssuerParameters
attributes:
$ref: '#/components/schemas/CertificateAttributes'
description: The certificate attributes.
Action:
type: object
description: The action that will be executed.
properties:
action_type:
$ref: '#/components/schemas/CertificatePolicyAction'
description: The type of the action.
x-ms-client-name: actionType
DeletedCertificateListResult:
type: object
description: A list of certificates that have been deleted in this vault.
properties:
value:
type: array
description: A response message containing a list of deleted certificates in the vault along with a link to the next page of deleted certificates.
items:
$ref: '#/components/schemas/DeletedCertificateItem'
readOnly: true
nextLink:
type: string
description: The URL to get the next set of deleted certificates.
readOnly: true
JsonWebKeyType:
type: string
description: The type of key pair to be used for the certificate.
enum:
- EC
- EC-HSM
- RSA
- RSA-HSM
- oct
- oct-HSM
x-ms-enum:
name: JsonWebKeyType
modelAsString: true
values:
- name: EC
value: EC
description: Elliptic Curve.
- name: EC_HSM
value: EC-HSM
description: Elliptic Curve with a private key which is not exportable from the HSM.
- name: RSA
value: RSA
description: RSA (https://tools.ietf.org/html/rfc3447).
- name: RSA_HSM
value: RSA-HSM
description: RSA with a private key which is not exportable from the HSM.
- name: oct
value: oct
description: Octet sequence (used to represent symmetric keys).
- name: oct_HSM
value: oct-HSM
description: Octet sequence with a private key which is not exportable from the HSM.
JsonWebKeyCurveName:
type: string
description: Elliptic curve name. For valid values, see JsonWebKeyCurveName.
enum:
- P-256
- P-384
- P-521
- P-256K
x-ms-enum:
name: JsonWebKeyCurveName
modelAsString: true
values:
- name: P_256
value: P-256
description: The NIST P-256 elliptic curve, AKA SECG curve SECP256R1.
- name: P_384
value: P-384
description: The NIST P-384 elliptic curve, AKA SECG curve SECP384R1.
- name: P_521
value: P-521
description: The NIST P-521 elliptic curve, AKA SECG curve SECP521R1.
- name: P_256K
value: P-256K
description: The SECG SECP256K1 elliptic curve.
DeletedCertificateItem:
type: object
description: The deleted certificate item containing metadata about the deleted certificate.
properties:
id:
type: string
description: Certificate identifier.
attributes:
$ref: '#/components/schemas/CertificateAttributes'
description: The certificate management attributes.
tags:
type: object
description: Application specific metadata in the form of key-value pairs.
additionalProperties:
type: string
x5t:
type: string
format: base64url
description: Thumbprint of the certificate.
x-ms-client-name: X509Thumbprint
recoveryId:
type: string
description: The url of the recovery object, used to identify and recover the deleted certificate.
scheduledPurgeDate:
type: integer
format: unixtime
description: The time when the certificate is scheduled to be purged, in UTC
readOnly: true
deletedDate:
type: integer
format: unixtime
description: The time when the certificate was deleted, in UTC
readOnly: true
CertificateBundle:
type: object
description: A certificate bundle consists of a certificate (X509) plus its attributes.
properties:
id:
type: string
description: The certificate id.
readOnly: true
kid:
type: string
description: The key id.
readOnly: true
sid:
type: string
description: The secret id.
readOnly: true
x5t:
type: string
format: base64url
description: Thumbprint of the certificate.
readOnly: true
x-ms-client-name: X509Thumbprint
policy:
$ref: '#/components/schemas/CertificatePolicy'
description: The management policy.
readOnly: true
cer:
type: string
format: byte
description: CER contents of x509 certificate.
contentType:
type: string
description: The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.
attributes:
$ref: '#/components/schemas/CertificateAttributes'
description: The certificate attributes.
tags:
type: object
description: Application specific metadata in the form of key-value pairs.
additionalProperties:
type: string
preserveCertOrder:
type: boolean
description: Specifies whether the certificate chain preserves its original order. The default value is false, which sets the leaf certificate at index 0.
parameters:
Azure.Core.Foundations.ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
x-ms-parameter-location: method
x-ms-client-name: apiVersion
schema:
type: string
minLength: 1
securitySchemes:
OAuth2Auth:
type: oauth2
flows:
implicit:
scopes:
https://vault.azure.net/.default: ''
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
x-ms-parameterized-host:
hostTemplate: '{vaultBaseUrl}'
useSchemePrefix: false
parameters:
- name: vaultBaseUrl
in: path
required: true
type: string
format: uri
x-ms-skip-url-encoding: true