Get information about a mailing list
const url = 'https://example.com/api/v1/domains/1/mlists/1';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/1 \ --cookie grommunioAuthJwt=<grommunioAuthJwt>Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”ID of the domain
ID of the object
Query Parameters
Section titled “Query Parameters”Set detail level of return value. Usually ranges from 0 to 2.
Responses
Section titled “ Responses ”Mailing list returned
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
{ "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"}