-
Notifications
You must be signed in to change notification settings - Fork 59
API Endpoints
Andreas edited this page Apr 6, 2025
·
11 revisions
Mit der API ist es möglich Konferenzen durch eine andere Anwendung erzeugen zu lassen.
Es sollten nur Zugriffe von einem Backend-Server auf den Jitsi-Admin durchgeführt werden. Alle Request müssen mit dem in den Enterprise Einstellungen erstellten API-Tokens als Authorization Header (Bearer Token) durchgeführt werden
GET /api/v1/info/{uid}
http://localhost:8000/api/v1/info/57d4d52d3c1f38c28e9f101f031a631f
{
"error": false,
"teilnehmer": [
"[email protected]"
],
"start": "2021-02-02CET13:00:00",
"end": "2021-02-02CET13:45:00",
"duration": 45,
"name": "testAPINEW",
"moderator": "[email protected]",
"server": "serverurl",
"joinBrowser": "http://localhost:8000/room/join/b/84",
"joinApp": "http://localhost:8000/room/join/a/84"
}GET /api/v1/server/getRooms
name type data type description apiKey (Header)required string API Key of the one server minutesrequired int Minutes where the conferences will start
minutes
http://localhost:8000/api/v1/server/getRooms
?minutes=15
{
"server_id": "id",
"success": true,
"error": false,
"room_ids":
[
"roomUID1",
"roomUID2",
"roomUIDn"
]
}POST /api/v1/room
name type data type description required Email address of the organisator namerequired string Name of the conference durationrequired int Duration of the Conference e.g. 30 serverrequired int ID of the Server in Jitsi Admin startrequired date (YYYY-mm-ddThh:mm) Startdate of the conference keycloakIdoptional int Keycloak ID of the organisator
http://localhost:8000/api/v1/room
[email protected]
&name=testAPINEW
&duration=70
&server=serverURL
&start=2021-02-01T13:00
&keycloakId=id_des_Users (optional nur wenn der selbe Keycloak verwendet wird)
{
"error": false,
"uid": "57d4d52d3c1f38c28e9f101f031a631f",
"text": "Meeting erfolgreich angelegt"
}PUT /api/v1/room
name type data type description uidrequired string UID of the conference nameoptional string Name of the conference durationoptional int Duration of the Conference e.g. 30 serveroptional int ID of the Server in Jitsi Admin startoptional date (YYYY-mm-ddThh:mm) Startdate of the conference
http://localhost:8000/api/v1/room
?uid=57d4d52d3c1f38c28e9f101f031a631f
&name=testAPINEW
&duration=45
&server=serverURL
&start=2021-02-02T13:00
{
"error": false,
"uid": "57d4d52d3c1f38c28e9f101f031a631f",
"text": "Meeting erfolgreich geändert"
}POST /api/v1/room/move
Important: The original and new server must have the same API Key. It is best to use this API after you have used the server clone API to add a new server
name type data type description uidrequired string UID of the conference serverrequired string ID of the Server
http://localhost:8000/api/v1/room/move
?uid=57d4d52d3c1f38c28e9f101f031a631f
&server=12
{
"error": false,
"message": "Room moved"
}DELETE /api/v1/room
name type data type description uidrequired string UID of the conference
http://localhost:8000/api/v1/room
?uid=57d4d52d3c1f38c28e9f101f031a631f
{
"error": false,
"text": "Erfolgreich gelöscht"
}POST /api/v1/user
name type data type description uidrequired string UID of the conference required string E-Mail Address of the new participant
http://localhost:8000/api/v1/user
?uid=57d4d52d3c1f38c28e9f101f031a631f
&[email protected]
{
"error": false,
"uid": "57d4d52d3c1f38c28e9f101f031a631f",
"user": "[email protected]",
"text": "Teilnehmer [email protected] erfolgreich hinzugefügt"
}DELETE /api/v1/user
name type data type description uidrequired string UID of the conference required string E-Mail Address of the new participant
http://localhost:8000/api/v1/user
?uid=57d4d52d3c1f38c28e9f101f031a631f
&[email protected]
{
"error": false,
"uid": "57d4d52d3c1f38c28e9f101f031a631f",
"user": "[email protected]",
"text": "Teilnehmer [email protected] erfolgreich gelöscht"
}POST /api/v1/server/create
For this endpoint, a server must be taged with isAllowedToCloneForAutoscale in the database and the API Key, which is used for the creation must be one of the servers.
name type data type description namerequired string Name of the new Server app_idrequired string App_ID of the new Server app_secretrequired string App_Secret of the new Server
http://localhost:8000/api/v1/server/create
?name=meinNeuerServer
&app_id=1234
&app_secret=verysecret
{
"server_id": "string",
"sucess": true,
"error": false
}GET /api/v1/serverInfo
name type data type description required string E-Mail Address of the new participant keycloakIdoptional string Keycloak ID of the organisator
http://localhost:8000/api/v1/serverInfo
[email protected]
&keycloakId=id (optional nur wenn der selbe Keycloak verwendet wird)
{
"server": [
"url1",
"url2",
"url3"
],
"email": "[email protected]",
"error": false
}