---
title: "Create Credential From Model"
method: POST
path: "/manage/credential"
tags: ["public"]
---

# Create Credential From Model

`POST /manage/credential`

## Request body

- CredentialBase
  - `credential_json` object, required
  - `admin_public` boolean, required
  - `source` 'ingestion_api' | 'slack' | 'web' | 'google_drive' | 'gmail' | 'requesttracker' | 'github' | 'gitbook' | 'gitlab' | 'guru' | 'bookstack' | 'outline' | 'confluence' | 'jira' | 'slab' | 'productboard' | 'file' | 'coda' | 'notion' | 'zulip' | 'linear' | 'hubspot' | 'document360' | 'gong' | 'google_sites' | 'zendesk' | 'loopio' | 'dropbox' | 'sharepoint' | 'teams' | 'salesforce' | 'discourse' | 'axero' | 'clickup' | 'mediawiki' | 'wikipedia' | 'asana' | 's3' | 'r2' | 'google_cloud_storage' | 'oci_storage' | 'xenforo' | 'not_applicable' | 'discord' | 'freshdesk' | 'fireflies' | 'egnyte' | 'airtable' | 'highspot' | 'drupal_wiki' | 'imap' | 'bitbucket' | 'testrail' | 'mock_connector' | 'user_file', required
  - `name` string, nullable
  - `curator_public` boolean
  - `groups` integer[]

## Response `200`

Successful Response

- ObjectCreationIdResponse
  - `id` integer, required
  - `credential` CredentialSnapshot
    - `credential_json` object, required
    - `admin_public` boolean, required
    - `source` 'ingestion_api' | 'slack' | 'web' | 'google_drive' | 'gmail' | 'requesttracker' | 'github' | 'gitbook' | 'gitlab' | 'guru' | 'bookstack' | 'outline' | 'confluence' | 'jira' | 'slab' | 'productboard' | 'file' | 'coda' | 'notion' | 'zulip' | 'linear' | 'hubspot' | 'document360' | 'gong' | 'google_sites' | 'zendesk' | 'loopio' | 'dropbox' | 'sharepoint' | 'teams' | 'salesforce' | 'discourse' | 'axero' | 'clickup' | 'mediawiki' | 'wikipedia' | 'asana' | 's3' | 'r2' | 'google_cloud_storage' | 'oci_storage' | 'xenforo' | 'not_applicable' | 'discord' | 'freshdesk' | 'fireflies' | 'egnyte' | 'airtable' | 'highspot' | 'drupal_wiki' | 'imap' | 'bitbucket' | 'testrail' | 'mock_connector' | 'user_file', required
    - `name` string, nullable
    - `curator_public` boolean
    - `groups` integer[]
    - `id` integer, required
    - `user_id` string, uuid, nullable, required
    - `user_email` string, nullable
    - `time_created` string, date-time, required
    - `time_updated` string, date-time, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-01-13** `7f4d7f7b70ee` — 2 warning
  - removed the request property `is_user_file`
  - removed the optional property `credential/anyOf[subschema #1: CredentialSnapshot]/is_user_file` from the response with the `200` status
- **2026-01-06** `2d941ea53eb3` — 6 warning, 15 info
  - added the new `bitbucket` enum value to the `credential/anyOf[subschema #1: CredentialSnapshot]/source` response property for the response status `200`
  - added the new `coda` enum value to the `credential/anyOf[subschema #1: CredentialSnapshot]/source` response property for the response status `200`
  - added the new `drupal_wiki` enum value to the `credential/anyOf[subschema #1: CredentialSnapshot]/source` response property for the response status `200`
  - added the new `outline` enum value to the `credential/anyOf[subschema #1: CredentialSnapshot]/source` response property for the response status `200`
  - …17 more
- **2025-08-21** `9321c45d93b5` — 14 breaking, 9 info
  - removed the enum value `bitbucket` of the request property `source`
  - removed the enum value `coda` of the request property `source`
  - removed the enum value `drupal_wiki` of the request property `source`
  - removed the enum value `outline` of the request property `source`
  - …19 more

[Change history](https://skmtc.dev/onyx-dot-app/apis/onyx-api/changes/manage/credential/post.md)

---

[API](https://skmtc.dev/onyx-dot-app/apis/onyx-api.md) · [All operations](https://skmtc.dev/onyx-dot-app/apis/onyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onyx-dot-app/onyx-api/revisions/2980a9073ffe/schema)
