> For the complete documentation index, see [llms.txt](https://kb.mago.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.mago.io/mago-stage/network-requirements/third-party-service-endpoints.md).

# Third-party service endpoints

Mago Stage connects to third-party services only when the related feature or integration is enabled.

Organizations using restrictive firewall policies must allow the required endpoints for each enabled integration.

### Endpoint summary

| Integration              | Endpoint                                  | Protocol and port                        | Required when                                                       |
| ------------------------ | ----------------------------------------- | ---------------------------------------- | ------------------------------------------------------------------- |
| Microsoft identity       | `login.microsoftonline.com`               | HTTPS over TCP 443                       | Microsoft sign-in or Microsoft account linking is enabled           |
| Microsoft Graph          | `graph.microsoft.com`                     | HTTPS over TCP 443                       | OneDrive, SharePoint, Microsoft profile, or calendar access is used |
| Google identity          | `accounts.google.com`                     | HTTPS over TCP 443                       | Google sign-in or Google account linking is enabled                 |
| Google OAuth             | `oauth2.googleapis.com`                   | HTTPS over TCP 443                       | Google authentication or account linking is enabled                 |
| Google APIs              | `www.googleapis.com`                      | HTTPS over TCP 443                       | Google Drive, profile, or calendar access is used                   |
| Google client services   | `apis.google.com`                         | HTTPS over TCP 443                       | Google account or Drive integrations are used                       |
| Apple identity           | `appleid.apple.com`                       | HTTPS over TCP 443                       | Sign in with Apple is enabled                                       |
| SendGrid                 | `api.sendgrid.com`                        | HTTPS over TCP 443                       | SendGrid email delivery is configured                               |
| Customer SMTP server     | Organization-configured hostname          | Configured SMTP port                     | SMTP email delivery is configured                                   |
| YouTube                  | `www.youtube.com`                         | HTTPS over TCP 443                       | YouTube search, playback, playlists, or signage is used             |
| YouTube links            | `youtu.be`                                | HTTPS over TCP 443                       | Shortened YouTube links are used                                    |
| Privacy-enhanced YouTube | `www.youtube-nocookie.com`                | HTTPS over TCP 443                       | Privacy-enhanced embedded videos are used                           |
| YouTube thumbnails       | `i.ytimg.com` and `img.youtube.com`       | HTTPS over TCP 443                       | YouTube thumbnails are displayed                                    |
| YouTube media delivery   | YouTube and Google media-delivery domains | HTTPS over TCP 443                       | YouTube video or audio is played                                    |
| Website thumbnails       | `image.thum.io`                           | HTTPS over TCP 443                       | Mago Stage generates previews of website content                    |
| Embedded web content     | Customer-selected website domains         | HTTP or HTTPS as required by the website | Websites are added to a Stage                                       |

These endpoints can redirect to additional domains operated by the provider. Organizations using strict domain allowlists should also follow the provider’s current network documentation.

### Microsoft 365

Microsoft connectivity is required when users:

* Sign in with a Microsoft account
* Link a Microsoft 365 account
* Browse OneDrive
* Browse SharePoint
* Access Microsoft profile information
* Access Microsoft calendar information

Required endpoints include:

* `login.microsoftonline.com`
* `graph.microsoft.com`

Microsoft authentication may use tenant-specific paths under `login.microsoftonline.com`.

The Microsoft Entra administrator may need to grant tenant-wide consent for the permissions requested by Mago Stage. Firewall access alone does not grant users access to Microsoft 365 data.

Organization policies can restrict:

* Third-party application consent
* Access to OneDrive or SharePoint
* Cross-tenant sharing
* External accounts
* Conditional Access
* Device compliance
* File downloads

Test Microsoft sign-in and file access using an account with the same policies as the intended users.

### Google Workspace

Google connectivity is required when users:

* Sign in with a Google account
* Link a Google Workspace account
* Browse Google Drive
* Select Google Drive files
* Select Google Drive folders
* Access Google profile information
* Access Google calendar information

Required endpoints include:

* `accounts.google.com`
* `oauth2.googleapis.com`
* `www.googleapis.com`
* `apis.google.com`

Google authentication requires a valid HTTPS callback domain. A bare IP address or an unencrypted HTTP callback is not suitable for a production deployment.

Google Workspace administrators can restrict:

* Third-party OAuth applications
* Requested OAuth permissions
* Access to files outside the organization
* External sharing
* Shared drives
* File downloading
* Account linking

Test Google sign-in, file selection, folder selection, and content refresh using an account governed by the intended production policies.

### Sign in with Apple

Allow access to:

`appleid.apple.com`

This endpoint is required only when Sign in with Apple is configured and made available to users.

Apple authentication also requires correctly configured application identifiers, redirect addresses, and signing credentials.

### YouTube

YouTube features can require access to:

* `www.youtube.com`
* `youtube.com`
* `youtu.be`
* `www.youtube-nocookie.com`
* `i.ytimg.com`
* `img.youtube.com`
* YouTube and Google-operated media-delivery domains

These endpoints support:

* YouTube URL recognition
* Search
* Video information
* Thumbnails
* Embedded playback
* Playlists
* Digital signage

Allowing only `youtube.com` may not be sufficient for playback. YouTube media can be delivered through regional content-delivery domains that change over time.

YouTube access may also be affected by:

* Geographic restrictions
* Age restrictions
* Authentication requirements
* Copyright restrictions
* Organization content filters
* Video owner embedding settings
* Advertising or tracking restrictions

Test representative YouTube content through the production network before deployment.

### Email delivery

Mago Stage can send invitations, account messages, and notifications through SendGrid or a customer-provided SMTP service.

#### SendGrid

Allow access to:

`api.sendgrid.com`

SendGrid API delivery uses HTTPS over TCP 443.

#### Customer SMTP

The required address, port, and encryption method depend on the organization’s mail server.

Common SMTP ports include:

| Port    | Typical use                                |
| ------- | ------------------------------------------ |
| TCP 25  | Server-to-server SMTP or an internal relay |
| TCP 465 | SMTP over implicit TLS                     |
| TCP 587 | SMTP submission using STARTTLS             |

Use the port and encryption method specified by the organization’s email administrator.

Do not enable unencrypted SMTP across untrusted networks.

### Website content

Mago Stage can display customer-selected websites. Each website can load resources from additional services, including:

* Content-delivery networks
* Video platforms
* Font providers
* Authentication systems
* Analytics services
* Maps
* Embedded applications
* Advertising services

The customer is responsible for approving and allowing the domains required by its selected websites.

A website loading successfully in a normal browser does not confirm that it will work on the receiver network. Test the website from the intended receiver using the production firewall, proxy, and content-filtering policies.

### Website thumbnails

Mago Stage may use the following service to generate website preview images:

`image.thum.io`

Allow outbound HTTPS over TCP 443 to this endpoint when website preview images are required.

Blocking this service may prevent a preview image from appearing without necessarily preventing the website itself from opening.

### Security considerations

Only enable and allow third-party services that the organization intends to use.

Before enabling an integration:

1. Review the permissions requested by Mago Stage.
2. Obtain approval from the organization’s identity or security administrator.
3. Configure the provider’s application registration.
4. Restrict access according to organization policy.
5. Test with a representative user account.
6. Confirm that authentication redirects are not blocked.
7. Confirm that linked content can be opened from the receiver network.
8. Document the approved integration and responsible owner.
