---
title: "fetchAndObserveContact(withID:errorHandler:)"
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ockcontactcontroller/fetchandobservecontact(withid:errorhandler:)"
---

# fetchAndObserveContact(withID:errorHandler:)

Retrieves and observes a contact with a specific identifier.

## Declaration

```swift
func fetchAndObserveContact(withID id: String, errorHandler: ((OCKStoreError) -> Void)? = nil)
```

## Parameters

- `id`: The user-defined unique identifier for the contact.

## See Also

### Observing Contacts

- [fetchAndObserveContact(forQuery:errorHandler:)](carekit/ockcontactcontroller/fetchandobservecontact(forquery:errorhandler:).md)
- [observeContact(_:)](carekit/ockcontactcontroller/observecontact(_:).md)
