<!--
{
  "availability" : [
    "Retention Messaging API: 1.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RetentionMessaging",
  "identifier" : "/documentation/RetentionMessaging/Get-Realtime-URL",
  "metadataVersion" : "0.1.0",
  "role" : "Web Service Endpoint",
  "symbol" : {
    "kind" : "Web Service Endpoint",
    "modules" : [
      "Retention Messaging API"
    ],
    "preciseIdentifier" : "rest:retention_messaging:get:inApps-v1-messaging-realtime-url"
  },
  "title" : "Get Realtime URL"
}
-->

# Get Realtime URL

Gets the URL for real-time messages that points to your Get Retention Message endpoint, which you previously configured.

## Discussion

This endpoint returns your `Get Retention Message` endpoint’s URL. The URL it provides is specific to the environment (sandbox or production) you use to call [`Get Realtime URL`](/documentation/RetentionMessaging/Get-Realtime-URL).

This endpoint returns an `HTTP 404` error with [`RealtimeUrlNotFoundError`](/documentation/RetentionMessaging/RealtimeUrlNotFoundError) if the URL isn’t configured.

For more information on configuring your `Get Retention Message` endpoint, see [Setting up your Get Retention Message endpoint](/documentation/RetentionMessaging/setting-up-retention-messaging-endpoint).

---

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)