
Idioma 🇪🇸 Español
Introducción
Referencia de la API
Documentación
Uso
Agregación
Registros de auditoría
Bloquear desde comentario
Comprobar comentarios bloqueados
Comentarios
Configuraciones de dominio
Plantillas de correo
Registro de eventos
Publicaciones del feed
Marcar comentario
Hashtags
Moderadores
Conteo de notificaciones
Notificaciones
Páginas
Eventos de webhook pendientes
Configuraciones de preguntas
Resultados de preguntas
Agregación de resultados de preguntas
Usuarios SSO
Suscripciones
Uso diario del tenant
Paquetes del tenant
Usuarios del tenant
Tenants
Subir imagen
Progreso de insignias de usuario
Insignias de usuario
Notificaciones de usuario
Estado de presencia de usuario
Búsqueda de usuarios
Usuarios
Votos
FastComments JavaScript/TypeScript SDK
Este es el SDK oficial de JavaScript/TypeScript para FastComments.
SDK oficial de JavaScript/TypeScript para la API de FastComments
Repositorio
Documentación de la API 
Referencia completa de la API: docs/api/README.md
Compatibilidad Navegador vs Servidor 
Este SDK utiliza puntos de entrada duales para garantizar la compatibilidad óptima y prevenir errores en tiempo de ejecución:
fastcomments-sdk/browser- Versión segura para el navegador confetchnativofastcomments-sdk/server- Versión completa para Node.js con soporte SSOfastcomments-sdk(predeterminado) - Solo tipos, seguro de importar en cualquier lugar
Uso 
Este SDK proporciona puntos de entrada separados para entornos de navegador y servidor para garantizar la compatibilidad y seguridad óptimas:
Browser Usage (Client-Side)
Para aplicaciones de navegador/frontend, use la exportación segura para navegadores que excluye dependencias de Node.js:
// Browser-safe import (no Node.js dependencies)
import { createFastCommentsBrowserSDK } from 'fastcomments-sdk/browser';
// Create browser SDK instance
const sdk = createFastCommentsBrowserSDK({
basePath: 'https://fastcomments.com' // optional, defaults to https://fastcomments.com
});
// Use public APIs (no API key needed - safe for browsers)
const comments = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Server Usage (Node.js)
Para aplicaciones de servidor/backend, use el SDK completo con SSO y características de autenticación:
// Server-side import (includes SSO and designed to work with NodeJS)
import { createFastCommentsSDK } from 'fastcomments-sdk/server';
// Create server SDK instance
const sdk = createFastCommentsSDK({
apiKey: 'your-api-key', // Keep this secret on the server!
basePath: 'https://fastcomments.com' // optional, defaults to https://fastcomments.com
});
// Use secured APIs with your API key
const comments = await sdk.defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Types Only Import
Si solo necesita tipos de TypeScript (sin código en tiempo de ejecución), use la importación por defecto:
// Types only (no runtime dependencies - safe everywhere)
import type {
PublicComment,
CreateCommentParams,
GetCommentsPublic200Response
} from 'fastcomments-sdk';
Using Individual API Classes
Browser Environment
import { PublicApi, Configuration } from 'fastcomments-sdk/browser';
const config = new Configuration({
basePath: 'https://fastcomments.com'
});
const publicApi = new PublicApi(config);
Server Environment
import { DefaultApi, PublicApi, Configuration } from 'fastcomments-sdk/server';
const config = new Configuration({
apiKey: 'your-api-key',
basePath: 'https://fastcomments.com'
});
const defaultApi = new DefaultApi(config);
const publicApi = new PublicApi(config);
APIs públicas vs seguras 
El SDK proporciona tres clases principales de API:
DefaultApi- Endpoints seguros que requieren su clave de API para la autenticación. Úselos para operaciones del lado del servidor.PublicApi- Endpoints públicos a los que se puede acceder sin una clave de API. Pueden llamarse directamente desde navegadores, dispositivos móviles, etc.HiddenApi- Endpoints internos/administrativos para casos de uso avanzados.
Ejemplo: Uso de la API pública (segura para navegadores)
import { PublicApi } from 'fastcomments-sdk/browser';
const publicApi = new PublicApi();
// Obtener comentarios de una página (no se requiere clave de API)
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Ejemplo: Uso de Default API (solo del lado del servidor)
import { DefaultApi, Configuration } from 'fastcomments-sdk/server';
const config = new Configuration({
apiKey: 'your-api-key' // ¡Mantén esto en secreto!
});
const defaultApi = new DefaultApi(config);
// Obtener comentarios con acceso administrativo completo
const response = await defaultApi.getComments({
tenantId: 'your-tenant-id',
urlId: 'page-url-id'
});
Integración SSO (Inicio de sesión único) 
FastComments admite SSO para integrarse con su sistema de autenticación de usuarios existente. La funcionalidad SSO solo está disponible en la exportación del servidor ya que requiere funciones criptográficas de Node.js.
SSO simple (solo en el servidor)
El SSO simple debe generarse en el servidor y enviarse al cliente:
// Código del lado del servidor (Node.js/backend)
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
// Crear SSO simple usando el auxiliar integrado
const userData = {
username: 'john_doe',
email: 'john@example.com',
displayName: 'John Doe',
avatar: 'https://example.com/avatar.jpg'
};
const sso = FastCommentsSSO.createSimple(userData, {
loginURL: '/login',
logoutURL: '/logout'
});
const ssoToken = sso.createToken();
// Envíe ssoToken a su código del lado del cliente
// El código del lado del cliente puede entonces usar este token con el SDK para navegador
SSO seguro (lado del servidor, recomendado)
El SSO seguro debe implementarse en el servidor y ofrece mayor seguridad:
// Código del lado del servidor (Node.js/backend)
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
// Crear SSO seguro usando el auxiliar integrado
const userData = {
id: 'user-123',
email: 'john@example.com',
username: 'john_doe',
displayName: 'John Doe',
avatar: 'https://example.com/avatar.jpg',
isAdmin: false,
isModerator: false
};
const sso = FastCommentsSSO.createSecure('your-api-key', userData, {
loginURL: '/login',
logoutURL: '/logout'
});
const ssoConfig = sso.prepareToSend();
// Usar con llamadas a la API en el servidor
const publicApi = new PublicApi();
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id',
sso: JSON.stringify(ssoConfig)
});
// O enviar ssoConfig al cliente para uso en el navegador
Uso de SSO desde el navegador (con token generado por el servidor)
// Código del lado del cliente (navegador)
import { PublicApi } from 'fastcomments-sdk/browser';
// Obtener el token SSO desde su endpoint en el servidor
const ssoToken = await fetch('/api/sso-token').then(r => r.json());
const publicApi = new PublicApi();
const response = await publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id',
sso: ssoToken // Usar el token SSO generado por el servidor
});
SSO con creación de comentarios
// Lado del servidor: crear SSO y comentario
import { FastCommentsSSO, PublicApi } from 'fastcomments-sdk/server';
const sso = FastCommentsSSO.createSecure('your-api-key', userData);
const ssoConfig = sso.prepareToSend();
const response = await publicApi.createCommentPublic({
tenantId: 'your-tenant-id',
urlId: 'page-url-id',
broadcastId: 'unique-broadcast-id',
commentData: {
comment: 'This is my comment',
date: Date.now(),
commenterName: 'John Doe',
url: 'https://example.com/page',
urlId: 'page-url-id'
},
sso: JSON.stringify(ssoConfig)
});
Casos de uso comunes 
Obtener comentarios para una página
const comments = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'article-123'
});
Crear un comentario
const newComment = await sdk.publicApi.createCommentPublic({
createCommentParams: {
tenantId: 'your-tenant-id',
urlId: 'article-123',
comment: 'Great article!',
commenterName: 'John Doe',
commenterEmail: 'john@example.com'
}
});
Votar en un comentario
const voteResponse = await sdk.publicApi.voteComment({
voteBodyParams: {
commentId: 'comment-id',
direction: 1 // 1 para voto a favor, -1 para voto en contra
}
});
Gestión de usuarios (requiere clave de API)
// Buscar usuarios (requiere DefaultApi)
const users = await sdk.defaultApi.searchUsers({
tenantId: 'your-tenant-id',
urlId: 'page-id',
usernameStartsWith: 'john'
});
Eventos en vivo (Actualizaciones en tiempo real) 
Suscríbete a eventos en vivo para recibir actualizaciones en tiempo real sobre comentarios, votos y otras actividades.
Eventos a nivel de página
Escucha eventos en vivo en una página específica (comentarios, votos, etc.):
import { subscribeToChanges, LiveEvent, LiveEventType } from 'fastcomments-sdk/browser';
const config = {
tenantId: 'your-tenant-id',
urlId: 'page-url-id',
};
// Suscribirse a eventos en vivo para una página
const subscription = subscribeToChanges(
config,
'your-tenant-id', // tenantIdWS
'page-url-id', // urlIdWS
'user-session-id', // userIdWS (obtén esto de la respuesta de getComments)
(event: LiveEvent) => {
console.log('Live event received:', event);
switch (event.type) {
case LiveEventType.new_comment:
console.log('New comment:', event.comment);
// Actualiza tu UI con el nuevo comentario
break;
case LiveEventType.new_vote:
console.log('New vote:', event.vote);
// Actualiza los contadores de votos en tu UI
break;
case LiveEventType.updated_comment:
console.log('Comment updated:', event.comment);
break;
default:
console.log('Other event type:', event.type);
}
return true; // Devuelve true si el evento fue procesado
},
(isConnected: boolean) => {
console.log('Connection status:', isConnected ? 'Connected' : 'Disconnected');
}
);
// Cierra la suscripción cuando hayas terminado
subscription.close();
Suscribirse a eventos de usuario
Escucha eventos específicos del usuario (notificaciones, menciones, etc.):
import { subscribeToUserFeed, LiveEvent, LiveEventType } from 'fastcomments-sdk/browser';
const userConfig = {
userIdWS: 'user-session-id', // Obtén esto de la respuesta de getComments
};
// Suscribirse al feed personal del usuario
const userSubscription = subscribeToUserFeed(
userConfig,
(event: LiveEvent) => {
console.log('User event received:', event);
switch (event.type) {
case LiveEventType.notification:
console.log('New notification:', event.notification);
// Muestra la notificación en tu UI
break;
case LiveEventType.notification_update:
console.log('Notification updated:', event.notification);
break;
default:
console.log('Other user event:', event.type);
}
return true;
},
(isConnected: boolean) => {
console.log('User feed connection:', isConnected ? 'Connected' : 'Disconnected');
}
);
// Cierra cuando hayas terminado
userSubscription.close();
Obtener userIdWS
El parámetro userIdWS es requerido para eventos en vivo y puede obtenerse de las respuestas de la API:
const response = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-id'
});
// Extrae userIdWS de la respuesta
const userIdWS = response.data?.userSessionInfo?.userIdWS;
if (userIdWS) {
// Ahora puedes suscribirte a eventos en vivo
const subscription = subscribeToChanges(config, tenantIdWS, urlIdWS, userIdWS, handleEvent);
}
IDs de transmisión 
Verás que debes pasar un broadcastId en algunas llamadas a la API. Cuando recibas eventos, obtendrás este ID de vuelta, de modo que sepas ignorar el evento si planeas aplicar los cambios de forma optimista en el cliente (lo cual probablemente querrás hacer, ya que ofrece la mejor experiencia). Pasa un UUID aquí. El ID debe ser lo suficientemente único como para no ocurrir dos veces en una sesión del navegador.
import { v4 as uuidv4 } from 'uuid';
const response = await sdk.publicApi.createCommentPublic({
createCommentParams: {
tenantId: 'your-tenant-id',
urlId: 'page-id',
comment: 'My comment',
broadcastId: uuidv4() // ID único para esta operación
}
});
Manejo de errores 
try {
const comments = await sdk.publicApi.getCommentsPublic({
tenantId: 'your-tenant-id',
urlId: 'page-id'
});
} catch (error) {
if (error.response?.status === 404) {
console.log('Page not found');
} else {
console.error('API Error:', error.message);
}
}
aggregate 
Agrega documentos agrupándolos (si se proporciona groupBy) y aplicando múltiples operaciones. Se admiten diferentes operaciones (por ejemplo sum, countDistinct, avg, etc.).
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| aggregationRequest | AggregationRequest | Sí | |
| parentTenantId | string | No | |
| includeStats | boolean | No |
Respuesta
Devuelve: AggregationResponse
getAuditLogs 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| limit | number | No | |
| skip | number | No | |
| order | SORTDIR | No | |
| after | number | No | |
| before | number | No |
Respuesta
Devuelve: GetAuditLogs200Response
blockFromCommentPublic 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Sí | |
| sso | string | No |
Respuesta
Devuelve: BlockFromCommentPublic200Response
unBlockCommentPublic 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| publicBlockFromCommentParams | PublicBlockFromCommentParams | Sí | |
| sso | string | No |
Respuesta
Devuelve: UnBlockCommentPublic200Response
checkedCommentsForBlocked 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentIds | string | Sí | |
| sso | string | No |
Respuesta
Devuelve: CheckedCommentsForBlocked200Response
blockUserFromComment 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| blockFromCommentParams | BlockFromCommentParams | Sí | |
| userId | string | No | |
| anonUserId | string | No |
Respuesta
Devuelve: BlockFromCommentPublic200Response
createCommentPublic 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | Sí | |
| broadcastId | string | Sí | |
| commentData | CommentData | Sí | |
| sessionId | string | No | |
| sso | string | No |
Respuesta
Devuelve: CreateCommentPublic200Response
deleteComment 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| contextUserId | string | No | |
| isLive | boolean | No |
Respuesta
Devuelve: DeleteComment200Response
deleteCommentPublic 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| broadcastId | string | Sí | |
| editKey | string | No | |
| sso | string | No |
Respuesta
Devuelve: DeleteCommentPublic200Response
deleteCommentVote 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| voteId | string | Sí | |
| urlId | string | Sí | |
| broadcastId | string | Sí | |
| editKey | string | No | |
| sso | string | No |
Respuesta
Devuelve: DeleteCommentVote200Response
flagComment 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| userId | string | No | |
| anonUserId | string | No |
Respuesta
Devuelve: FlagComment200Response
getComment 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetComment200Response
getComments 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| page | number | No | |
| limit | number | No | |
| skip | number | No | |
| asTree | boolean | No | |
| skipChildren | number | No | |
| limitChildren | number | No | |
| maxTreeDepth | number | No | |
| urlId | string | No | |
| userId | string | No | |
| anonUserId | string | No | |
| contextUserId | string | No | |
| hashTag | string | No | |
| parentId | string | No | |
| direction | SortDirections | No |
Respuesta
Devuelve: GetComments200Response
getCommentsPublic 
req tenantId urlId
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | Sí | |
| page | number | No | |
| direction | SortDirections | No | |
| sso | string | No | |
| skip | number | No | |
| skipChildren | number | No | |
| limit | number | No | |
| limitChildren | number | No | |
| countChildren | boolean | No | |
| fetchPageForCommentId | string | No | |
| includeConfig | boolean | No | |
| countAll | boolean | No | |
| includei10n | boolean | No | |
| locale | string | No | |
| modules | string | No | |
| isCrawler | boolean | No | |
| includeNotificationCount | boolean | No | |
| asTree | boolean | No | |
| maxTreeDepth | number | No | |
| useFullTranslationIds | boolean | No | |
| parentId | string | No | |
| searchText | string | No | |
| hashTags | Array |
No | |
| userId | string | No | |
| customConfigStr | string | No | |
| afterCommentId | string | No | |
| beforeCommentId | string | No |
Respuesta
Devuelve: GetCommentsPublic200Response
getCommentText 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| editKey | string | No | |
| sso | string | No |
Respuesta
Devuelve: GetCommentText200Response
getCommentVoteUserNames 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| dir | number | Sí | |
| sso | string | No |
Respuesta
Devuelve: GetCommentVoteUserNames200Response
lockComment 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| broadcastId | string | Sí | |
| sso | string | No |
Respuesta
Devuelve: LockComment200Response
pinComment 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| broadcastId | string | Sí | |
| sso | string | No |
Respuesta
Devuelve: PinComment200Response
saveComment 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createCommentParams | CreateCommentParams | Sí | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| sendEmails | boolean | No | |
| populateNotifications | boolean | No |
Respuesta
Devuelve: SaveComment200Response
saveCommentsBulk 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createCommentParams | Array |
Sí | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| sendEmails | boolean | No | |
| populateNotifications | boolean | No |
Respuesta
Devuelve: Array<SaveComment200Response
setCommentText 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| broadcastId | string | Sí | |
| commentTextUpdateRequest | CommentTextUpdateRequest | Sí | |
| editKey | string | No | |
| sso | string | No |
Respuesta
Devuelve: SetCommentText200Response
unBlockUserFromComment 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| unBlockFromCommentParams | UnBlockFromCommentParams | Sí | |
| userId | string | No | |
| anonUserId | string | No |
Respuesta
Devuelve: UnBlockCommentPublic200Response
unFlagComment 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| userId | string | No | |
| anonUserId | string | No |
Respuesta
Devuelve: FlagComment200Response
unLockComment 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| broadcastId | string | Sí | |
| sso | string | No |
Respuesta
Devuelve: LockComment200Response
unPinComment 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| broadcastId | string | Sí | |
| sso | string | No |
Respuesta
Devuelve: PinComment200Response
updateComment 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| body | PickAPICommentUpdatableCommentFields | Sí | |
| contextUserId | string | No | |
| doSpamCheck | boolean | No | |
| isLive | boolean | No |
Respuesta
Devuelve: FlagCommentPublic200Response
voteComment 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| urlId | string | Sí | |
| broadcastId | string | Sí | |
| voteBodyParams | VoteBodyParams | Sí | |
| sessionId | string | No | |
| sso | string | No |
Respuesta
Devuelve: VoteComment200Response
addDomainConfig 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| addDomainConfigParams | AddDomainConfigParams | Sí |
Respuesta
Devuelve: AddDomainConfig200Response
deleteDomainConfig 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| domain | string | Sí |
Respuesta
Devuelve: DeleteDomainConfig200Response
getDomainConfig 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| domain | string | Sí |
Respuesta
Devuelve: GetDomainConfig200Response
getDomainConfigs 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí |
Respuesta
Devuelve: GetDomainConfigs200Response
patchDomainConfig 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| domainToUpdate | string | Sí | |
| patchDomainConfigParams | PatchDomainConfigParams | Sí |
Respuesta
Devuelve: GetDomainConfig200Response
putDomainConfig 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| domainToUpdate | string | Sí | |
| updateDomainConfigParams | UpdateDomainConfigParams | Sí |
Respuesta
Devuelve: GetDomainConfig200Response
createEmailTemplate 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createEmailTemplateBody | CreateEmailTemplateBody | Sí |
Respuesta
Devuelve: CreateEmailTemplate200Response
Ejemplo

deleteEmailTemplate 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

deleteEmailTemplateRenderError 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| errorId | string | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getEmailTemplate 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetEmailTemplate200Response
Ejemplo

getEmailTemplateDefinitions 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí |
Respuesta
Devuelve: GetEmailTemplateDefinitions200Response
Ejemplo

getEmailTemplateRenderErrors 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| skip | number | No |
Respuesta
Devuelve: GetEmailTemplateRenderErrors200Response
Ejemplo

getEmailTemplates 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| skip | number | No |
Respuesta
Devuelve: GetEmailTemplates200Response
Ejemplo

renderEmailTemplate 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| renderEmailTemplateBody | RenderEmailTemplateBody | Sí | |
| locale | string | No |
Respuesta
Devuelve: RenderEmailTemplate200Response
Ejemplo

updateEmailTemplate 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateEmailTemplateBody | UpdateEmailTemplateBody | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getEventLog 
req tenantId urlId userIdWS
Parámetros
| Name | Type | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | Sí | |
| userIdWS | string | Sí | |
| startTime | number | Sí | |
| endTime | number | Sí |
Respuesta
Devuelve: GetEventLog200Response
getGlobalEventLog 
req tenantId urlId userIdWS
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | Sí | |
| userIdWS | string | Sí | |
| startTime | number | Sí | |
| endTime | number | Sí |
Respuesta
Devuelve: GetEventLog200Response
createFeedPost 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createFeedPostParams | CreateFeedPostParams | Sí | |
| broadcastId | string | No | |
| isLive | boolean | No | |
| doSpamCheck | boolean | No | |
| skipDupCheck | boolean | No |
Respuesta
Devuelve: CreateFeedPost200Response
createFeedPostPublic 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createFeedPostParams | CreateFeedPostParams | Sí | |
| broadcastId | string | No | |
| sso | string | No |
Respuesta
Devuelve: CreateFeedPostPublic200Response
deleteFeedPostPublic 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| postId | string | Sí | |
| broadcastId | string | No | |
| sso | string | No |
Respuesta
Devuelve: DeleteFeedPostPublic200Response
getFeedPosts 
req tenantId afterId
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| afterId | string | No | |
| limit | number | No | |
| tags | Array |
No |
Respuesta
Devuelve: GetFeedPosts200Response
getFeedPostsPublic 
req tenantId afterId
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| afterId | string | No | |
| limit | number | No | |
| tags | Array |
No | |
| sso | string | No | |
| isCrawler | boolean | No | |
| includeUserInfo | boolean | No |
Respuesta
Devuelve: GetFeedPostsPublic200Response
getFeedPostsStats 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| postIds | Array |
Sí | |
| sso | string | No |
Respuesta
Devuelve: GetFeedPostsStats200Response
getUserReactsPublic 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| postIds | Array |
No | |
| sso | string | No |
Respuesta
Devuelve: GetUserReactsPublic200Response
reactFeedPostPublic 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| postId | string | Sí | |
| reactBodyParams | ReactBodyParams | Sí | |
| isUndo | boolean | No | |
| broadcastId | string | No | |
| sso | string | No |
Respuesta
Devuelve: ReactFeedPostPublic200Response
updateFeedPost 
Parámetros
| Name | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| feedPost | FeedPost | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
updateFeedPostPublic 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| postId | string | Sí | |
| updateFeedPostParams | UpdateFeedPostParams | Sí | |
| broadcastId | string | No | |
| sso | string | No |
Respuesta
Devuelve: CreateFeedPostPublic200Response
flagCommentPublic 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| isFlagged | boolean | Sí | |
| sso | string | No |
Respuesta
Devuelve: FlagCommentPublic200Response
addHashTag 
Parameters
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | No | |
| createHashTagBody | CreateHashTagBody | No |
Response
Devuelve: AddHashTag200Response
Ejemplo

addHashTagsBulk 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | No | |
| bulkCreateHashTagsBody | BulkCreateHashTagsBody | No |
Respuesta
Devuelve: AddHashTagsBulk200Response
Ejemplo

deleteHashTag 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tag | string | Sí | |
| tenantId | string | No | |
| deleteHashTagRequest | DeleteHashTagRequest | No |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getHashTags 
Parámetros
| Name | Type | Requerido | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| page | number | No |
Respuesta
Devuelve: GetHashTags200Response
Ejemplo

patchHashTag 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tag | string | Sí | |
| tenantId | string | No | |
| updateHashTagBody | UpdateHashTagBody | No |
Respuesta
Devuelve: PatchHashTag200Response
Ejemplo

createModerator 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createModeratorBody | CreateModeratorBody | Sí |
Respuesta
Devuelve: CreateModerator200Response
Ejemplo

deleteModerator 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| sendEmail | string | No |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getModerator 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetModerator200Response
Ejemplo

getModerators 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| skip | number | No |
Respuesta
Devuelve: GetModerators200Response
Ejemplo

sendInvite 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| fromName | string | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

updateModerator 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateModeratorBody | UpdateModeratorBody | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

deleteNotificationCount 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getCachedNotificationCount 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetCachedNotificationCount200Response
Ejemplo

getNotificationCount 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| userId | string | No | |
| urlId | string | No | |
| fromCommentId | string | No | |
| viewed | boolean | No | |
| type | string | No |
Respuesta
Devuelve: GetNotificationCount200Response
Ejemplo

getNotifications 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| userId | string | No | |
| urlId | string | No | |
| fromCommentId | string | No | |
| viewed | boolean | No | |
| type | string | No | |
| skip | number | No |
Respuesta
Devuelve: GetNotifications200Response
Ejemplo

updateNotification 
Parámetros
| Name | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateNotificationBody | UpdateNotificationBody | Sí | |
| userId | string | No |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

addPage 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createAPIPageData | CreateAPIPageData | Sí |
Respuesta
Devuelve: AddPageAPIResponse
deletePage 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: DeletePageAPIResponse
getPageByURLId 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | Sí |
Respuesta
Devuelve: GetPageByURLIdAPIResponse
getPages 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí |
Respuesta
Devuelve: GetPagesAPIResponse
patchPage 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateAPIPageData | UpdateAPIPageData | Sí |
Respuesta
Devuelve: PatchPageAPIResponse
deletePendingWebhookEvent 
Parámetros
| Name | Type | Obligatorio | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getPendingWebhookEventCount 
Parámetros
| Name | Type | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | No | |
| externalId | string | No | |
| eventType | string | No | |
| type | string | No | |
| domain | string | No | |
| attemptCountGT | number | No |
Respuesta
Devuelve: GetPendingWebhookEventCount200Response
Ejemplo

getPendingWebhookEvents 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | No | |
| externalId | string | No | |
| eventType | string | No | |
| type | string | No | |
| domain | string | No | |
| attemptCountGT | number | No | |
| skip | number | No |
Respuesta
Devuelve: GetPendingWebhookEvents200Response
Ejemplo

createQuestionConfig 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| createQuestionConfigBody | CreateQuestionConfigBody | Sí |
Respuesta
Devuelve: CreateQuestionConfig200Response
Ejemplo

deleteQuestionConfig 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getQuestionConfig 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetQuestionConfig200Response
Ejemplo

getQuestionConfigs 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| skip | number | No |
Respuesta
Devuelve: GetQuestionConfigs200Response
Ejemplo

updateQuestionConfig 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateQuestionConfigBody | UpdateQuestionConfigBody | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

createQuestionResult 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createQuestionResultBody | CreateQuestionResultBody | Sí |
Respuesta
Devuelve: CreateQuestionResult200Response
Ejemplo

deleteQuestionResult 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getQuestionResult 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetQuestionResult200Response
Ejemplo

getQuestionResults 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | No | |
| userId | string | No | |
| startDate | string | No | |
| questionId | string | No | |
| questionIds | string | No | |
| skip | number | No |
Respuesta
Devuelve: GetQuestionResults200Response
Ejemplo

updateQuestionResult 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateQuestionResultBody | UpdateQuestionResultBody | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

aggregateQuestionResults 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| questionId | string | No | |
| questionIds | Array |
No | |
| urlId | string | No | |
| timeBucket | AggregateTimeBucket | No | |
| startDate | Date | No | |
| forceRecalculate | boolean | No |
Respuesta
Devuelve: AggregateQuestionResults200Response
bulkAggregateQuestionResults 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| bulkAggregateQuestionResultsRequest | BulkAggregateQuestionResultsRequest | Sí | |
| forceRecalculate | boolean | No |
Respuesta
Devuelve: BulkAggregateQuestionResults200Response
combineCommentsWithQuestionResults 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| questionId | string | No | |
| questionIds | Array |
No | |
| urlId | string | No | |
| startDate | Date | No | |
| forceRecalculate | boolean | No | |
| minValue | number | No | |
| maxValue | number | No | |
| limit | number | No |
Respuesta
Devuelve: CombineCommentsWithQuestionResults200Response
addSSOUser 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createAPISSOUserData | CreateAPISSOUserData | Sí |
Respuesta
Devuelve: AddSSOUserAPIResponse
deleteSSOUser 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| deleteComments | boolean | No | |
| commentDeleteMode | string | No |
Respuesta
Devuelve: DeleteSSOUserAPIResponse
getSSOUserByEmail 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| string | Sí |
Respuesta
Devuelve: GetSSOUserByEmailAPIResponse
getSSOUserById 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetSSOUserByIdAPIResponse
getSSOUsers 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| skip | number | No |
Respuesta
Devuelve: GetSSOUsers200Response
patchSSOUser 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateAPISSOUserData | UpdateAPISSOUserData | Sí | |
| updateComments | boolean | No |
Respuesta
Devuelve: PatchSSOUserAPIResponse
putSSOUser 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateAPISSOUserData | UpdateAPISSOUserData | Sí | |
| updateComments | boolean | No |
Respuesta
Devuelve: PutSSOUserAPIResponse
createSubscription 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createAPIUserSubscriptionData | CreateAPIUserSubscriptionData | Sí |
Respuesta
Devuelve: CreateSubscriptionAPIResponse
deleteSubscription 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| userId | string | No |
Respuesta
Devuelve: DeleteSubscriptionAPIResponse
getSubscriptions 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| userId | string | No |
Respuesta
Devuelve: GetSubscriptionsAPIResponse
getTenantDailyUsages 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| yearNumber | number | No | |
| monthNumber | number | No | |
| dayNumber | number | No | |
| skip | number | No |
Respuesta
Devuelve: GetTenantDailyUsages200Response
Ejemplo

createTenantPackage 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createTenantPackageBody | CreateTenantPackageBody | Sí |
Respuesta
Devuelve: CreateTenantPackage200Response
Ejemplo

deleteTenantPackage 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getTenantPackage 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetTenantPackage200Response
Ejemplo

getTenantPackages 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| skip | number | No |
Respuesta
Devuelve: GetTenantPackages200Response
Ejemplo

replaceTenantPackage 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| replaceTenantPackageBody | ReplaceTenantPackageBody | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

updateTenantPackage 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | |
| id | string | Yes | |
| updateTenantPackageBody | UpdateTenantPackageBody | Yes |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

createTenantUser 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createTenantUserBody | CreateTenantUserBody | Sí |
Respuesta
Devuelve: CreateTenantUser200Response
Ejemplo

deleteTenantUser 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| deleteComments | string | No | |
| commentDeleteMode | string | No |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getTenantUser 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetTenantUser200Response
Ejemplo

getTenantUsers 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| skip | number | No |
Respuesta
Devuelve: GetTenantUsers200Response
Ejemplo

replaceTenantUser 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| replaceTenantUserBody | ReplaceTenantUserBody | Sí | |
| updateComments | string | No |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

sendLoginLink 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| redirectURL | string | No |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

updateTenantUser 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateTenantUserBody | UpdateTenantUserBody | Sí | |
| updateComments | string | No |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

createTenant 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createTenantBody | CreateTenantBody | Sí |
Respuesta
Devuelve: CreateTenant200Response
Ejemplo

deleteTenant 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| sure | string | No |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

getTenant 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetTenant200Response
Ejemplo

getTenants 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| meta | string | No | |
| skip | number | No |
Respuesta
Devuelve: GetTenants200Response
Ejemplo

updateTenant 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateTenantBody | UpdateTenantBody | Sí |
Respuesta
Devuelve: FlagCommentPublic200Response
Ejemplo

uploadImage 
Subir y redimensionar una imagen
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| file | Blob | Sí | |
| sizePreset | SizePreset | No | |
| urlId | string | No |
Respuesta
Devuelve: UploadImageResponse
getUserBadgeProgressById 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetUserBadgeProgressById200Response
getUserBadgeProgressByUserId 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| userId | string | Sí |
Respuesta
Devuelve: GetUserBadgeProgressById200Response
getUserBadgeProgressList 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| userId | string | No | |
| limit | number | No | |
| skip | number | No |
Respuesta
Devuelve: GetUserBadgeProgressList200Response
createUserBadge 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| createUserBadgeParams | CreateUserBadgeParams | Sí |
Respuesta
Devuelve: CreateUserBadge200Response
deleteUserBadge 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: UpdateUserBadge200Response
getUserBadge 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetUserBadge200Response
getUserBadges 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| userId | string | No | |
| badgeId | string | No | |
| type | number | No | |
| displayedOnComments | boolean | No | |
| limit | number | No | |
| skip | number | No |
Respuesta
Devuelve: GetUserBadges200Response
updateUserBadge 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| updateUserBadgeParams | UpdateUserBadgeParams | Sí |
Respuesta
Devuelve: UpdateUserBadge200Response
getUserNotificationCount 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| sso | string | No |
Respuesta
Devuelve: GetUserNotificationCount200Response
getUserNotifications 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| pageSize | number | No | |
| afterId | string | No | |
| includeContext | boolean | No | |
| afterCreatedAt | number | No | |
| unreadOnly | boolean | No | |
| dmOnly | boolean | No | |
| noDm | boolean | No | |
| includeTranslations | boolean | No | |
| sso | string | No |
Respuesta
Devuelve: GetUserNotifications200Response
resetUserNotificationCount 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| sso | string | No |
Respuesta
Devuelve: ResetUserNotifications200Response
resetUserNotifications 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| afterId | string | No | |
| afterCreatedAt | number | No | |
| unreadOnly | boolean | No | |
| dmOnly | boolean | No | |
| noDm | boolean | No | |
| sso | string | No |
Respuesta
Devuelve: ResetUserNotifications200Response
updateUserNotificationCommentSubscriptionStatus 
Habilitar o deshabilitar las notificaciones para un comentario específico.
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| notificationId | string | Sí | |
| optedInOrOut | UpdateUserNotificationCommentSubscriptionStatusOptedInOrOutEnum | Sí | |
| commentId | string | Sí | |
| sso | string | No |
Respuesta
Devuelve: UpdateUserNotificationStatus200Response
updateUserNotificationPageSubscriptionStatus 
Habilitar o deshabilitar las notificaciones para una página. Cuando los usuarios están suscritos a una página, se crean notificaciones para nuevos comentarios raíz, y también
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | Sí | |
| url | string | Sí | |
| pageTitle | string | Sí | |
| subscribedOrUnsubscribed | UpdateUserNotificationPageSubscriptionStatusSubscribedOrUnsubscribedEnum | Sí | |
| sso | string | No |
Respuesta
Devuelve: UpdateUserNotificationStatus200Response
updateUserNotificationStatus 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| notificationId | string | Sí | |
| newStatus | UpdateUserNotificationStatusNewStatusEnum | Sí | |
| sso | string | No |
Respuesta
Devuelve: UpdateUserNotificationStatus200Response
getUserPresenceStatuses 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlIdWS | string | Sí | |
| userIds | string | Sí |
Respuesta
Devuelve: GetUserPresenceStatuses200Response
searchUsers 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | Sí | |
| usernameStartsWith | string | Sí | |
| mentionGroupIds | Array |
No | |
| sso | string | No |
Respuesta
Devuelve: SearchUsers200Response
getUser 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí |
Respuesta
Devuelve: GetUser200Response
Ejemplo

createVote 
Parámetros
| Name | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Sí | |
| commentId | string | Sí | |
| direction | CreateVoteDirectionEnum | Sí | |
| userId | string | No | |
| anonUserId | string | No |
Respuesta
Devuelve: VoteComment200Response
Ejemplo

deleteVote 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| id | string | Sí | |
| editKey | string | No |
Respuesta
Devuelve: DeleteCommentVote200Response
Ejemplo

getVotes 
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | Sí |
Respuesta
Devuelve: GetVotes200Response
Ejemplo

getVotesForUser 
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| tenantId | string | Sí | |
| urlId | string | Sí | |
| userId | string | No | |
| anonUserId | string | No |
Respuesta
Devuelve: GetVotesForUser200Response
Ejemplo

¿Necesitas ayuda?
Si encuentras algún problema o tienes preguntas sobre el SDK de JavaScript/TypeScript, por favor:
Contribuciones
¡Las contribuciones son bienvenidas! Visita el repositorio de GitHub para las pautas de contribución.