# Get Fax GET https://api.hellosign.com/v3/fax/{fax_id} Returns information about a Fax Reference: https://developer.hellosign.com/api/fax/get ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get Fax version: endpoint_fax.get paths: /fax/{fax_id}: get: operationId: get summary: Get Fax description: Returns information about a Fax tags: - - subpackage_fax parameters: - name: fax_id in: path description: Fax ID 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/FaxGetResponse' '400': description: failed_operation content: {} components: schemas: FaxResponseTransmissionStatusCode: type: string enum: - value: success - value: transmitting - value: error_could_not_fax - value: error_unknown - value: error_busy - value: error_no_answer - value: error_disconnected - value: error_bad_destination FaxResponseTransmission: type: object properties: recipient: type: string description: Fax Transmission Recipient status_code: $ref: '#/components/schemas/FaxResponseTransmissionStatusCode' description: Fax Transmission Status Code sent_at: type: integer description: Fax Transmission Sent Timestamp required: - recipient - status_code FaxResponse: type: object properties: fax_id: type: string description: Fax ID title: type: string description: Fax Title original_title: type: string description: Fax Original Title subject: type: - string - 'null' description: Fax Subject message: type: - string - 'null' description: Fax Message metadata: type: object additionalProperties: description: Any type description: Fax Metadata created_at: type: integer description: Fax Created At Timestamp sender: type: string description: Fax Sender Email files_url: type: string description: Fax Files URL final_copy_uri: type: - string - 'null' description: The path where the completed document can be downloaded transmissions: type: array items: $ref: '#/components/schemas/FaxResponseTransmission' description: Fax Transmissions List required: - fax_id - title - original_title - metadata - created_at - sender - files_url - transmissions WarningResponse: type: object properties: warning_msg: type: string description: Warning message warning_name: type: string description: Warning name required: - warning_msg - warning_name FaxGetResponse: type: object properties: fax: $ref: '#/components/schemas/FaxResponse' warnings: type: array items: $ref: '#/components/schemas/WarningResponse' description: A list of warnings. required: - fax ``` ## SDK Code Examples ```php PHP setUsername("YOUR_API_KEY"); try { $response = (new Dropbox\Sign\Api\FaxApi(config: $config))->faxGet( fax_id: "fa5c8a0b0f492d768749333ad6fcc214c111e967", ); print_r($response); } catch (Dropbox\Sign\ApiException $e) { echo "Exception when calling FaxApi#faxGet: {$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 FaxGetExample { public static void Run() { var config = new Configuration(); config.Username = "YOUR_API_KEY"; try { var response = new FaxApi(config).FaxGet( faxId: "fa5c8a0b0f492d768749333ad6fcc214c111e967" ); Console.WriteLine(response); } catch (ApiException e) { Console.WriteLine("Exception when calling FaxApi#FaxGet: " + 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.FaxApi(); apiCaller.username = "YOUR_API_KEY"; apiCaller.faxGet( "fa5c8a0b0f492d768749333ad6fcc214c111e967", // faxId ).then(response => { console.log(response.body); }).catch(error => { console.log("Exception when calling FaxApi#faxGet:"); 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 FaxGetExample { public static void main(String[] args) { var config = Configuration.getDefaultApiClient(); ((HttpBasicAuth) config.getAuthentication("api_key")).setUsername("YOUR_API_KEY"); try { var response = new FaxApi(config).faxGet( "fa5c8a0b0f492d768749333ad6fcc214c111e967" // faxId ); System.out.println(response); } catch (ApiException e) { System.err.println("Exception when calling FaxApi#faxGet"); 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" end begin response = Dropbox::Sign::FaxApi.new.fax_get( "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id ) p response rescue Dropbox::Sign::ApiError => e puts "Exception when calling FaxApi#fax_get: #{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", ) with ApiClient(configuration) as api_client: try: response = api.FaxApi(api_client).fax_get( fax_id="fa5c8a0b0f492d768749333ad6fcc214c111e967", ) pprint(response) except ApiException as e: print("Exception when calling FaxApi#fax_get: %s\n" % e) ``` ```go Fax Response package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.hellosign.com/v3/fax/fa5c8a0b0f492d768749333ad6fcc214c111e967" 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 Fax Response import Foundation let headers = ["Authorization": "Basic :"] let request = NSMutableURLRequest(url: NSURL(string: "https://api.hellosign.com/v3/fax/fa5c8a0b0f492d768749333ad6fcc214c111e967")! 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() ```