---
schema_version: "1"
id: dd4b90b683217f27235fa51d63e36d25d270319239157f742f0f7fa71e9c176a
title: getCanvasUrl()
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_canvas_ApplicationContext_getCanvasUrl.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_canvas_ApplicationContext_getCanvasUrl.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c7636e31ddf75636d6e3d9377a9347030e07debe8b811a0ed83538675f997619
description: Retrieves the fully qualified URL of the canvas app.
---
# getCanvasUrl()

Retrieves the fully qualified URL of the canvas app.

## Signature

public String getCanvasUrl()

## Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

## Usage

Use this method to get the URL of the canvas app, for example: http://instance.salesforce.com:8080/canvas\_app\_path/canvas\_app.jsp.