All URIs are relative to https://api-APP_ID.sendbird.com
Method | HTTP request | Description |
---|---|---|
addApnsPushConfiguration | POST /v3/applications/push/apns | Add an APNs push configuration |
addFcmPushConfiguration | POST /v3/applications/push/fcm | Add a FCM push configuration |
addHmsPushConfiguration | POST /v3/applications/push/hms | Add an HMS push configuration |
addIpToWhitelist | PUT /v3/applications/settings/ip_whitelist | Add an IP to a whitelist |
banUsersInChannelsWithCustomChannelType | POST /v3/applications/settings_by_channel_custom_type/{custom_type}/ban | Ban users in channels with a custom channel type |
configureAutoEventMessages | PUT /v3/applications/settings/auto_event_message | Configure auto event message settings |
deleteAllowedIpsFromWhitelist | DELETE /v3/applications/settings/ip_whitelist | Delete allowed IPs from a whitelist |
deleteApnsCertificateById | DELETE /v3/applications/push/apns/cert/{provider_id} | Delete an APNs certificate |
generateSecondaryApiToken | POST /v3/applications/api_tokens | Generate a secondary API token |
listAutoEventMessages | GET /v3/applications/settings/auto_event_message | List auto event messages |
listBannedUsersInChannelsWithCustomChannelType | GET /v3/applications/settings_by_channel_custom_type/{custom_type}/ban | List banned users in channels with a custom channel type |
listMutedUsersInChannelsWithCustomChannelType | GET /v3/applications/settings_by_channel_custom_type/{custom_type}/mute | List muted users in channels with a custom channel type |
listPushConfigurations | GET /v3/applications/push/{push_type} | List push configurations |
listPushNotificationContentTemplates | GET /v3/applications/push/message_templates | List push notification content templates |
listSecondaryApiTokens | GET /v3/applications/api_tokens | List secondary API tokens |
muteUsersInChannelsWithCustomChannelType | POST /v3/applications/settings_by_channel_custom_type/{custom_type}/mute | Mute users in channels with a custom channel type |
removePushConfigurationById | DELETE /v3/applications/push/{push_type}/{provider_id} | Remove a push configuration |
retrieveIpWhitelist | GET /v3/applications/settings/ip_whitelist | Retrieve an IP whitelist |
revokeSecondaryApiTokenByToken | DELETE /v3/applications/api_tokens/{api_token} | Revoke a secondary API token |
setDomainFilter | PUT /v3/applications/settings_global/{custom_type} | Message moderation |
unbanUsersInChannelsWithCustomChannelType | DELETE /v3/applications/settings_by_channel_custom_type/{custom_type}/ban | Unban users in channels with a custom channel type |
unmuteUsersInChannelsWithCustomChannelType | DELETE /v3/applications/settings_by_channel_custom_type/{custom_type}/mute | Unmute users in channels with a custom channel type |
updateApnsPushConfigurationById | PUT /v3/applications/push/apns/{provider_id} | Update an APNs push configuration |
updateDefaultChannelInvitationPreference | PUT /v3/applications/default_channel_invitation_preference | Update default channel invitation preference |
updateFcmPushConfigurationById | PUT /v3/applications/push/fcm/{provider_id} | Update a FCM push configuration |
updateHmsPushConfigurationById | PUT /v3/applications/push/hms/{provider_id} | Update an HMS push configuration |
updatePushNotificationContentTemplate | PUT /v3/applications/push/message_templates/{template_name} | Update a push notification content template |
viewDefaultChannelInvitationPreference | GET /v3/applications/default_channel_invitation_preference | View default channel invitation preference |
viewPushConfigurationById | GET /v3/applications/push/{push_type}/{provider_id} | View a push configuration |
viewPushNotificationContentTemplate | GET /v3/applications/push/message_templates/{template_name} | Get a push notification content template |
viewSecondaryApiTokenByToken | GET /v3/applications/api_tokens/{api_token} | View a secondary API token |
AddApnsPushConfigurationResponse addApnsPushConfiguration()
Add an APNs push configuration Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your dashboard under Settings > Application > Notifications. > Note: To upload a .p12 certificate file to Sendbird server, you should send a Multipart request. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiAddApnsPushConfigurationRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
// AddApnsPushConfigurationData (optional)
addApnsPushConfigurationData: {
apnsCert: { data: Buffer.from(fs.readFileSync('/path/to/file', 'utf-8')), name: '/path/to/file' },
apnsCertEnvType: "apnsCertEnvType_example",
apnsCertPassword: "apnsCertPassword_example",
hasUnreadCountBadge: true,
contentAvailable: true,
mutableContent: true,
pushSound: "pushSound_example",
apnsType: "apnsType_example",
},
};
apiInstance.addApnsPushConfiguration(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
addApnsPushConfigurationData | AddApnsPushConfigurationData | ||
apiToken | [string] | (optional) defaults to undefined |
AddApnsPushConfigurationResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddFcmPushConfigurationResponse addFcmPushConfiguration()
Add a FCM push configuration Registers a FCM (Firebase Cloud Messaging) push configuration for your client app. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations in your dashboard under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-a-fcm-push-configuration
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiAddFcmPushConfigurationRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
// AddFcmPushConfigurationData (optional)
addFcmPushConfigurationData: {
apiKey: "apiKey_example",
pushSound: "pushSound_example",
},
};
apiInstance.addFcmPushConfiguration(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
addFcmPushConfigurationData | AddFcmPushConfigurationData | ||
apiToken | [string] | (optional) defaults to undefined |
AddFcmPushConfigurationResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddHmsPushConfigurationResponse addHmsPushConfiguration()
Add an HMS push configuration Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your dashboard under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiAddHmsPushConfigurationRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
// AddHmsPushConfigurationData (optional)
addHmsPushConfigurationData: {
huaweiAppId: "huaweiAppId_example",
huaweiAppSecret: "huaweiAppSecret_example",
pushSound: "pushSound_example",
},
};
apiInstance.addHmsPushConfiguration(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
addHmsPushConfigurationData | AddHmsPushConfigurationData | ||
apiToken | [string] | (optional) defaults to undefined |
AddHmsPushConfigurationResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddIpToWhitelistResponse addIpToWhitelist()
Add an IP to a whitelist Adds IP addresses and ranges to your Sendbird application settings. Both currently added and any previously added IPs are granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the Sendbird Dashboard. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-ip-to-a-whitelist
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiAddIpToWhitelistRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
// AddIpToWhitelistData (optional)
addIpToWhitelistData: {
ipWhitelistAddresses: [
"ipWhitelistAddresses_example",
],
},
};
apiInstance.addIpToWhitelist(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
addIpToWhitelistData | AddIpToWhitelistData | ||
apiToken | [string] | (optional) defaults to undefined |
AddIpToWhitelistResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
any banUsersInChannelsWithCustomChannelType()
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiBanUsersInChannelsWithCustomChannelTypeRequest = {
// string
customType: "custom_type_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
// BanUsersInChannelsWithCustomChannelTypeData (optional)
banUsersInChannelsWithCustomChannelTypeData: {
bannedList: [
{
userId: "userId_example",
seconds: 3.14,
description: "description_example",
},
],
onDemandUpsert: true,
},
};
apiInstance.banUsersInChannelsWithCustomChannelType(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
banUsersInChannelsWithCustomChannelTypeData | BanUsersInChannelsWithCustomChannelTypeData | ||
customType | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
any
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SendBirdAutoEventMessageSettings configureAutoEventMessages()
Configure auto event message settings Determines whether to automatically send event messages to group channels when events take place in an application. You can choose which auto event message to receive on the Sendbird Dashboard https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/configure-auto-event-message-settings ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiConfigureAutoEventMessagesRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
// ConfigureAutoEventData (optional)
configureAutoEventData: {
autoEventMessage: {
userLeave: {},
userJoin: {},
channelCreate: {},
channelChange: {},
},
},
};
apiInstance.configureAutoEventMessages(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
configureAutoEventData | ConfigureAutoEventData | ||
apiToken | [string] | (optional) defaults to undefined |
SendBirdAutoEventMessageSettings
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteAllowedIpsFromWhitelistResponse deleteAllowedIpsFromWhitelist()
Delete allowed IPs from a whitelist Deletes allowed IPs from the whitelist by specifying their IP addresses or ranges. You can configure the IP whitelist under Settings > Security > Allowed IPs in the Sendbird Dashboard. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-allowed-ips-from-a-whitelist
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiDeleteAllowedIpsFromWhitelistRequest = {
// Array<string>
ipWhitelistAddresses: [
"ip_whitelist_addresses_example",
],
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.deleteAllowedIpsFromWhitelist(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
ipWhitelistAddresses | Array<string> | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
DeleteAllowedIpsFromWhitelistResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteApnsCertificateByIdResponse deleteApnsCertificateById()
Delete an APNs certificate Deletes a specific APNs certificate. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-an-apns-certificate ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiDeleteApnsCertificateByIdRequest = {
// string
providerId: "provider_id_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.deleteApnsCertificateById(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
providerId | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
DeleteApnsCertificateByIdResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GenerateSecondaryApiTokenResponse generateSecondaryApiToken()
Generate a secondary API token Generates a new secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-generate-a-secondary-api-token
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiGenerateSecondaryApiTokenRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
// GenerateSecondaryApiTokenData (optional)
generateSecondaryApiTokenData: {
HTTP_API_TOKEN: "HTTP_API_TOKEN_example",
},
};
apiInstance.generateSecondaryApiToken(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
generateSecondaryApiTokenData | GenerateSecondaryApiTokenData | ||
apiToken | [string] | (optional) defaults to undefined |
GenerateSecondaryApiTokenResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SendBirdAutoEventMessageSettings listAutoEventMessages()
List auto event messages Retrieves a list of auto event messages that are sent in a specified application and indicates which ones are in use. Auto event messages are Admin messages that are automatically generated when a specific event occurs. https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/list-auto-event-messages ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiListAutoEventMessagesRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.listAutoEventMessages(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
apiToken | [string] | (optional) defaults to undefined |
SendBirdAutoEventMessageSettings
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CustomTypeListBannedUsersResponse listBannedUsersInChannelsWithCustomChannelType()
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiListBannedUsersInChannelsWithCustomChannelTypeRequest = {
// string
customType: "custom_type_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
// string (optional)
token: "token_example",
// number (optional)
limit: 1,
};
apiInstance.listBannedUsersInChannelsWithCustomChannelType(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
customType | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined | |
token | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to undefined |
CustomTypeListBannedUsersResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListMutedUsersInChannelsWithCustomChannelType200Response listMutedUsersInChannelsWithCustomChannelType()
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiListMutedUsersInChannelsWithCustomChannelTypeRequest = {
// string
customType: "custom_type_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
// string (optional)
token: "token_example",
// number (optional)
limit: 1,
};
apiInstance.listMutedUsersInChannelsWithCustomChannelType(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
customType | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined | |
token | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to undefined |
ListMutedUsersInChannelsWithCustomChannelType200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPushConfigurationsResponse listPushConfigurations()
List push configurations Retrieves a list of an application's registered push configurations. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-configurations ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiListPushConfigurationsRequest = {
// string
pushType: "push_type_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.listPushConfigurations(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
pushType | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
ListPushConfigurationsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPushNotificationContentTemplatesResponse listPushNotificationContentTemplates()
List push notification content templates Retrieves a list of push notification content templates of an application. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-notification-content-templates
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiListPushNotificationContentTemplatesRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.listPushNotificationContentTemplates(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
apiToken | [string] | (optional) defaults to undefined |
ListPushNotificationContentTemplatesResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListSecondaryApiTokensResponse listSecondaryApiTokens()
List secondary API tokens Retrieves a list of secondary API tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-secondary-api-tokens
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiListSecondaryApiTokensRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.listSecondaryApiTokens(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
apiToken | [string] | (optional) defaults to undefined |
ListSecondaryApiTokensResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
any muteUsersInChannelsWithCustomChannelType()
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiMuteUsersInChannelsWithCustomChannelTypeRequest = {
// string
customType: "custom_type_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
// MuteUsersInChannelsWithCustomChannelTypeData (optional)
muteUsersInChannelsWithCustomChannelTypeData: {
userIds: [
"userIds_example",
],
seconds: 3.14,
description: "description_example",
onDemandUpsert: true,
},
};
apiInstance.muteUsersInChannelsWithCustomChannelType(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
muteUsersInChannelsWithCustomChannelTypeData | MuteUsersInChannelsWithCustomChannelTypeData | ||
customType | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
any
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RemovePushConfigurationByIdResponse removePushConfigurationById()
Remove a push configuration Removes a specific push configuration from an application. The type of a push configuration is either fcm
, huawei
, or apns
. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-remove-a-push-configuration ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiRemovePushConfigurationByIdRequest = {
// string
pushType: "push_type_example",
// string
providerId: "provider_id_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.removePushConfigurationById(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
pushType | [string] | defaults to undefined | |
providerId | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
RemovePushConfigurationByIdResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RetrieveIpWhitelistResponse retrieveIpWhitelist()
Retrieve an IP whitelist Retrieves a list of all the IP ranges and addresses that have access to your Sendbird application. This list is called an IP whitelist and its addresses are granted API access when the IP whitelist API enables CIDR notations. If you specify which IP addresses or ranges to include in the whitelist, any unlisted foreign IP addresses will be denied access. If you don't specify any IP address or range to include in the whitelist, all IP addresses will be granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the Sendbird Dashboard. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-retrieve-an-ip-whitelist
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiRetrieveIpWhitelistRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.retrieveIpWhitelist(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
apiToken | [string] | (optional) defaults to undefined |
RetrieveIpWhitelistResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RevokeSecondaryApiTokenByTokenResponse revokeSecondaryApiTokenByToken()
Revoke a secondary API token Revokes a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-revoke-a-secondary-api-token
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiRevokeSecondaryApiTokenByTokenRequest = {
// string
apiToken2: "api_token_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.revokeSecondaryApiTokenByToken(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
apiToken2 | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
RevokeSecondaryApiTokenByTokenResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SendBirdChannelResponse setDomainFilter()
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiSetDomainFilterRequest = {
// string
customType: "custom_type_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
// SetDomainFilterData (optional)
setDomainFilterData: {
domainFilter: {
domains: [
"domains_example",
],
type: 1,
shouldCheckGlobal: true,
},
profanityFilter: {
keywords: [
"keywords_example",
],
regexFilters: [
{
regex: "regex_example",
},
],
type: 1,
shouldCheckGlobal: true,
},
profanityTriggeredModeration: {
count: 1,
duration: 1,
action: 1,
},
imageModeration: {
type: 1,
softBlock: true,
limits: {
adult: 1,
spoof: 1,
medical: 1,
violence: 1,
racy: 1,
},
checkUrls: true,
},
},
};
apiInstance.setDomainFilter(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
setDomainFilterData | SetDomainFilterData | ||
customType | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
SendBirdChannelResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
any unbanUsersInChannelsWithCustomChannelType()
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiUnbanUsersInChannelsWithCustomChannelTypeRequest = {
// string
customType: "custom_type_example",
// Array<string>
userIds: [
"user_ids_example",
],
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.unbanUsersInChannelsWithCustomChannelType(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
customType | [string] | defaults to undefined | |
userIds | Array<string> | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
any
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
any unmuteUsersInChannelsWithCustomChannelType()
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiUnmuteUsersInChannelsWithCustomChannelTypeRequest = {
// string
customType: "custom_type_example",
// Array<string>
userIds: [
"user_ids_example",
],
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.unmuteUsersInChannelsWithCustomChannelType(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
customType | [string] | defaults to undefined | |
userIds | Array<string> | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
any
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateApnsPushConfigurationByIdResponse updateApnsPushConfigurationById()
Update an APNs push configuration Updates a specific APNs (Apple Push Notification service) push configuration for your client app. You can also register the configurations in your dashboard under Settings > Application > Notifications. > Note: If your HTTP request body contains a .p12 certificate file to upload to Sendbird server, you should send a Multipart request . https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-apns-push-configuration ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiUpdateApnsPushConfigurationByIdRequest = {
// string
providerId: "provider_id_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
// UpdateApnsPushConfigurationByIdData (optional)
updateApnsPushConfigurationByIdData: {
providerId: "providerId_example",
apnsCert: { data: Buffer.from(fs.readFileSync('/path/to/file', 'utf-8')), name: '/path/to/file' },
apnsCertEnvType: "apnsCertEnvType_example",
apnsCertPassword: "apnsCertPassword_example",
hasUnreadCountBadge: true,
contentAvailable: true,
mutableContent: true,
pushSound: "pushSound_example",
apnsType: "apnsType_example",
},
};
apiInstance.updateApnsPushConfigurationById(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
updateApnsPushConfigurationByIdData | UpdateApnsPushConfigurationByIdData | ||
providerId | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
UpdateApnsPushConfigurationByIdResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateDefaultChannelInvitationPreferenceResponse updateDefaultChannelInvitationPreference()
Update default channel invitation preference Updates the default channel invitation preference of an application. > Note: Using the update channel invitation preference action, you can update the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiUpdateDefaultChannelInvitationPreferenceRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
// UpdateDefaultChannelInvitationPreferenceData (optional)
updateDefaultChannelInvitationPreferenceData: {
autoAccept: true,
},
};
apiInstance.updateDefaultChannelInvitationPreference(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
updateDefaultChannelInvitationPreferenceData | UpdateDefaultChannelInvitationPreferenceData | ||
apiToken | [string] | (optional) defaults to undefined |
UpdateDefaultChannelInvitationPreferenceResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateFcmPushConfigurationByIdResponse updateFcmPushConfigurationById()
Update a FCM push configuration Updates a specific FCM (Firebase Cloud Messaging) push configuration for your client app. You can also update the configurations in your dashboard under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-fcm-push-configuration ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiUpdateFcmPushConfigurationByIdRequest = {
// string
providerId: "provider_id_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
// UpdateFcmPushConfigurationByIdData (optional)
updateFcmPushConfigurationByIdData: {
providerId: "providerId_example",
apiKey: "apiKey_example",
pushSound: "pushSound_example",
},
};
apiInstance.updateFcmPushConfigurationById(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
updateFcmPushConfigurationByIdData | UpdateFcmPushConfigurationByIdData | ||
providerId | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
UpdateFcmPushConfigurationByIdResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateHmsPushConfigurationByIdResponse updateHmsPushConfigurationById()
Update an HMS push configuration Updates a specific HMS (Huawei Mobile Services) push configuration for your client app. You can also update the configurations in your dashboard under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-hms-push-configuration ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiUpdateHmsPushConfigurationByIdRequest = {
// string
providerId: "provider_id_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
// UpdateHmsPushConfigurationByIdData (optional)
updateHmsPushConfigurationByIdData: {
providerId: "providerId_example",
huaweiAppId: "huaweiAppId_example",
huaweiAppSecret: "huaweiAppSecret_example",
pushSound: "pushSound_example",
},
};
apiInstance.updateHmsPushConfigurationById(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
updateHmsPushConfigurationByIdData | UpdateHmsPushConfigurationByIdData | ||
providerId | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
UpdateHmsPushConfigurationByIdResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdatePushNotificationContentTemplateResponse updatePushNotificationContentTemplate()
Update a push notification content template Updates a specific push notification content template of an application. The name of a content template is either default
or alternative
. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-push-notification-content-template ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiUpdatePushNotificationContentTemplateRequest = {
// string
templateName: "template_name_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
// UpdatePushNotificationContentTemplateData (optional)
updatePushNotificationContentTemplateData: {
templateName: "templateName_example",
template: "template_example",
templateMESG: "templateMESG_example",
templateFILE: "templateFILE_example",
templateADMN: "templateADMN_example",
},
};
apiInstance.updatePushNotificationContentTemplate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
updatePushNotificationContentTemplateData | UpdatePushNotificationContentTemplateData | ||
templateName | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
UpdatePushNotificationContentTemplateResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ViewDefaultChannelInvitationPreferenceResponse viewDefaultChannelInvitationPreference()
View default channel invitation preference Retrieves the default channel invitation preference of an application. > Note: Using the view channel invitation preference action, you can retrieve the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiViewDefaultChannelInvitationPreferenceRequest = {
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.viewDefaultChannelInvitationPreference(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
apiToken | [string] | (optional) defaults to undefined |
ViewDefaultChannelInvitationPreferenceResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ViewPushConfigurationByIdResponse viewPushConfigurationById()
View a push configuration Retrieves a specific push configuration of an application. The type of a push configuration is either fcm
, huawei
, or apns
. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-configuration ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiViewPushConfigurationByIdRequest = {
// string
pushType: "push_type_example",
// string
providerId: "provider_id_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.viewPushConfigurationById(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
pushType | [string] | defaults to undefined | |
providerId | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
ViewPushConfigurationByIdResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ViewPushNotificationContentTemplateResponse viewPushNotificationContentTemplate()
Get a push notification content template Retrieves information on a specific push notification content templates of an application. The name of a content template is either default
or alternative
. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-notification-content-template ----------------------------
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiViewPushNotificationContentTemplateRequest = {
// string
templateName: "template_name_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.viewPushNotificationContentTemplate(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
templateName | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
ViewPushNotificationContentTemplateResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ViewSecondaryApiTokenByTokenResponse viewSecondaryApiTokenByToken()
View a secondary API token Retrieves the information on a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-secondary-api-token
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.ApplicationApi(configuration);
let body:Sendbird.ApplicationApiViewSecondaryApiTokenByTokenRequest = {
// string
apiToken2: "api_token_example",
// string (optional)
apiToken: "{{API_TOKEN}}",
};
apiInstance.viewSecondaryApiTokenByToken(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
apiToken2 | [string] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
ViewSecondaryApiTokenByTokenResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]