Skip to content

Read a distribution list

GET
/groups/distribution-list
curl --request GET \
--url 'https://calendar.work.optidata.cloud/api/groups/distribution-list?email=engineering%40acme.example' \
--header 'Authorization: Bearer <token>'

Looks a distribution list up by its e-mail address and returns its identifiers. A distribution list is a mail-addressable group: inviting the list invites everybody on it.

email
required
string format: email

Address of the distribution list.

The distribution list.

Media typeapplication/json
object
zid
required

Identifier of the list.

string
email
required
string format: email
Examples
Examplefound
{
"zid": "5a1c1f7e-9f2d-4a6b-8a30-1c0d9d2f4b11",
"email": "engineering@acme.example"
}

Missing, malformed or expired authentication key.

Media typeapplication/json

Authentication failures use an error key rather than message.

object
error
required
string
Examples
Examplemissing

No bearer token sent

{
"error": "JWT passport exception: Missing bearer token in request"
}

No distribution list has that address.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplemissing
{
"message": "Distribution list not found"
}

The request body or query string failed validation.

Media typeapplication/json
object
message
required

The first validation message.

string
errors
required

Validation messages keyed by field name.

object
key
additional properties
Array<string>
Examples
Exampleinvalid
{
"message": "The event title field is required.",
"errors": {
"title": [
"The event title field is required."
]
}
}

Rate limit exceeded. Retry after the window resets.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplethrottled
{
"message": "Too Many Attempts."
}