Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!