Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
How to delete a conversation participant user by its identity

I add users to conversations through API REST. For example I do:

await client.conversations
    .services(TWILIO_CHAT_SERVICE_SID)
    .conversations(conversationSid)
    .participants.create({ identity: myIdentity });

Consider that I need to delete users from conversation only through API REST. I found out here how to remove them by its sid. Is there any way to remove them by its identity? I need to do so because I don't keep trace of participant's sid into my DB. If I have to then I will.

So how would you face this problem?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I think you need the SID. Thankfully when you create a participant in the conversation, the API responds with the SID.

const participant = await client.conversations
    .services(TWILIO_CHAT_SERVICE_SID)
    .conversations(conversationSid)
    .participants.create({ identity: myIdentity });

console.log(participant.sid);

So, when you create the participant, store their SID. Then when you need to update or delete them, you can fetch their SID from your own database.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda