# Get API App GET https://api.hellosign.com/v3/api_app/{client_id} Returns an object with information about an API App. Reference: https://developer.hellosign.com/api/api-app/get ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get API App version: endpoint_apiApp.get paths: /api_app/{client_id}: get: operationId: get summary: Get API App description: Returns an object with information about an API App. tags: - - subpackage_apiApp parameters: - name: client_id in: path description: The client id of the API App to retrieve. 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/ApiAppGetResponse' '400': description: failed_operation content: {} components: schemas: ApiAppResponseOAuth: type: object properties: callback_url: type: string description: The app's OAuth callback URL. secret: type: - string - 'null' description: The app's OAuth secret, or null if the app does not belong to user. scopes: type: array items: type: string description: Array of OAuth scopes used by the app. charges_users: type: boolean description: >- Boolean indicating whether the app owner or the account granting permission is billed for OAuth requests. ApiAppResponseOptions: type: object properties: can_insert_everywhere: type: boolean description: >- Boolean denoting if signers can "Insert Everywhere" in one click while signing a document ApiAppResponseOwnerAccount: type: object properties: account_id: type: string description: The owner account's ID email_address: type: string description: The owner account's email address ApiAppResponseWhiteLabelingOptions: type: object properties: header_background_color: type: string legal_version: type: string link_color: type: string page_background_color: type: string primary_button_color: type: string primary_button_color_hover: type: string primary_button_text_color: type: string primary_button_text_color_hover: type: string secondary_button_color: type: string secondary_button_color_hover: type: string secondary_button_text_color: type: string secondary_button_text_color_hover: type: string text_color1: type: string text_color2: type: string ApiAppResponse: type: object properties: callback_url: type: - string - 'null' description: The app's callback URL (for events) client_id: type: string description: The app's client id created_at: type: integer description: The time that the app was created domains: type: array items: type: string description: The domain name(s) associated with the app name: type: string description: The name of the app is_approved: type: boolean description: Boolean to indicate if the app has been approved oauth: $ref: '#/components/schemas/ApiAppResponseOAuth' options: $ref: '#/components/schemas/ApiAppResponseOptions' owner_account: $ref: '#/components/schemas/ApiAppResponseOwnerAccount' white_labeling_options: $ref: '#/components/schemas/ApiAppResponseWhiteLabelingOptions' WarningResponse: type: object properties: warning_msg: type: string description: Warning message warning_name: type: string description: Warning name required: - warning_msg - warning_name ApiAppGetResponse: type: object properties: api_app: $ref: '#/components/schemas/ApiAppResponse' warnings: type: array items: $ref: '#/components/schemas/WarningResponse' description: A list of warnings. required: - api_app ``` ## SDK Code Examples ```php PHP setUsername("YOUR_API_KEY"); // $config->setAccessToken("YOUR_ACCESS_TOKEN"); try { $response = (new Dropbox\Sign\Api\ApiAppApi(config: $config))->apiAppGet( client_id: "0dd3b823a682527788c4e40cb7b6f7e9", ); print_r($response); } catch (Dropbox\Sign\ApiException $e) { echo "Exception when calling ApiAppApi#apiAppGet: {$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 ApiAppGetExample { public static void Run() { var config = new Configuration(); config.Username = "YOUR_API_KEY"; // config.AccessToken = "YOUR_ACCESS_TOKEN"; try { var response = new ApiAppApi(config).ApiAppGet( clientId: "0dd3b823a682527788c4e40cb7b6f7e9" ); Console.WriteLine(response); } catch (ApiException e) { Console.WriteLine("Exception when calling ApiAppApi#ApiAppGet: " + 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.ApiAppApi(); apiCaller.username = "YOUR_API_KEY"; // apiCaller.accessToken = "YOUR_ACCESS_TOKEN"; apiCaller.apiAppGet( "0dd3b823a682527788c4e40cb7b6f7e9", // clientId ).then(response => { console.log(response.body); }).catch(error => { console.log("Exception when calling ApiAppApi#apiAppGet:"); 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 ApiAppGetExample { 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 ApiAppApi(config).apiAppGet( "0dd3b823a682527788c4e40cb7b6f7e9" // clientId ); System.out.println(response); } catch (ApiException e) { System.err.println("Exception when calling ApiAppApi#apiAppGet"); 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::ApiAppApi.new.api_app_get( "0dd3b823a682527788c4e40cb7b6f7e9", # client_id ) p response rescue Dropbox::Sign::ApiError => e puts "Exception when calling ApiAppApi#api_app_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", # access_token="YOUR_ACCESS_TOKEN", ) with ApiClient(configuration) as api_client: try: response = api.ApiAppApi(api_client).api_app_get( client_id="0dd3b823a682527788c4e40cb7b6f7e9", ) pprint(response) except ApiException as e: print("Exception when calling ApiAppApi#api_app_get: %s\n" % e) ``` ```go API App package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.hellosign.com/v3/api_app/0dd3b823a682527788c4e40cb7b6f7e9" 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 API App import Foundation let headers = ["Authorization": "Basic :"] let request = NSMutableURLRequest(url: NSURL(string: "https://api.hellosign.com/v3/api_app/0dd3b823a682527788c4e40cb7b6f7e9")! 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() ```