---
title: "POST /v1/projects/{projectId}/certificates"
method: POST
path: "/v1/projects/{projectId}/certificates"
tags: ["Certificates"]
---

# POST /v1/projects/{projectId}/certificates

`POST /v1/projects/{projectId}/certificates`

## Path parameters

- `projectId` string, required

## Request body

- GoliothCertificatesCreateBody
  - `certFile` string, byte
  - `certType` string
  - `demo` boolean

## Response `200`

A successful response.

- GoliothCreateCertificateResponse
  - `data` GoliothCertificate
    - `certType` string
    - `certificateContent` GoliothCertificateContent
      - `issuer` string
      - `keyUsages` string[]
      - `notAfter` string, date-time
      - `notBefore` string, date-time
      - `publicKey` string, byte
      - `publicKeyAlgorithm` string
      - `serialNumber` string
      - `signature` string, byte
      - `signatureAlgorithm` string
      - `subject` string
      - `version` integer
    - `createdAt` string, date-time
    - `demo` boolean
    - `enabled` boolean
    - `id` string
    - `projectId` string

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/golioth/apis/golioth-api.md) · [All operations](https://skmtc.dev/golioth/apis/golioth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/golioth/golioth-api/revisions/47c98ae69a55/schema)
