# List Fax Lines GET https://api.hellosign.com/v3/fax_line/list Returns the properties and settings of multiple Fax Lines. Reference: https://developer.hellosign.com/api/fax-line/list ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: List Fax Lines version: endpoint_faxLine.list paths: /fax_line/list: get: operationId: list summary: List Fax Lines description: Returns the properties and settings of multiple Fax Lines. tags: - - subpackage_faxLine parameters: - name: account_id in: query description: Account ID required: false schema: type: string - name: page in: query description: Which page number of the Fax Line List to return. Defaults to `1`. required: false schema: type: integer default: 1 - name: page_size in: query description: >- Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. required: false schema: type: integer default: 20 - name: show_team_lines in: query description: Include Fax Lines belonging to team members in the list required: false schema: type: boolean - 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/FaxLineListResponse' '400': description: failed_operation content: {} components: schemas: ListInfoResponse: type: object properties: num_pages: type: integer description: Total number of pages available. num_results: type: - integer - 'null' description: Total number of objects available. page: type: integer description: Number of the page being returned. page_size: type: integer description: Objects returned per page. AccountResponseQuotas: type: object properties: api_signature_requests_left: type: - integer - 'null' description: API signature requests remaining. documents_left: type: - integer - 'null' description: Signature requests remaining. templates_total: type: - integer - 'null' description: Total API templates allowed. templates_left: type: - integer - 'null' description: API templates remaining. sms_verifications_left: type: - integer - 'null' description: SMS verifications remaining. num_fax_pages_left: type: - integer - 'null' description: Number of fax pages left AccountResponseUsage: type: object properties: fax_pages_sent: type: - integer - 'null' description: Number of fax pages sent AccountResponse: type: object properties: account_id: type: string description: The ID of the Account email_address: type: string description: The email address associated with the Account. is_locked: type: boolean description: >- Returns `true` if the user has been locked out of their account by a team admin. is_paid_hs: type: boolean description: Returns `true` if the user has a paid Dropbox Sign account. is_paid_hf: type: boolean description: Returns `true` if the user has a paid HelloFax account. quotas: $ref: '#/components/schemas/AccountResponseQuotas' callback_url: type: - string - 'null' description: The URL that Dropbox Sign events will `POST` to. role_code: type: - string - 'null' description: The membership role for the team. team_id: type: - string - 'null' description: The id of the team account belongs to. locale: type: - string - 'null' description: >- The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. usage: $ref: '#/components/schemas/AccountResponseUsage' FaxLineResponseFaxLine: type: object properties: number: type: string description: Number created_at: type: integer description: Created at updated_at: type: integer description: Updated at accounts: type: array items: $ref: '#/components/schemas/AccountResponse' WarningResponse: type: object properties: warning_msg: type: string description: Warning message warning_name: type: string description: Warning name required: - warning_msg - warning_name FaxLineListResponse: type: object properties: list_info: $ref: '#/components/schemas/ListInfoResponse' fax_lines: type: array items: $ref: '#/components/schemas/FaxLineResponseFaxLine' warnings: $ref: '#/components/schemas/WarningResponse' required: - list_info - fax_lines ``` ## SDK Code Examples ```php PHP setUsername("YOUR_API_KEY"); try { $response = (new Dropbox\Sign\Api\FaxLineApi(config: $config))->faxLineList( account_id: "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", page: 1, page_size: 20, ); print_r($response); } catch (Dropbox\Sign\ApiException $e) { echo "Exception when calling FaxLineApi#faxLineList: {$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 FaxLineListExample { public static void Run() { var config = new Configuration(); config.Username = "YOUR_API_KEY"; try { var response = new FaxLineApi(config).FaxLineList( accountId: "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", page: 1, pageSize: 20 ); Console.WriteLine(response); } catch (ApiException e) { Console.WriteLine("Exception when calling FaxLineApi#FaxLineList: " + 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.FaxLineApi(); apiCaller.username = "YOUR_API_KEY"; apiCaller.faxLineList( "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", // accountId 1, // page 20, // pageSize undefined, // showTeamLines ).then(response => { console.log(response.body); }).catch(error => { console.log("Exception when calling FaxLineApi#faxLineList:"); 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 FaxLineListExample { public static void main(String[] args) { var config = Configuration.getDefaultApiClient(); ((HttpBasicAuth) config.getAuthentication("api_key")).setUsername("YOUR_API_KEY"); try { var response = new FaxLineApi(config).faxLineList( "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", // accountId 1, // page 20, // pageSize null // showTeamLines ); System.out.println(response); } catch (ApiException e) { System.err.println("Exception when calling FaxLineApi#faxLineList"); 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::FaxLineApi.new.fax_line_list( { account_id: "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", page: 1, page_size: 20, show_team_lines: nil, }, ) p response rescue Dropbox::Sign::ApiError => e puts "Exception when calling FaxLineApi#fax_line_list: #{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.FaxLineApi(api_client).fax_line_list( account_id="ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", page=1, page_size=20, ) pprint(response) except ApiException as e: print("Exception when calling FaxLineApi#fax_line_list: %s\n" % e) ``` ```go Sample Fax Line List Response package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.hellosign.com/v3/fax_line/list" 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 Sample Fax Line List Response import Foundation let headers = ["Authorization": "Basic :"] let request = NSMutableURLRequest(url: NSURL(string: "https://api.hellosign.com/v3/fax_line/list")! 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() ```