Get list of mailing lists
const url = 'https://example.com/api/v1/domains/1/mlists?limit=50&offset=0';const options = {method: 'GET', headers: {cookie: 'grommunioAuthJwt=<grommunioAuthJwt>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/domains/1/mlists?limit=50&offset=0' \ --cookie grommunioAuthJwt=<grommunioAuthJwt>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of the domain
Query Parameters
Section titled “Query Parameters”Set detail level of return value. Usually ranges from 0 to 2.
Maximum number of results to return
Index of the first element to return
Match by substring
Comma separated list of attributes to restrict matching to.
Sort by attribute. Can be given multiple times.
Filter one or more IDs
Filter by list name
Filter by one or more list types
Filter by one or more list privilege types
Responses
Section titled “Responses”List of MLists returned
object
object
Unique ID of the object
Name or e-mail address of the list
Type of mailing list (0=Normal, 2=Domain)
Sender privilege of list (0=All, 1=Internal, 2=Domain, 3=Specific, 4=Outgoing)
Recipients, only available if listType=0
Senders, only available if listPrivilege=3
Display name property of the associated user object
Attributehidde_gromox property of the associated user object
ID of the associated user
Example
{ "data": [ { "listType": 0, "listPrivilege": 0 } ]}Validation of input parameters failed
object
List of errors encountered during validation
Examplegenerated
{ "message": "example", "errors": [ "example" ]}The requested resource could not be found
object
Examplegenerated
{ "message": "example"}An error occurred while processing the request
object
String representation of the exception
Examplegenerated
{ "message": "example"}The database query failed
object
Description of the error
Examplegenerated
{ "message": "example"}