---
title: "Create a new credential"
method: PUT
path: "/account/credentials"
tags: ["Account"]
---

# Create a new credential

`PUT /account/credentials`

## Request body

- CredentialOptions
  - `name` string
  - `type` 'miradore_api_key_v1' | 'aws_access_secret'
  - `acl` object
  - `global` boolean
  - `cidrs` string
  - `secret` union
    - MiradoreCredentialFields
      - `hostname` string, string, required
      - `api_key` string, string, required
    - AWSCredentialFields
      - `access_key` string, string, required
      - `secret_access_key` string, string, required
      - `regions` string, string
      - `use_cross_account_org` string, string
      - `role` string, string
    - AzureClientSecretCredentialFields
      - `client_id` string, string, required
      - `client_secret` string, string, required
      - `tenant_id` string, string, required
      - `multi_subscription` string, string
      - `subscription_id` string, string
    - AzureUsernamePasswordCredentialFields
      - `client_id` string, string, required
      - `tenant_id` string, string, required
      - `username` string, string, required
      - `password` string, string, required
    - CrowdstrikeCredentialFields
      - `client_id` string, string, required
      - `client_secret` string, string, required
      - `api_url` string, string, required
    - CensysCredentialFields
      - `client_id` string, string, required
      - `client_secret` string, string, required
      - `api_url` string, string
    - SNMPv2CommunitiesCredentialFields
      - `community` string, string, required
    - SNMPv3CredentialFields
      - `username` string, string, required
      - `context` string, string
      - `auth-protocol` string, string
      - `auth-passphrase` string, string
      - `privacy-protocol` string, string
      - `privacy-passphrase` string, string
    - VMwareCredentialFields
      - `username` string, string, required
      - `password` string, string, required
      - `insecure` string, string
      - `thumbprints` string, string

## Response `200`

credential details

- Credential
  - `id` string, uuid, required
  - `client_id` string, uuid
  - `name` string
  - `type` 'miradore_api_key_v1' | 'aws_access_secret' | 'crowdstrike_api_key' | 'azure_client_secret' | 'azure_username_password' | 'censys_search_api_key' | 'snmpv2_community' | 'snmpv3_credential' | 'vmware_username_password' — The service the credentials are for.
  - `created_at` integer
  - `created_by_id` string, uuid
  - `created_by_email` string, email
  - `acl` object
  - `global` boolean
  - `cidrs` string[]
  - `last_used_at` integer
  - `last_used_by_id` string, uuid

## Other responses

- `401` — Access token is missing or invalid
- `404` — Resource not found

## Changes

- **2021-12-15** `3c92c385b1cd` — 1 breaking
  - the `secret` request property type/format changed from `object`/`` to ``/``
- **2021-12-06** `41f72e32d154` — 7 warning
  - added the new `azure_client_secret` enum value to the `type` response property for the response status `200`
  - added the new `azure_username_password` enum value to the `type` response property for the response status `200`
  - added the new `censys_search_api_key` enum value to the `type` response property for the response status `200`
  - added the new `crowdstrike_api_key` enum value to the `type` response property for the response status `200`
  - …3 more
- **2021-11-02** `c211074b7fc8` — 3 info
  - added the new optional request property `secret/oneOf[#/components/schemas/AWSCredentialFields]/role`
  - added the new optional request property `secret/oneOf[#/components/schemas/AWSCredentialFields]/use_cross_account_org`
  - added `#/components/schemas/AzureClientSecretCredentialFields, #/components/schemas/AzureUsernamePasswordCredentialFields, #/components/schemas/CrowdstrikeCredentialFields, #/components/schemas/CensysCredentialFields, #/components/schemas/SNMPv2CommunitiesCredentialFields, #/components/schemas/SNMPv3CredentialFields, #/components/schemas/VMwareCredentialFields` to the `secret` request property `oneOf` list
- **2021-10-05** `48417fc1855f` — 1 info
  - endpoint added
- **2021-10-05** `fa23df407407` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/rumble/apis/rumble-api-deprecated/changes/account/credentials/put.md)

---

[API](https://skmtc.dev/rumble/apis/rumble-api-deprecated.md) · [All operations](https://skmtc.dev/rumble/apis/rumble-api-deprecated/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rumble/rumble-api-deprecated/revisions/7c193c1fcd5c/schema)
