<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASImportableItem",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices16ASImportableItemV"
  },
  "title" : "ASImportableItem"
}
-->

# ASImportableItem

An item for use in import and export.

```
struct ASImportableItem
```

## Overview

An item represents an account for a service stored by the password manager.
One item can store multiple credentials.
For example, to represent an account with a password and a passkey, use an item with two credentials: a [`ASImportableCredential.BasicAuthentication`](/documentation/AuthenticationServices/ASImportableCredential/BasicAuthentication) password and a [`ASImportableCredential.Passkey`](/documentation/AuthenticationServices/ASImportableCredential/Passkey).

This type is a representation of `Item` as defined in the Credential Exchange Format (CXF) specification.
You can supply a JSON representation of a CXF `Item` to initialize an instance of this struct by using a <doc://com.apple.documentation/documentation/Foundation/JSONDecoder> and calling <doc://com.apple.documentation/documentation/Foundation/JSONDecoder/decode(_:from:)>.

## Topics

### Accessing item properties

[`var id: Data`](/documentation/AuthenticationServices/ASImportableItem/id)

A unique identifier for the item.

[`var created: Date?`](/documentation/AuthenticationServices/ASImportableItem/created)

The item’s creation date and time.

[`var lastModified: Date?`](/documentation/AuthenticationServices/ASImportableItem/lastModified)

The item’s last modified date and time.

[`var subtitle: String?`](/documentation/AuthenticationServices/ASImportableItem/subtitle)

A subtitle or description of this item, if any.

[`var credentials: [ASImportableCredential]`](/documentation/AuthenticationServices/ASImportableItem/credentials)

The credentials associated with this item.

[`enum ASImportableCredential`](/documentation/AuthenticationServices/ASImportableCredential)

A credential for use in import and export.

[`var tags: [String]`](/documentation/AuthenticationServices/ASImportableItem/tags)

The user-defined tags associated with this item, if any.

### Initializers

[`init(id: Data, created: Date, lastModified: Date, title: String, subtitle: String?, favorite: Bool, scope: ASImportableCredentialScope?, credentials: [ASImportableCredential], tags: [String])`](/documentation/AuthenticationServices/ASImportableItem/init(id:created:lastModified:title:subtitle:favorite:scope:credentials:tags:))

[`init(id: Data, created: Date?, lastModified: Date?, title: String, subtitle: String?, favorite: Bool, scope: ASImportableCredentialScope?, credentials: [ASImportableCredential], tags: [String], extensions: [ASImportableExtension])`](/documentation/AuthenticationServices/ASImportableItem/init(id:created:lastModified:title:subtitle:favorite:scope:credentials:tags:extensions:))

[`init(id: Data, title: String, subtitle: String?, favorite: Bool, scope: ASImportableCredentialScope?, credentials: [ASImportableCredential], tags: [String])`](/documentation/AuthenticationServices/ASImportableItem/init(id:title:subtitle:favorite:scope:credentials:tags:))

### Instance Properties

[`var extensions: [ASImportableExtension]`](/documentation/AuthenticationServices/ASImportableItem/extensions)

The extensions associated with this item.

[`var favorite: Bool`](/documentation/AuthenticationServices/ASImportableItem/favorite)

Indicate whether this is a “favorite” item.

[`var scope: ASImportableCredentialScope?`](/documentation/AuthenticationServices/ASImportableItem/scope)

The scope for where the credential can be used.

[`var title: String`](/documentation/AuthenticationServices/ASImportableItem/title)

The user-defined name or title of this item.

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)