Questions tagged [ejabberd-api]
100 questions
0
votes
1 answer
Delete all users from ejabberd server using a script
I am trying to create a script to delete all users from an ejabberd server (for a given Virtual Host).
I have attempted to use e.g. ejabberdctl registered_users example.com to extract the list of users, as per…

nick_j_white
- 534
- 6
- 27
0
votes
0 answers
Ejabberd MQTT Support, Messages Load Balancing and Delivery Guarantees
According to the documentation of ejabberd, it supports both MQTT 3.1.1 and 5 without providing a client library or any more details about what is exactly supported in MQTT. I have a couple of questions about the MQTT support.
Does ejabberd support…

Wael Al-Manasrah
- 11
- 1
0
votes
1 answer
multiple jid with same account or rename jid
Hi I am working on requirement where I am using ejabbered and want to implement afunctionality in which
1: I want to rename the jid from 'test@xmpp.com' to 'phonenumebr@xmpp.com'
OR
2: Multiple jids associated to same account , ex('test@xmpp.com'…

Abhay Rawat
- 43
- 1
- 5
0
votes
1 answer
How to restrict users to send and receive messages within rosteritem in ejabberd?
I have created users in ejabberd server using REST API.
Using send_message API, I could send messages directly to any user using their jabberd id.
But I need to restrict the users to send/receive messages only with their roster items.
For…

rangarajan
- 143
- 5
- 17
0
votes
1 answer
How to fetch all messages between two users in ejabberd through REST API
I'm currently working on integrating one to one chat in a web application using ejabberd.
I have tried to send message through send_message api to the user1 from user2.
POST /api/send_message
{
"type": "headline",
"from": "user2@localhost",
…

rangarajan
- 143
- 5
- 17
0
votes
1 answer
Ejabberd APIs not working with python requests
I'm using ejabberd from the docker container. I followed this link to install ejabberd docker container.
I tried the Administration APIs in the docs. For example, I have tried to register users with API in postman. It worked and created the user in…

rangarajan
- 143
- 5
- 17
0
votes
2 answers
Use custom users table for eJabberd
Updated Answer
So I have a mobile app with registration and login working (with other features of course, but they are not important in this context). Now I want to add chat features to this application. I installed eJabberd, imported SQL script and…

Stefano Mtangoo
- 6,017
- 6
- 47
- 93
0
votes
1 answer
How to generate bearer token in REST api of ejabberd using POSTMAN
Hello guys I am using ejabberd and I want to generate a bearer token to access all the methods and to get the data using the REST of ejabberd. When I try to generate the bearer token with no auth in header it shows an error which is
i am using the…
0
votes
1 answer
Identify user with a specific information
How to identify an user with specific information like unique id or reference number in ejabberd API for chat?
I want to chat with someone then user has some information except name which is unique for that specific user. so we can identify the user…

Milan Gadoya
- 1
- 1
0
votes
1 answer
How to add large number of users to muc room in ejabberd?
We have a requirement to add 100k users to a single muc room in ejabberd server. We are using subscribe_room api to add users one by one. While adding users to the muc room, memory consumed by ejabberd is getting increased. At some point, the…

Ranjithkumar
- 31
- 4
0
votes
1 answer
Message not received when sent through send_message endpoint of Ejabberd Api if the receiver user was offline
I am implementing chat app and I can't understand why when I use modulue Send_message of ejabberd the receiver does not see the message.
I mean :
User B is offline and user A send a message using ejabberd api through https. **
when user B gets…

Mbula Mboma Jean gilbert
- 944
- 1
- 11
- 27
0
votes
1 answer
ejabberd set_preference rest api is throwing error
Can anyone please help with rest api of ejabberd's set preference
following is the request body
{
"user": "venkat",
"host": "localhost",
"resource": "tka1",
"type": "available",
"show": "away",
"status": "",
…

venkat
- 1
0
votes
1 answer
ejabberd add_channel API for MIX
Currently, there is no api for creating a MIX channel.
I'm written a custom module for the same.
So far, I have written the following code. But I'm not how to proceed further.
I would really appreciate someone's guidance here. Thanks in…

Nikhil Supekar
- 655
- 6
- 18
0
votes
1 answer
re-invite outcast user from room
Is there a way via the API to re-invite a user to a room who has previously been outcast?
Created a room
POST /create_room_with_opts
{
"name": "testroompersistent",
"service": "foo",
"host": "bar" ,
"options": {
…

FullStack
- 437
- 5
- 15
0
votes
1 answer
Can I create custom REST API on ejabberd?
I want to send data to ejabberd server using my own custom REST API. Just like ejabberd REST APIs /api/send_message. Is it possible? Or can I call my custom module directly with using hooks?

FaaiqKhan
- 143
- 12