---
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

---

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