# Get Embedded Sign URL GET https://api.hellosign.com/v3/embedded/sign_url/{signature_id} Retrieves an embedded object containing a signature url that can be opened in an iFrame. Note that templates created via the embedded template process will only be accessible through the API. Reference: https://developer.hellosign.com/api/embedded/sign-url ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get Embedded Sign URL version: endpoint_embedded.signUrl paths: /embedded/sign_url/{signature_id}: get: operationId: sign-url summary: Get Embedded Sign URL description: >- Retrieves an embedded object containing a signature url that can be opened in an iFrame. Note that templates created via the embedded template process will only be accessible through the API. tags: - - subpackage_embedded parameters: - name: signature_id in: path description: The id of the signature to get a signature url for. required: true schema: type: string - name: Authorization in: header description: Basic authentication of the form `Basic `. required: true schema: type: string responses: '200': description: successful operation content: application/json: schema: $ref: '#/components/schemas/EmbeddedSignUrlResponse' '400': description: failed_operation content: {} components: schemas: EmbeddedSignUrlResponseEmbedded: type: object properties: sign_url: type: string description: A signature url that can be opened in an iFrame. expires_at: type: integer description: The specific time that the the `sign_url` link expires, in epoch. WarningResponse: type: object properties: warning_msg: type: string description: Warning message warning_name: type: string description: Warning name required: - warning_msg - warning_name EmbeddedSignUrlResponse: type: object properties: embedded: $ref: '#/components/schemas/EmbeddedSignUrlResponseEmbedded' warnings: type: array items: $ref: '#/components/schemas/WarningResponse' description: A list of warnings. required: - embedded ``` ## SDK Code Examples ```php PHP setUsername("YOUR_API_KEY"); // $config->setAccessToken("YOUR_ACCESS_TOKEN"); try { $response = (new Dropbox\Sign\Api\EmbeddedApi(config: $config))->embeddedSignUrl( signature_id: "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b", ); print_r($response); } catch (Dropbox\Sign\ApiException $e) { echo "Exception when calling EmbeddedApi#embeddedSignUrl: {$e->getMessage()}"; } ``` ```csharp C# using System; using System.Collections.Generic; using System.IO; using System.Text.Json; using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; namespace Dropbox.SignSandbox; public class EmbeddedSignUrlExample { public static void Run() { var config = new Configuration(); config.Username = "YOUR_API_KEY"; // config.AccessToken = "YOUR_ACCESS_TOKEN"; try { var response = new EmbeddedApi(config).EmbeddedSignUrl( signatureId: "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b" ); Console.WriteLine(response); } catch (ApiException e) { Console.WriteLine("Exception when calling EmbeddedApi#EmbeddedSignUrl: " + e.Message); Console.WriteLine("Status Code: " + e.ErrorCode); Console.WriteLine(e.StackTrace); } } } ``` ```typescript TypeScript import * as fs from 'fs'; import api from "@dropbox/sign" import models from "@dropbox/sign" const apiCaller = new api.EmbeddedApi(); apiCaller.username = "YOUR_API_KEY"; // apiCaller.accessToken = "YOUR_ACCESS_TOKEN"; apiCaller.embeddedSignUrl( "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b", // signatureId ).then(response => { console.log(response.body); }).catch(error => { console.log("Exception when calling EmbeddedApi#embeddedSignUrl:"); console.log(error.body); }); ``` ```java Java package com.dropbox.sign_sandbox; import com.dropbox.sign.ApiException; import com.dropbox.sign.Configuration; import com.dropbox.sign.api.*; import com.dropbox.sign.auth.*; import com.dropbox.sign.JSON; import com.dropbox.sign.model.*; import java.io.File; import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Map; public class EmbeddedSignUrlExample { public static void main(String[] args) { var config = Configuration.getDefaultApiClient(); ((HttpBasicAuth) config.getAuthentication("api_key")).setUsername("YOUR_API_KEY"); // ((HttpBearerAuth) config.getAuthentication("oauth2")).setBearerToken("YOUR_ACCESS_TOKEN"); try { var response = new EmbeddedApi(config).embeddedSignUrl( "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b" // signatureId ); System.out.println(response); } catch (ApiException e) { System.err.println("Exception when calling EmbeddedApi#embeddedSignUrl"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ```ruby Ruby require "json" require "dropbox-sign" Dropbox::Sign.configure do |config| config.username = "YOUR_API_KEY" # config.access_token = "YOUR_ACCESS_TOKEN" end begin response = Dropbox::Sign::EmbeddedApi.new.embedded_sign_url( "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b", # signature_id ) p response rescue Dropbox::Sign::ApiError => e puts "Exception when calling EmbeddedApi#embedded_sign_url: #{e}" end ``` ```python Python import json from datetime import date, datetime from pprint import pprint from dropbox_sign import ApiClient, ApiException, Configuration, api, models configuration = Configuration( username="YOUR_API_KEY", # access_token="YOUR_ACCESS_TOKEN", ) with ApiClient(configuration) as api_client: try: response = api.EmbeddedApi(api_client).embedded_sign_url( signature_id="50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b", ) pprint(response) except ApiException as e: print("Exception when calling EmbeddedApi#embedded_sign_url: %s\n" % e) ``` ```go Embedded Sign URL package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.hellosign.com/v3/embedded/sign_url/50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Basic :") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```swift Embedded Sign URL import Foundation let headers = ["Authorization": "Basic :"] let request = NSMutableURLRequest(url: NSURL(string: "https://api.hellosign.com/v3/embedded/sign_url/50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```