<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/CustomURLRepresentationParameterConvertible",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents43CustomURLRepresentationParameterConvertibleP"
  },
  "title" : "CustomURLRepresentationParameterConvertible"
}
-->

# CustomURLRepresentationParameterConvertible

An interface that allows a type to express its contents in a URL representation.

```
protocol CustomURLRepresentationParameterConvertible
```

## Overview

Apply this protocol to the custom types you use to build the URL for an app intent or app entity. When you construct
a URL representation, you can incorporate the properties of your app intent or app entity type into the URL you
produce. The [`EntityURLRepresentation`](/documentation/AppIntents/EntityURLRepresentation), [`IntentURLRepresentation`](/documentation/AppIntents/IntentURLRepresentation), and [`EnumURLRepresentation`](/documentation/AppIntents/EnumURLRepresentation)
types automatically convert properties with <doc://com.apple.documentation/documentation/Swift/String>,
<doc://com.apple.documentation/documentation/Swift/Int>, or <doc://com.apple.documentation/documentation/Foundation/URL>
values to the required string data for the representation. For other types, adopt this protocol and use the
[`urlRepresentationParameter`](/documentation/AppIntents/CustomURLRepresentationParameterConvertible/urlRepresentationParameter) property to deliver
a string that represents your type’s content.

## Topics

### Instance Properties

[`var urlRepresentationParameter: String?`](/documentation/AppIntents/CustomURLRepresentationParameterConvertible/urlRepresentationParameter)

The string representation of the type’s content.

## Relationships

### Inherited By

[`URLRepresentableEnum`](/documentation/AppIntents/URLRepresentableEnum)

[`URLRepresentableEntity`](/documentation/AppIntents/URLRepresentableEntity)

---

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)