---
title: "Create Certificate"
method: POST
path: "/api/v1/certificates"
tags: ["Certificates"]
---

# Create Certificate

`POST /api/v1/certificates`

Creates a new certificate for use with connector authentication.

## Request body

- CertificatesStoreRequest
  - `connector_id` string, nullable
  - `certificate` string, required
  - `passphrase` string, nullable

## Response `200`

Successful response

- CertificatesResponse
  - `data` Certificates
    - `id` integer — Unique identifier
    - `connector_id` string
    - `certificate` string
    - `passphrase` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `name` object
    - `user_id` object
    - `connector` object
    - `user` object

## Other responses

- `401` — Unauthenticated
- `403` — Unauthorized
- `422` — Validation Error

---

[API](https://skmtc.net/wearepatchworks/apis/patchworks-core-api.md) · [All operations](https://skmtc.net/wearepatchworks/apis/patchworks-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wearepatchworks/patchworks-core-api/revisions/89261af4dd80/schema)
