---
title: "init(url:)"
framework: homekit
role: symbol
role_heading: Initializer
path: "homekit/hmaccessorysetuppayload/init(url:)-7ytm5"
---

# init(url:)

Creates an accessory setup payload.

## Declaration

```swift
init?(url setupPayloadURL: URL?)
```

## Parameters

- `setupPayloadURL`: The payload used to securely authenticate the accessory. This is the same payload you would receive by scanning the accessory’s QR code.

## Discussion

Discussion For details about the payload’s content, please join the MFi Program.

## See Also

### Creating a Payload

- [init(url:ownershipToken:)](homekit/hmaccessorysetuppayload/init(url:ownershiptoken:)-32mrj.md)
- [HMAccessoryOwnershipToken](homekit/hmaccessoryownershiptoken.md)
