---
title: "POST /credential-types/"
method: POST
path: "/credential-types/"
tags: ["credential-types"]
---

# POST /credential-types/

`POST /credential-types/`

Create a new credential type.

## Request body

- CredentialTypeCreate
  - `name` string, required
  - `description` string
  - `inputs` object, required — Inputs of the credential type
  - `injectors` object, required — Injectors of the credential type

## Response `201`

Return the new credential type.

- CredentialType
  - `name` string, required
  - `namespace` string, nullable
  - `kind` string
  - `description` string
  - `inputs` object
  - `injectors` object
  - `id` integer, required
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required
  - `managed` boolean, required

## Changes

- **2026-07-17** `c04fc5f09692` — 4 breaking, 3 warning
  - the request property `injectors` became required (media type: application/json)
  - the request property `injectors` became required (media type: application/x-www-form-urlencoded)
  - the request property `injectors` became required (media type: multipart/form-data)
  - removed the required property `organization_id` from the response with the `201` status
  - …3 more
- **2024-04-23** `cbf68ddd9760` — 1 info
  - endpoint added
- **2023-04-25** `62d33b790834` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/credential-types/post.md)

---

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