---
title: "Create Credential"
method: POST
path: "/api/v1/integrations/credentials"
tags: ["Integration Credentials"]
---

# Create Credential

`POST /api/v1/integrations/credentials`

## Request body

- CreateCredential
  - `credential_id` string, uuid, required — The unique identifier of the credential
  - `provider_id` string, required — An unique identifier for the provider.
  - `credential_type` 'oauth' | 'form', required — All credential types supported by the integration provider. Values: OAUTH: For OAuth2 based authentication flows. FORM: For form based credentials like database connections, API keys, etc. ...
  - `credential_name` string, required — The name of the credential, used to identify it in the web UI
  - `credential_description` string, nullable
  - `credential_secrets` object, required — The secrets of the credential

## Response `201`

Successful Response

- IntegrationCredentialCard
  - `credential_id` string, uuid, required — The unique identifier of the credential
  - `integration_provider_id` string, required — An unique identifier for the provider.
  - `credential_name` string, required — The name of the credential, used to identify it in the web UI
  - `credential_description` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `created_by` ReducedUserProfile, required
    - `user_id` string, required
    - `first_name` string, required
    - `last_name` string, required
    - `email` string, required
    - `avatar_url` string, nullable, required
    - `is_deleted` boolean, required
  - `updated_by` ReducedUserProfile, required
    - `user_id` string, required
    - `first_name` string, required
    - `last_name` string, required
    - `email` string, required
    - `avatar_url` string, nullable, required
    - `is_deleted` boolean, required
  - `icon` StaticAsset — Represents a static asset like an image or a file.
    - `url` string, nullable
    - `file_path` string, path, nullable
  - `icon_darkmode_variant` StaticAsset — Represents a static asset like an image or a file.
    - `url` string, nullable
    - `file_path` string, path, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/rebolt/apis/fastapi.md) · [All operations](https://skmtc.dev/rebolt/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rebolt/fastapi/revisions/ee5884f323f3/schema)
