Searches for users or rooms that are visible to the user.
WARNING: It will only return rooms that user didn't join yet.
URL | Requires Auth | HTTP Method |
|
|
|
curl -H "X-Auth-Token: 6eWs4ECxUITYYoZ_bAYK5OE2srkxAepQqQA1cGGv3jK" \-H "X-User-Id: hvzu8z6mHFigiXy6Y" \http://localhost:3000/api/v1/spotlight?query=foobar
curl -H "X-Auth-Token: 6eWs4ECxUITYYoZ_bAYK5OE2srkxAepQqQA1cGGv3jK" \-H "X-User-Id: hvzu8z6mHFigiXy6Y" \http://localhost:3000/api/v1/spotlight?query=@foobar
curl -H "X-Auth-Token: 6eWs4ECxUITYYoZ_bAYK5OE2srkxAepQqQA1cGGv3jK" \-H "X-User-Id: hvzu8z6mHFigiXy6Y" \http://localhost:3000/api/v1/spotlight?query=#foobar
Argument | Example | Required | Description |
|
| Required | The term to be searched. Supports '#' for channels and '@' for users |
{"users": [{"_id": "rocket.cat","name": "Rocket.Cat","username": "rocket.cat","status": "online","avatarETag": "5BB9B5ny5DkKdrwkq"}],"rooms": [],"success": true}
Version | Description |
0.64.0 | Added support to '#' and '@' searches, for channels and users respectively. |
0.61.0 | Added. |