Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 2.1 KB

V1DomainsApi.md

File metadata and controls

63 lines (45 loc) · 2.1 KB

V1DomainsApi

All URIs are relative to https://app.linksgpt.com

Method HTTP request Description
listDomains GET /api/v1/domains List your domains

listDomains

InlineResponse200 listDomains(workspace)

List your domains

Get the list of domains shared in the current workspace.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.V1DomainsApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");

V1DomainsApi apiInstance = new V1DomainsApi();
String workspace = "workspace_example"; // String | Your workspace id, if you do not specify the workspace context,  the default workspace (your main workspace) will be used.  If apikey is used as the authentication mode, you do not need to set this parameter.
try {
    InlineResponse200 result = apiInstance.listDomains(workspace);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling V1DomainsApi#listDomains");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String Your workspace id, if you do not specify the workspace context, the default workspace (your main workspace) will be used. If apikey is used as the authentication mode, you do not need to set this parameter. [optional]

Return type

InlineResponse200

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json