---
title: "Deactivate certificates for project"
method: POST
path: "/organization/projects/{project_id}/certificates/deactivate"
tags: ["Certificates"]
---

# Deactivate certificates for project

`POST /organization/projects/{project_id}/certificates/deactivate`

## Request

- Base URL: `https://api.openai.com/v1`
- URL: `https://api.openai.com/v1/organization/projects/{project_id}/certificates/deactivate`
- Auth: HTTP bearer

Deactivate certificates at the project level. You can atomically and 
idempotently deactivate up to 10 certificates at a time.

## Path parameters

- `project_id` string, required

## Request body

- ToggleCertificatesRequest
  - `certificate_ids` string[], required

## Response `200`

Certificates deactivated successfully.

- OrganizationProjectCertificateDeactivationResponse
  - `object` 'organization.project.certificate.deactivation', required: The project certificate deactivation result type.
  - `data` OrganizationProjectCertificate[], required
    - `object` 'organization.project.certificate', required: The object type, which is always `organization.project.certificate`.
    - `id` string, required: The identifier, which can be referenced in API endpoints
    - `name` string, nullable, required: The name of the certificate.
    - `created_at` integer, required: The Unix timestamp (in seconds) of when the certificate was uploaded.
    - `certificate_details` object, required
      - `valid_at` integer: The Unix timestamp (in seconds) of when the certificate becomes valid.
      - `expires_at` integer: The Unix timestamp (in seconds) of when the certificate expires.
    - `active` boolean, required: Whether the certificate is currently active at the project level.

## Other responses

- `400`: The request parameters are invalid or the requested operation cannot be performed.
- `403`: The caller does not have permission to perform this operation.
- `404`: A certificate was not found in this organization.
- `429`: The request was rejected because a rate limit was exceeded.
- `500`: The certificate update could not be completed because of a server error.

## Changes

- **2026-10-06** `487892d3954e`: 5 info
  - added the optional property `error/anyOf[#/components/schemas/Error]/misalignment/review_target` to the response with the `403` status
  - added the optional property `error/misalignment/review_target` to the response with the `400` status
  - added the optional property `error/misalignment/review_target` to the response with the `404` status
  - added the optional property `error/misalignment/review_target` to the response with the `429` status
  - …1 more
- **2026-10-05** `7f654af7f94f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnistack-sh/apis/openai-api/changes/organization/projects/:project_id/certificates/deactivate/post.md)

---

[API](https://skmtc.dev/omnistack-sh/apis/openai-api.md) - [All operations](https://skmtc.dev/omnistack-sh/apis/openai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnistack-sh/apis/openai-api/revisions/0a26f104d35f?raw)
