Skip to content

Returns a list of all groups of the user.

GET
/api/user/current/groups

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Responses

Success returns list of related groups of user
JSON
[
{
"id": "1",
"name": "Öffentlichkeitsarbeit - Startseite",
"isResponsible": true
}
]
Authorization
api_key
cURL
curl -X GET \
'http://localhost/api/user/current/groups'

Samples

cURL
curl -X GET http://localhost/api/user/current/groups
JavaScript
fetch("http://localhost/api/user/current/groups")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/current/groups");
Python
import requests
response = requests.get("http://localhost/api/user/current/groups")
print(response.json())