Skip to main content
Credentials

Delete a Credential

Deletes a Credential from a Vault.

Path

DELETE /api/v1/forward/vaults/{id}/credentials/{cred_id}

Request headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>
Forward verifies that the caller owns the Vault before deleting the Credential.

Path parameters

ParameterTypeRequiredDescription
idstringYesVault ID.
cred_idstringYesCredential ID.

Example request

curl -X DELETE "https://api.qoder.com/api/v1/forward/vaults/vault_xxx/credentials/vcred_xxx" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

{
  "id": "vcred_xxx",
  "type": "vault_credential_deleted",
  "deleted": true
}

Response fields

FieldTypeDescription
idstringID of the deleted resource.
typestringDeletion result type.
deletedbooleanWhether the resource was deleted.

Errors

HTTPTypeTrigger
400invalid_request_errorThe request body, path parameters, or pagination parameters are invalid, including an invalid auth object, such as static_bearer without token.
401authentication_errorThe authentication token is missing or invalid.
403permission_errorThe caller cannot access the parent Vault or Credential.
404not_found_errorThe Vault or Credential does not exist or is not visible.
409conflict_errorThe Credential state conflicts with the operation.
500/502/503api_errorForward or a dependent service failed.
Authentication data in Credential requests is sensitive. Some detailed validation messages are replaced with a generic redacted message; the HTTP status and error type remain unchanged.