---
title: "POST /public/v1/certificates"
method: POST
path: "/public/v1/certificates"
tags: ["certificates"]
---

# POST /public/v1/certificates

`POST /public/v1/certificates`

## Request

- Base URL: `https://developers.conduktor.io` (the document declares no server; this is the origin it was published from)
- URL: `https://developers.conduktor.io/public/v1/certificates`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/conduktor/apis/conduktor-console-api/docs/public/v1/certificates/post.ts> (a function with typed inputs; its response is checked against the schema)

Add one or several certificates from a text input to the organization

## Request body

- CreateCertificateRequest
  - `input` string, required

## Response `201`

The certificate(s) added to the organization

- DecodedCertificate[]
  - `id` string, required
  - `version` integer, required
  - `serialNumber` integer, required
  - `issuerDN` string, required
  - `subjectDN` string, required
  - `notBefore` string, date-time, required
  - `notAfter` string, date-time, required

## Other responses

- `400`: The Json is invalid or the certificate input does not contain a (or several) valid certificate(s): * The input field must match the following pattern: <b>-----BEGIN CERTIFICATE-----(?:[\\s\\S]*?)-----END CERTIFICATE-----</b> * The input field must contain a valid x509 certificate (PEM or CRT formats are supported)
- `401`: The user is not authenticated
- `500`: An unexpected error occurred in the server

---

[API](https://skmtc.dev/conduktor/apis/conduktor-console-api.md) - [All operations](https://skmtc.dev/conduktor/apis/conduktor-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/conduktor/apis/conduktor-console-api/revisions/24750c294805?raw)
