All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| deleteAccount | DELETE /v1/accounts/{accountId} | Disconnect account |
| deleteAccountWithHttpInfo | DELETE /v1/accounts/{accountId} | Disconnect account |
| getAccountHealth | GET /v1/accounts/{accountId}/health | Check account health |
| getAccountHealthWithHttpInfo | GET /v1/accounts/{accountId}/health | Check account health |
| getAllAccountsHealth | GET /v1/accounts/health | Check accounts health |
| getAllAccountsHealthWithHttpInfo | GET /v1/accounts/health | Check accounts health |
| getFollowerStats | GET /v1/accounts/follower-stats | Get follower stats |
| getFollowerStatsWithHttpInfo | GET /v1/accounts/follower-stats | Get follower stats |
| getTikTokCreatorInfo | GET /v1/accounts/{accountId}/tiktok/creator-info | Get TikTok creator info |
| getTikTokCreatorInfoWithHttpInfo | GET /v1/accounts/{accountId}/tiktok/creator-info | Get TikTok creator info |
| listAccounts | GET /v1/accounts | List accounts |
| listAccountsWithHttpInfo | GET /v1/accounts | List accounts |
| updateAccount | PUT /v1/accounts/{accountId} | Update account |
| updateAccountWithHttpInfo | PUT /v1/accounts/{accountId} | Update account |
DeleteAccountGroup200Response deleteAccount(accountId)
Disconnect account
Disconnects and removes a connected social account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
DeleteAccountGroup200Response result = apiInstance.deleteAccount(accountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#deleteAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Disconnected | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse deleteAccount deleteAccountWithHttpInfo(accountId)
Disconnect account
Disconnects and removes a connected social account.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountId = "accountId_example"; // String |
try {
ApiResponse<DeleteAccountGroup200Response> response = apiInstance.deleteAccountWithHttpInfo(accountId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#deleteAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String |
ApiResponse<DeleteAccountGroup200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Disconnected | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
GetAccountHealth200Response getAccountHealth(accountId)
Check account health
Returns detailed health info for a specific account including token status, permissions, and recommendations.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountId = "accountId_example"; // String | The account ID to check
try {
GetAccountHealth200Response result = apiInstance.getAccountHealth(accountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#getAccountHealth");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | The account ID to check |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Account health details | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse getAccountHealth getAccountHealthWithHttpInfo(accountId)
Check account health
Returns detailed health info for a specific account including token status, permissions, and recommendations.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountId = "accountId_example"; // String | The account ID to check
try {
ApiResponse<GetAccountHealth200Response> response = apiInstance.getAccountHealthWithHttpInfo(accountId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#getAccountHealth");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | The account ID to check |
ApiResponse<GetAccountHealth200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Account health details | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
GetAllAccountsHealth200Response getAllAccountsHealth(profileId, platform, status)
Check accounts health
Returns health status of all connected accounts including token validity, permissions, and issues needing attention.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter by profile ID
String platform = "facebook"; // String | Filter by platform
String status = "healthy"; // String | Filter by health status
try {
GetAllAccountsHealth200Response result = apiInstance.getAllAccountsHealth(profileId, platform, status);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#getAllAccountsHealth");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | String | Filter by profile ID | [optional] |
| platform | String | Filter by platform | [optional] [enum: facebook, instagram, linkedin, twitter, tiktok, youtube, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord] |
| status | String | Filter by health status | [optional] [enum: healthy, warning, error] |
GetAllAccountsHealth200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Account health summary | - |
| 401 | Unauthorized | - |
ApiResponse getAllAccountsHealth getAllAccountsHealthWithHttpInfo(profileId, platform, status)
Check accounts health
Returns health status of all connected accounts including token validity, permissions, and issues needing attention.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter by profile ID
String platform = "facebook"; // String | Filter by platform
String status = "healthy"; // String | Filter by health status
try {
ApiResponse<GetAllAccountsHealth200Response> response = apiInstance.getAllAccountsHealthWithHttpInfo(profileId, platform, status);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#getAllAccountsHealth");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | String | Filter by profile ID | [optional] |
| platform | String | Filter by platform | [optional] [enum: facebook, instagram, linkedin, twitter, tiktok, youtube, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord] |
| status | String | Filter by health status | [optional] [enum: healthy, warning, error] |
ApiResponse<GetAllAccountsHealth200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Account health summary | - |
| 401 | Unauthorized | - |
GetFollowerStats200Response getFollowerStats(accountIds, profileId, fromDate, toDate, granularity)
Get follower stats
Returns follower count history and growth metrics for connected social accounts. Requires analytics add-on subscription. Follower counts are refreshed once per day.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountIds = "accountIds_example"; // String | Comma-separated list of account IDs (optional, defaults to all user's accounts)
String profileId = "profileId_example"; // String | Filter by profile ID
LocalDate fromDate = LocalDate.now(); // LocalDate | Start date in YYYY-MM-DD format (defaults to 30 days ago)
LocalDate toDate = LocalDate.now(); // LocalDate | End date in YYYY-MM-DD format (defaults to today)
String granularity = "daily"; // String | Data aggregation level
try {
GetFollowerStats200Response result = apiInstance.getFollowerStats(accountIds, profileId, fromDate, toDate, granularity);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#getFollowerStats");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountIds | String | Comma-separated list of account IDs (optional, defaults to all user's accounts) | [optional] |
| profileId | String | Filter by profile ID | [optional] |
| fromDate | LocalDate | Start date in YYYY-MM-DD format (defaults to 30 days ago) | [optional] |
| toDate | LocalDate | End date in YYYY-MM-DD format (defaults to today) | [optional] |
| granularity | String | Data aggregation level | [optional] [default to daily] [enum: daily, weekly, monthly] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Follower stats | - |
| 401 | Unauthorized | - |
| 403 | Analytics add-on required | - |
ApiResponse getFollowerStats getFollowerStatsWithHttpInfo(accountIds, profileId, fromDate, toDate, granularity)
Get follower stats
Returns follower count history and growth metrics for connected social accounts. Requires analytics add-on subscription. Follower counts are refreshed once per day.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountIds = "accountIds_example"; // String | Comma-separated list of account IDs (optional, defaults to all user's accounts)
String profileId = "profileId_example"; // String | Filter by profile ID
LocalDate fromDate = LocalDate.now(); // LocalDate | Start date in YYYY-MM-DD format (defaults to 30 days ago)
LocalDate toDate = LocalDate.now(); // LocalDate | End date in YYYY-MM-DD format (defaults to today)
String granularity = "daily"; // String | Data aggregation level
try {
ApiResponse<GetFollowerStats200Response> response = apiInstance.getFollowerStatsWithHttpInfo(accountIds, profileId, fromDate, toDate, granularity);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#getFollowerStats");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountIds | String | Comma-separated list of account IDs (optional, defaults to all user's accounts) | [optional] |
| profileId | String | Filter by profile ID | [optional] |
| fromDate | LocalDate | Start date in YYYY-MM-DD format (defaults to 30 days ago) | [optional] |
| toDate | LocalDate | End date in YYYY-MM-DD format (defaults to today) | [optional] |
| granularity | String | Data aggregation level | [optional] [default to daily] [enum: daily, weekly, monthly] |
ApiResponse<GetFollowerStats200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Follower stats | - |
| 401 | Unauthorized | - |
| 403 | Analytics add-on required | - |
GetTikTokCreatorInfo200Response getTikTokCreatorInfo(accountId, mediaType)
Get TikTok creator info
Returns TikTok creator details, available privacy levels, posting limits, and commercial content options for a specific TikTok account. Only works with TikTok accounts.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountId = "accountId_example"; // String | The TikTok account ID
String mediaType = "video"; // String | The media type to get creator info for (affects available interaction settings)
try {
GetTikTokCreatorInfo200Response result = apiInstance.getTikTokCreatorInfo(accountId, mediaType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#getTikTokCreatorInfo");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | The TikTok account ID | |
| mediaType | String | The media type to get creator info for (affects available interaction settings) | [optional] [default to video] [enum: video, photo] |
GetTikTokCreatorInfo200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | TikTok creator info and posting options | - |
| 400 | Account is not a TikTok account | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
| 429 | Creator has reached TikTok daily posting limit | - |
ApiResponse getTikTokCreatorInfo getTikTokCreatorInfoWithHttpInfo(accountId, mediaType)
Get TikTok creator info
Returns TikTok creator details, available privacy levels, posting limits, and commercial content options for a specific TikTok account. Only works with TikTok accounts.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountId = "accountId_example"; // String | The TikTok account ID
String mediaType = "video"; // String | The media type to get creator info for (affects available interaction settings)
try {
ApiResponse<GetTikTokCreatorInfo200Response> response = apiInstance.getTikTokCreatorInfoWithHttpInfo(accountId, mediaType);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#getTikTokCreatorInfo");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | The TikTok account ID | |
| mediaType | String | The media type to get creator info for (affects available interaction settings) | [optional] [default to video] [enum: video, photo] |
ApiResponse<GetTikTokCreatorInfo200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | TikTok creator info and posting options | - |
| 400 | Account is not a TikTok account | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
| 429 | Creator has reached TikTok daily posting limit | - |
ListAccounts200Response listAccounts(profileId, platform, includeOverLimit, page, limit)
List accounts
Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on. Supports optional server-side pagination via page/limit params. When omitted, returns all accounts (backward-compatible).
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter accounts by profile ID
String platform = "platform_example"; // String | Filter accounts by platform (e.g. \"instagram\", \"twitter\").
Boolean includeOverLimit = false; // Boolean | When true, includes accounts from over-limit profiles.
Integer page = 56; // Integer | Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts.
Integer limit = 56; // Integer | Page size. Required alongside page for pagination.
try {
ListAccounts200Response result = apiInstance.listAccounts(profileId, platform, includeOverLimit, page, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#listAccounts");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | String | Filter accounts by profile ID | [optional] |
| platform | String | Filter accounts by platform (e.g. "instagram", "twitter"). | [optional] |
| includeOverLimit | Boolean | When true, includes accounts from over-limit profiles. | [optional] [default to false] |
| page | Integer | Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts. | [optional] |
| limit | Integer | Page size. Required alongside page for pagination. | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Accounts (with optional pagination) | - |
| 401 | Unauthorized | - |
ApiResponse listAccounts listAccountsWithHttpInfo(profileId, platform, includeOverLimit, page, limit)
List accounts
Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on. Supports optional server-side pagination via page/limit params. When omitted, returns all accounts (backward-compatible).
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter accounts by profile ID
String platform = "platform_example"; // String | Filter accounts by platform (e.g. \"instagram\", \"twitter\").
Boolean includeOverLimit = false; // Boolean | When true, includes accounts from over-limit profiles.
Integer page = 56; // Integer | Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts.
Integer limit = 56; // Integer | Page size. Required alongside page for pagination.
try {
ApiResponse<ListAccounts200Response> response = apiInstance.listAccountsWithHttpInfo(profileId, platform, includeOverLimit, page, limit);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#listAccounts");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | String | Filter accounts by profile ID | [optional] |
| platform | String | Filter accounts by platform (e.g. "instagram", "twitter"). | [optional] |
| includeOverLimit | Boolean | When true, includes accounts from over-limit profiles. | [optional] [default to false] |
| page | Integer | Page number (1-based). When provided with limit, enables server-side pagination. Omit for all accounts. | [optional] |
| limit | Integer | Page size. Required alongside page for pagination. | [optional] |
ApiResponse<ListAccounts200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Accounts (with optional pagination) | - |
| 401 | Unauthorized | - |
UpdateAccount200Response updateAccount(accountId, updateAccountRequest)
Update account
Updates a connected social account's display name or username override.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountId = "accountId_example"; // String |
UpdateAccountRequest updateAccountRequest = new UpdateAccountRequest(); // UpdateAccountRequest |
try {
UpdateAccount200Response result = apiInstance.updateAccount(accountId, updateAccountRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#updateAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| updateAccountRequest | UpdateAccountRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Updated | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse updateAccount updateAccountWithHttpInfo(accountId, updateAccountRequest)
Update account
Updates a connected social account's display name or username override.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.AccountsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
AccountsApi apiInstance = new AccountsApi(defaultClient);
String accountId = "accountId_example"; // String |
UpdateAccountRequest updateAccountRequest = new UpdateAccountRequest(); // UpdateAccountRequest |
try {
ApiResponse<UpdateAccount200Response> response = apiInstance.updateAccountWithHttpInfo(accountId, updateAccountRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#updateAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| updateAccountRequest | UpdateAccountRequest |
ApiResponse<UpdateAccount200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Updated | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |