Skip to main content

Overview

Ciphers are the core vault items in Bitwarden. They can represent:
  • Login credentials (username/password)
  • Secure Notes
  • Card information (credit/debit cards)
  • Identity information (personal details)
  • SSH Keys

Get Cipher

Retrieve a specific cipher by ID.
string
required
The cipher ID

Response

string
required
Cipher unique identifier
number
required
Cipher type (1=Login, 2=SecureNote, 3=Card, 4=Identity, 5=SSHKey)
string
required
Encrypted cipher name
string
Encrypted notes
object
Login credentials (for type=1)
object
Card information (for type=3)
object
Identity information (for type=4)
boolean
Whether cipher is marked as favorite
string
Organization ID if cipher is shared
array
Collections containing this cipher

Get Cipher Details

Retrieve detailed cipher information including collection associations.
string
required
The cipher ID

Get Cipher as Admin

Retrieve cipher details with admin permissions.
string
required
The cipher ID
This endpoint requires admin or manager permissions for the organization.

List All Ciphers

Retrieve all ciphers accessible to the authenticated user.

Response

Returns a list of all ciphers including personal and organization ciphers.

List Organization Ciphers

Retrieve all ciphers for a specific organization.
string
required
The organization ID
boolean
default:"false"
Include items in user’s default collections

List Assigned Organization Ciphers

Retrieve organization ciphers assigned to the current user.
string
required
The organization ID

Create Cipher

Create a new cipher.

Request Body

number
required
Cipher type (1=Login, 2=SecureNote, 3=Card, 4=Identity, 5=SSHKey)
string
required
Encrypted cipher name
string
Encrypted notes
object
Login data (required for type=1)
object
Secure note data (required for type=2)
object
Card data (required for type=3)
object
Identity data (required for type=4)
string
Folder ID to place cipher in
string
Organization ID if creating organization cipher
boolean
default:"false"
Mark as favorite
string
Last known revision date for conflict detection

Create Cipher with Collections

Create a cipher and assign it to collections in one operation.
object
required
Cipher object (same as Create Cipher)
array
required
Array of collection IDs to assign cipher to

Update Cipher

Update an existing cipher.
string
required
The cipher ID

Request Body

Same as Create Cipher, all fields should be provided.

Partial Update Cipher

Update only specific fields of a cipher (folder and favorite status).
string
required
The cipher ID
string
New folder ID (null for no folder)
boolean
Favorite status

Share Cipher

Share a personal cipher with an organization.
string
required
The cipher ID
object
required
Updated cipher object with organizationId
array
required
Collections to share cipher with

Update Cipher Collections

Update which collections a cipher belongs to.
string
required
The cipher ID
array
required
New array of collection IDs

Bulk Update Collections

Add or remove collections for multiple ciphers.
string
required
Organization ID
array
required
Array of cipher IDs to update
array
required
Array of collection IDs
boolean
default:"false"
Remove collections instead of adding them

Archive Cipher

Archive a single cipher.
string
required
The cipher ID

Bulk Archive Ciphers

Archive multiple ciphers at once.
array
required
Array of cipher IDs to archive (max 500)

Unarchive Cipher

Restore an archived cipher.
string
required
The cipher ID

Bulk Unarchive Ciphers

Restore multiple archived ciphers.
array
required
Array of cipher IDs to unarchive (max 500)

Soft Delete Cipher

Move a cipher to trash (soft delete).
string
required
The cipher ID

Bulk Soft Delete

Move multiple ciphers to trash.
array
required
Array of cipher IDs (max 500)

Restore Cipher

Restore a soft-deleted cipher from trash.
string
required
The cipher ID

Bulk Restore Ciphers

Restore multiple ciphers from trash.
array
required
Array of cipher IDs (max 500)

Delete Cipher Permanently

Permanently delete a cipher (cannot be undone).
string
required
The cipher ID
This permanently deletes the cipher. This action cannot be undone.

Bulk Delete Permanently

Permanently delete multiple ciphers.
array
required
Array of cipher IDs (max 500)

Move Ciphers to Folder

Move multiple ciphers to a folder.
array
required
Array of cipher IDs (max 500)
string
Destination folder ID (null for no folder)

Encryption

All sensitive cipher data must be encrypted client-side before sending to the API. The API stores encrypted data only.

Encrypted Fields

The following fields are encrypted:
  • name
  • notes
  • Login: username, password, uris, totp
  • Card: cardholderName, number, code
  • Identity: All fields
  • SSH Key: All fields

Encryption Format

Encrypted strings follow the format: {encType}.{encryptedData}|{iv}|{mac} Example: 2.abc123|def456|ghi789