Introduction
This page describes the rest http api. It provides interfaces for administrative purposes and is therefore not intended to be used by clients for endusers. Basic authentication is used to authenticate the client, which needs to be configured in the middleware via the following properties:
com.openexchange.rest.services.basic-auth.login
com.openexchange.rest.services.basic-auth.password
Authentication
basicAuth
HTTP Basic Authentication.
| Security scheme type: | http |
| HTTP Authorization Scheme: | basic |
contextAdminAuth
The API can be accessed via HTTP Basic Auth with context administrator credentials or reseller/master administrator credentials if MASTER_ACCOUNT_OVERRIDE is enabled.
| Security scheme type: | http |
| HTTP Authorization Scheme: | basic |
masterAdminAuth
The API can be accessed via HTTP Basic Auth with master administrator credentials.
| Security scheme type: | http |
| HTTP Authorization Scheme: | basic |
OX REST API
Documentation of the Open-Xchange REST API.
Results
Test-
AccountRecovery
Unauthenticated user-initiated password recovery flow (request, reset, password requirements). Legacy alias paths are kept for backward compatibility and marked deprecated.-
Legacy-shape entry point preserved for existing clients that were built against the standalone account-recovery service. New integrations should use
POST /account-recovery/v1/forgot-passwordinstead.Behaves identically to the modern endpoint but accepts an additional optional
appfield that is stamped onto the issued token's metadata. Core reads no brand header; with cloud-plugins both endpoints take the brand from the header named bycom.openexchange.cloudplugins.header(defaultHost).Body:
Description:No description available
Content-type: application/json-
LegacyRecoveryRequestBody Composed Schema
ALLOF: RecoveryForgotPasswordRequest Object Body of the legacy `POST /account-recovery/request` endpoint. -
RecoveryForgotPasswordRequest
{- email ( string , required ): The email address to initiate recovery for. Matched against the users' stored recovery email addresses and, when `com.openexchange.mailmapping.lookUpByDomain` is enabled, their primary addresses and aliases. A missing or empty value is acknowledged without a lookup.
-
Unknown
{- app ( string ): Optional application identifier passed by the calling client (e.g. `mail`, `calendar`). Stored opaquely on the issued token; consumed at reset time by deployment-specific URL resolvers to redirect the user back to the originating application.
Responses:
204:
Acknowledgement. Response shape is constant regardless of whether the address matched any account, and also returned for an empty body or a missing `email`.
400:
The request body is not a JSON object.
415:
The request has a `Content-Type` other than JSON.
-
-
Legacy-shape password-requirements endpoint preserved for existing clients. Identical response shape to
GET /account-recovery/v1/password-requirements; new integrations should use that path instead.Parameters:
Parameter Value Description Parameter Type Data Type token (empty) The reset token from the recovery link. With a live token the policy of that user is returned; an absent, unknown or expired token returns the server-wide policy.
query string Responses:
200:
The policy.
Content-type: application/json-
RecoveryPasswordRequirements - The admin-flow password policy that a new password must satisfy. Returned by the `password-requirements` endpoint so client UIs can pre-validate the password locally before submission. Defaults are no enforcement (`minLength=0`, all flags `false`); operators opt in via `com.openexchange.passwordchange.admin.*` properties.
{- minLength ( integer , required ): Minimum allowed password length. `0` disables the check.
- specialCharRequired ( boolean , required ): Whether the password must contain at least one non-alphanumeric character.
- digitRequired ( boolean , required ): Whether the password must contain at least one digit (`0`–`9`).
- lowerCaseRequired ( boolean , required ): Whether the password must contain at least one lowercase letter (`a`–`z`).
- upperCaseRequired ( boolean , required ): Whether the password must contain at least one uppercase letter (`A`–`Z`).
503:
The configuration service is unavailable.
-
-
Legacy-shape reset endpoint preserved for existing clients. Behaves like
POST /account-recovery/v1/resetplus an optionalappfield in the body that can override the value captured at request time when resolving the post-resetloginUrl. The success response contains aloginUrlwhen a deployment-specific resolver produced one, otherwise204 No Content.Body:
Description:No description available
Content-type: application/json-
LegacyRecoveryResetRequest Composed Schema
ALLOF: RecoveryResetRequest Object Body of the legacy `POST /account-recovery/reset` endpoint. Adds the optional `app` field on top of the modern `ResetRequest` shape so deployment-specific URL resolvers can produce an app-aware `loginUrl` in the response. -
RecoveryResetRequest
{- token ( string , required ): The single-use reset token previously delivered to the user. Consumed atomically on a successful POST.
- password ( string , required ): The new password. Validated against the admin-flow password policy (`AdminPasswordChangeProperties`); a violation fails the request.
-
Unknown
{- app ( string ): Optional application identifier overriding any value captured at request time. Used by deployment-specific resolvers to compute the post-reset `loginUrl`.
Responses:
200:
The password has been changed; a deployment-specific login URL is included for the client to redirect to.
Content-type: application/json-
LegacyRecoveryResetResponse - Body of a successful legacy `POST /account-recovery/reset`. Returned only when a deployment-specific URL resolver produces a login URL for the consumed token. When no login URL is configured the response is `204 No Content` instead, with no body.
{- loginUrl ( string ): Absolute URL the client should redirect the user to after the reset completes.
204:
The password has been changed; no login URL is configured for the consumed token.
400:
The body is not a JSON object, `token` or `password` is missing, the token is unknown, expired or already used, the password was refused, or an unexpected error occurred. Unlike the modern endpoint, no reason is returned.
403:
Recovery is not permitted for the bound user; the change was refused.
415:
The request has a `Content-Type` other than JSON.
503:
A required service is currently unavailable.
-
-
Looks up users whose stored recovery email matches the supplied address (only verified ones when
com.openexchange.accountrecovery.verification.requireVerifiedEmailis set), plus users holding it as primary address or alias whencom.openexchange.mailmapping.lookUpByDomainis enabled. For each match that has account recovery enabled, a delivery channel, is not blacklisted, not rate-limited, and below the per-user cap on concurrent outstanding tokens, it issues a single-use reset token and dispatches the configured notification (mail and/or SMS) asynchronously.The response shape is identical regardless of whether the address matched any account, preventing recovery from being used to enumerate registered addresses.
Body:
Description:No description available
Content-type: application/json-
RecoveryForgotPasswordRequest
{- email ( string , required ): The email address to initiate recovery for. Matched against the users' stored recovery email addresses and, when `com.openexchange.mailmapping.lookUpByDomain` is enabled, their primary addresses and aliases. A missing or empty value is acknowledged without a lookup.
Responses:
200:
Acknowledgement message, also returned for an empty body or a missing `email`.
Content-type: application/json-
RecoveryForgotPasswordResponse
{- message ( string ): A generic acknowledgement message returned regardless of whether the submitted address matched any account. The message is deliberately constant to avoid leaking which addresses are registered.
400:
The request body is not a JSON object.
415:
The request has a `Content-Type` other than JSON.
Examples:
Example1: Initiate recoveryPOST /account-recovery/v1/forgot-password Content-Type: application/json {"email": "user@example.com"} -
-
Returns the admin-flow password policy so a recovery reset UI can pre-validate the password locally before submission. The endpoint is anonymous. With the reset token it reports the policy of the token's user, as the reset enforces it; without one it reports the server-wide policy, which per-context or per-user overrides may tighten at submit time.
Parameters:
Parameter Value Description Parameter Type Data Type token (empty) The reset token from the recovery link. With a live token the policy of that user is returned; an absent, unknown or expired token returns the server-wide policy.
query string Responses:
200:
The policy.
Content-type: application/json-
RecoveryPasswordRequirements - The admin-flow password policy that a new password must satisfy. Returned by the `password-requirements` endpoint so client UIs can pre-validate the password locally before submission. Defaults are no enforcement (`minLength=0`, all flags `false`); operators opt in via `com.openexchange.passwordchange.admin.*` properties.
{- minLength ( integer , required ): Minimum allowed password length. `0` disables the check.
- specialCharRequired ( boolean , required ): Whether the password must contain at least one non-alphanumeric character.
- digitRequired ( boolean , required ): Whether the password must contain at least one digit (`0`–`9`).
- lowerCaseRequired ( boolean , required ): Whether the password must contain at least one lowercase letter (`a`–`z`).
- upperCaseRequired ( boolean , required ): Whether the password must contain at least one uppercase letter (`A`–`Z`).
503:
The configuration service is unavailable.
-
-
Validity check used by the reset UI on page-load. The token is NOT consumed; a subsequent
POSTcan still successfully consume the same token. The response names the account in masked form, so the page MUST NOT take the address from its own URL. Returns400if thetokenquery parameter is missing or blank and410if the token is unknown, expired, already used, or was not issued for a password reset.Parameters:
Parameter Value Description Parameter Type Data Type token (empty) The reset token previously delivered to the user.
query string Responses:
200:
The token is valid and can be submitted.
Content-type: application/json-
RecoveryResetTokenValidation
{- ready ( boolean ): Always `true` when the response status is `200`. Confirms that the token is a live reset token; it is not consumed, so an actual reset can still proceed.
- email ( string ): The primary email address of the account the token resets, masked to its first character and domain. Absent when the user has no primary address; the reset page then shows a generic text.
400:
The `token` query parameter is missing or blank.
403:
Account recovery is switched off for the token's user; the token stays valid.
410:
The token is unknown, has expired, was already used, is not a reset token, or its user no longer exists or no longer holds the primary address the token was issued for.
500:
An unexpected error occurred while looking up the token.
503:
The token service is currently unavailable or the token lookup failed.
-
-
Performs an admin-initiated password change for the user bound to the supplied reset token and consumes the token once the change succeeded. A refused password or a failing password-change backend leaves the token valid for a retry. Side effects include invalidating cached user state, killing the user's existing sessions, and dispatching the reset-confirmation notification asynchronously across the configured channels.
Body:
Description:No description available
Content-type: application/json-
RecoveryResetRequest
{- token ( string , required ): The single-use reset token previously delivered to the user. Consumed atomically on a successful POST.
- password ( string , required ): The new password. Validated against the admin-flow password policy (`AdminPasswordChangeProperties`); a violation fails the request.
Responses:
200:
The password has been changed.
Content-type: application/json-
RecoveryResetResponse
{- success ( boolean ): Always `true` when the response status is `200`. Indicates the password has been persisted.
400:
A body that is not a JSON object, missing `token` or `password` in the request body, or the password was refused by the password policy or the password-change backend. A refusal carries a JSON body with the OX error `code` and a human-readable `error`; the token stays valid.
Content-type: application/json-
Unknown
{- code ( string ): The OX error code, e.g. `USR-0101`.
- error ( string ): The reason in English, suitable for display.
403:
Recovery is switched off for or not permitted to the bound user; the change was refused and the token stays valid.
410:
The token is unknown, has already been consumed, has expired, is being redeemed by a concurrent request, or its user no longer exists or no longer holds the primary address the token was issued for.
415:
The request has a `Content-Type` other than JSON.
500:
An unexpected error occurred during the change.
503:
A required service is unavailable, the token store failed, no password-change backend is enabled for the user, or the backend failed. The token stays valid.
-
-
POST /account-recovery/v1/verify-email Verifies a recovery email address using a time-limited token.
Consumes the single-use verification token that was dispatched to the user's recovery email address after it was stored. On success the address is marked as verified in the user record.
Returns
409if the recovery email address stored for the user has changed since the token was issued (stale token); the token is revoked then. Returns410if the token is unknown, has already been consumed, has expired, or was not issued for an email verification.Body:
Description:No description available
Content-type: application/json-
RecoveryVerifyEmailRequest
{- token ( string , required ): The single-use verification token previously delivered to the user's recovery email address. Consumed atomically on success.
Responses:
200:
The recovery email address has been verified.
Content-type: application/json-
RecoveryVerifyEmailResponse
{- success ( boolean ): Always `true` when the response status is `200`. Indicates the recovery email address has been marked as verified.
400:
A body that is not a JSON object, a missing or blank `token` in the request body, or a verification the backend rejected as invalid input.
409:
The recovery email address has changed since the token was issued; the token is revoked.
410:
The token is unknown, has already been consumed, has expired, or is not an email-verification token.
415:
The request has a `Content-Type` other than JSON.
503:
A required service is currently unavailable or the verification failed.
-
-
Legacy-shape endpoint. Peeks the supplied token (does not consume it) and, if it resolves to a known recovery request, redirects the browser to the deployment- configured reset UI carrying the same token in the query string. Returns
410when the token is unknown, expired or already consumed, so clients cannot tell these cases apart.New integrations should construct the reset URL from
GET /account-recovery/v1/reset?token=...directly and skip the redirect hop.Parameters:
Parameter Value Description Parameter Type Data Type token (empty) The reset token previously delivered to the user.
query string Responses:
303:
Redirect to the configured reset UI.
400:
The `token` query parameter is missing.
403:
Account recovery is switched off for the token's user; the token stays valid.
410:
The token is unknown, has expired, was already used, is not a reset token, or its user no longer exists or no longer holds the primary address the token was issued for.
500:
An unexpected error occurred while resolving the URL.
503:
A required service is currently unavailable, the token lookup failed, or no reset URL could be resolved for the token.
-
-
AccountRecoveryAdmin
Admin REST endpoints for managing stored recovery details and admin-initiated password resets. Basic Auth required.-
Resolves the supplied address to a single
(contextId, userId)via the highest-rankedRecoveryUserResolver, then returns the user's stored recovery details. Fields the user has not set are omitted from the response.Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type email (empty) The primary email address or an alias of the target user. A deployment's `RecoveryUserResolver` MAY resolve other identifiers.
path email x-component (empty) Free-form identifier of the calling component. Logged for traceability; does not affect behavior.
header string Responses:
200:
The recovery details.
Content-type: application/json-
RecoveryDetails - The user's stored recovery contact data. Each field is independently optional and absent from the response when not set on the user. Used both by the AJAX module and by the admin REST endpoints.
{- phone ( string ): Recovery phone number. Accepted in international format with a leading `+` (e.g. `+49 170 1234567`) and returned in E.164 (e.g. `+491701234567`).
- email ( string ): Recovery email address, a bare address with a dotted domain; display-name forms are rejected.
- pin ( string ): Recovery PIN, a shared secret a support agent can ask the user for. Absent when not set.
400:
Missing or empty `email` path segment, or the resolver rejected the input. A rejection carries its reason as plain text.
Content-type: text/plain-
Unknown
401:
Authentication failed.
403:
The authenticated caller is not permitted to read recovery details.
404:
No user matches the supplied email.
429:
Per-caller rate limit exceeded.
500:
An unexpected error occurred during resolution.
503:
A required service is currently unavailable.
-
-
Updates the recovery fields supplied in the JSON body. An omitted field leaves the stored value unchanged; a field that is empty, blank or
nullclears it; any other value sets it. The post-update state is returned.Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type email (empty) The primary email address or an alias of the target user. A deployment's `RecoveryUserResolver` MAY resolve other identifiers.
path email x-component (empty) Free-form identifier of the calling component. Logged for traceability; does not affect behavior.
header string Body:
Description:No description available
Content-type: application/json-
RecoveryAdminDetailsUpdate - Recovery fields to update. An omitted field leaves the stored value unchanged; an empty or blank string or `null` clears it; any other value sets it.
{- phone ( string ): New recovery phone number, in international format with a leading `+` or in national format of the region set by `com.openexchange.accountrecovery.phone.defaultRegion`. Stored in E.164.
- recoveryEmail ( string ): New recovery email address, a bare address with a dotted domain; display-name forms are rejected.
- pin ( string ): New recovery PIN, a shared secret a support agent can ask the user for. No whitespace, 1 to 64 characters, and not `EMPTY`.
Responses:
200:
The updated recovery details.
Content-type: application/json-
RecoveryDetails - The user's stored recovery contact data. Each field is independently optional and absent from the response when not set on the user. Used both by the AJAX module and by the admin REST endpoints.
{- phone ( string ): Recovery phone number. Accepted in international format with a leading `+` (e.g. `+49 170 1234567`) and returned in E.164 (e.g. `+491701234567`).
- email ( string ): Recovery email address, a bare address with a dotted domain; display-name forms are rejected.
- pin ( string ): Recovery PIN, a shared secret a support agent can ask the user for. Absent when not set.
400:
Missing or empty `email` path segment, a body that is not a JSON object, a supplied value that fails validation, or a `phone`, `recoveryEmail` or `pin` query parameter (values MUST travel in the JSON body). A validation failure or a query parameter carries its reason as plain text.
Content-type: text/plain-
Unknown
401:
Authentication failed.
403:
The authenticated caller is not permitted to change recovery details.
404:
No user matches the supplied email.
415:
The request has a `Content-Type` other than JSON.
429:
Per-caller rate limit exceeded.
500:
An unexpected error occurred during the update.
503:
A required service is currently unavailable.
-
-
Resolves the supplied address to a single
(contextId, userId)via the highest-rankedRecoveryUserResolverand changes that user's password through the password-change backend enabled for the user. When the body carries no or an emptypassworda fresh password is generated and returned in the response so the caller can deliver it out-of-band.Side effects mirror the public recovery reset: cached user state is invalidated and existing user sessions are killed.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type email (empty) The primary email address or an alias of the target user. A deployment's `RecoveryUserResolver` MAY resolve other identifiers.
path email x-component (empty) Free-form identifier of the calling component, logged for traceability.
header string Body:
Description:No description available
Content-type: application/json-
RecoveryAdminPasswordUpdate
{- password ( string ): The new password. When omitted or empty, a random password is generated server-side.
Responses:
200:
The password that was set. When the caller supplied a password explicitly this echoes the same value; otherwise it carries the freshly-generated password.
Content-type: application/json-
Unknown
{- password ( string ): The password that is now stored for the user.
400:
Missing or empty `email` path segment, a body that is not a JSON object, a `password` query parameter (the password MUST travel in the JSON body), or a password the password policy or the password-change backend refused. A refusal or a query parameter carries its reason as plain text.
Content-type: text/plain-
Unknown
401:
Authentication failed.
403:
The authenticated caller is not permitted to set or generate passwords.
404:
No user matches the supplied email.
415:
The request has a `Content-Type` other than JSON.
429:
Per-caller rate limit exceeded.
500:
An unexpected error occurred during the change.
503:
A required service is currently unavailable, or no password-change backend is enabled for the user.
-
-
Legacy path of
GET /admin/v1/account-recovery/details/email/{email}, with the same behavior. New integrations should use that path instead.Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type email (empty) The primary email address or an alias of the target user. A deployment's `RecoveryUserResolver` MAY resolve other identifiers.
path email x-component (empty) Free-form identifier of the calling component. Logged for traceability; does not affect behavior.
header string Responses:
200:
The recovery details.
Content-type: application/json-
RecoveryDetails - The user's stored recovery contact data. Each field is independently optional and absent from the response when not set on the user. Used both by the AJAX module and by the admin REST endpoints.
{- phone ( string ): Recovery phone number. Accepted in international format with a leading `+` (e.g. `+49 170 1234567`) and returned in E.164 (e.g. `+491701234567`).
- email ( string ): Recovery email address, a bare address with a dotted domain; display-name forms are rejected.
- pin ( string ): Recovery PIN, a shared secret a support agent can ask the user for. Absent when not set.
400:
Missing or empty `email` path segment, or the resolver rejected the input. A rejection carries its reason as plain text.
Content-type: text/plain-
Unknown
401:
Authentication failed.
403:
The authenticated caller is not permitted to read recovery details.
404:
No user matches the supplied email.
429:
Per-caller rate limit exceeded.
500:
An unexpected error occurred during resolution.
503:
A required service is currently unavailable.
-
-
Legacy variant of
PUT /admin/v1/account-recovery/details/email/{email}that takes the values as query parameters instead of a JSON body; a request body is ignored. An omitted parameter leaves the stored value unchanged; an empty or blank one clears it; any other value sets it. The post-update state is returned. New integrations should use theadmin/v1path, which keeps the values out of access logs.Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type email (empty) The primary email address or an alias of the target user. A deployment's `RecoveryUserResolver` MAY resolve other identifiers.
path email x-component (empty) Free-form identifier of the calling component. Logged for traceability; does not affect behavior.
header string phone (empty) New recovery phone number.
query string recoveryEmail (empty) New recovery email address, a bare address with a dotted domain; display-name forms are rejected.
query email pin (empty) New recovery PIN. No whitespace, 1 to 64 characters, and not `EMPTY`.
query string Responses:
200:
The updated recovery details.
Content-type: application/json-
RecoveryDetails - The user's stored recovery contact data. Each field is independently optional and absent from the response when not set on the user. Used both by the AJAX module and by the admin REST endpoints.
{- phone ( string ): Recovery phone number. Accepted in international format with a leading `+` (e.g. `+49 170 1234567`) and returned in E.164 (e.g. `+491701234567`).
- email ( string ): Recovery email address, a bare address with a dotted domain; display-name forms are rejected.
- pin ( string ): Recovery PIN, a shared secret a support agent can ask the user for. Absent when not set.
400:
Missing or empty `email` path segment, or a supplied value that fails validation. A validation failure carries its reason as plain text.
Content-type: text/plain-
Unknown
401:
Authentication failed.
403:
The authenticated caller is not permitted to change recovery details.
404:
No user matches the supplied email.
415:
The request has a `Content-Type` other than JSON.
429:
Per-caller rate limit exceeded.
500:
An unexpected error occurred during the update.
503:
A required service is currently unavailable.
-
-
Legacy variant of
PUT /admin/v1/account-recovery/password/email/{email}that takes the password as a query parameter instead of a JSON body; a request body is ignored. Without or with an emptypassworda fresh password is generated and returned. New integrations should use theadmin/v1path, which keeps the password out of access logs.Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type email (empty) The primary email address or an alias of the target user. A deployment's `RecoveryUserResolver` MAY resolve other identifiers.
path email password (empty) The new password. When omitted or empty, a random password is generated server-side.
query password x-component (empty) Free-form identifier of the calling component, logged for traceability.
header string Responses:
200:
The password that was set. When the caller supplied a password explicitly this echoes the same value; otherwise it carries the freshly-generated password.
Content-type: application/json-
Unknown
{- password ( string ): The password that is now stored for the user.
400:
Missing or empty `email` path segment, or a password the password policy or the password-change backend refused. A refusal carries its reason as plain text.
Content-type: text/plain-
Unknown
401:
Authentication failed.
403:
The authenticated caller is not permitted to set or generate passwords.
404:
No user matches the supplied email.
415:
The request has a `Content-Type` other than JSON.
429:
Per-caller rate limit exceeded.
500:
An unexpected error occurred during the change.
503:
A required service is currently unavailable, or no password-change backend is enabled for the user.
-
-
-
Admin
Interface for provisioning and other administrative operations.-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type global (empty) Close sessions cluster-wide. Default: true
query boolean Body:
Description:A JSON object containing an array of context ids.
Content-type: application/json-
CloseSessionsByContextBody
{- contextIds ( array[integer] , required ): Array of context IDs
Responses:
200:
A JSON object containing all identifiers of the successfully closed sessions.
Content-type: application/json-
CloseSessionsData
{- closed ( array[string] ): Array of the closed session identifiers
400:
Bad request, if the payload is missing or empty, the array of context IDs is missing or empty, or an element of the array is not an integer.
Content-type: application/problem+json-
CloseSessionsProblem - An RFC 7807 problem detail describing a rejected request.
{- title ( string ): The error message, e.g. "Missing request payload."
- status ( integer ): The HTTP status code
401:
Not authorized
403:
Forbidden
404:
Not found. If path is wrong. Response contains error message.
500:
Internal server error, for instance a failure of the session storage. The response has no body.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type global (empty) Close sessions cluster-wide. Default: true
query boolean Body:
Description:A JSON object containing an array of session ids.
Content-type: application/json-
CloseSessionsByIdBody
{- sessionIds ( array[string] , required ): Array of session IDs
Responses:
200:
A JSON object listing the given session identifiers. Every given identifier is listed, whether or not a session with it existed.
Content-type: application/json-
CloseSessionsData
{- closed ( array[string] ): Array of the closed session identifiers
400:
Bad request, if the payload is missing or empty, or the array of session IDs is missing or empty.
Content-type: application/problem+json-
CloseSessionsProblem - An RFC 7807 problem detail describing a rejected request.
{- title ( string ): The error message, e.g. "Missing request payload."
- status ( integer ): The HTTP status code
401:
Not authorized
403:
Forbidden
404:
Not found. If path is wrong. Response contains error message.
500:
Internal server error, for instance a failure of the session storage. The response has no body.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type global (empty) Close sessions cluster-wide. Default: true
query boolean Body:
Description:A JSON object containing an array of user and context id tuples.
Content-type: application/json-
CloseSessionByUserBody
{- users ( array[object] , required ): Array of context/user id tuples
Responses:
200:
A JSON object containing the identifiers of the closed sessions.
Content-type: application/json-
CloseSessionsData
{- closed ( array[string] ): Array of the closed session identifiers
400:
Bad request, if the payload is missing or empty, the array of users is missing or empty, or an element of the array is not a JSON object with integer `contextId` and `userId`.
Content-type: application/problem+json-
CloseSessionsProblem - An RFC 7807 problem detail describing a rejected request.
{- title ( string ): The error message, e.g. "Missing request payload."
- status ( integer ): The HTTP status code
401:
Not authorized
403:
Forbidden
404:
Not found. If path is wrong. Response contains error message.
500:
Internal server error, for instance a failure of the session storage. The response has no body.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Body:
Description:Information that are needed to pre-assemble the contexts.
Content-type: application/json-
Unknown
{- schema ( string , required ): The name of the database schema to pre-assemble the contexts in.
- number ( integer , required ): The number of contexts to pre-assemble.
- filestore_id ( integer ): The identifier of the filestore to use for the contexts.
Responses:
200:
An array of ids for the pre-assembled contexts.
Content-type: application/json-
PreAssemblyResponse
{- contextIds ( array[integer] ): Array of context IDs that got pre-assembled
- errors ( array[object] ): Optional array of errors that have occurred
400:
Bad request. Missing or invalid information sent, e.g. a number outside 1 to 500, an unknown schema or filestore, or not enough space in the filestore. Response contains error message.
401:
Not authorized
404:
Not found. If path is wrong. Response contains error message.
500:
Internal server error that might have multiple reasons, for instance no configured global database. Response contains error message.
-
-
Security:
This security scheme must be used:Name Scopes contextAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-id (empty) The context the user is in
path integer user-id (empty) The ID representing the user
path integer Responses:
200:
An array of multifactor devices.
Content-type: application/json-
MultifactorDeviceData
{- id ( string ): The ID of the device
- name ( string ): The name of the device
- providerName ( string ): The name of the device's provider
- enabled ( boolean ): true, if the device is enabled, false if disabled
- backup ( boolean ): true, if the device is a backup device, false otherwise
401:
Not authorized
404:
Not found. If path is wrong, or if the context or user does not exist.
500:
Internal server error that might have multiple reasons. Response contains error message.
503:
Service unavailable while update tasks for the context's schema are running or pending.
-
-
Security:
This security scheme must be used:Name Scopes contextAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-id (empty) The context the user is in
path integer user-id (empty) The ID representing the user
path integer Responses:
200:
All devices deleted
401:
Not authorized
404:
Not found. If path is wrong, or if the context or user does not exist.
500:
Internal server error that might have multiple reasons. Response contains error message.
503:
Service unavailable while update tasks for the context's schema are running or pending.
-
Security:
This security scheme must be used:Name Scopes contextAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-id (empty) The context the user is in
path integer user-id (empty) The ID representing the user
path integer provider-name (empty) The name of the provider to delete the device for
path string device-id (empty) The ID of the device to delete
path string Responses:
200:
If the device was deleted
401:
Not authorized
404:
Not found. If path is wrong, if the context or user does not exist, or if the given provider or device was not found or the device could not be removed.
500:
Internal server error that might have multiple reasons. Response contains error message.
503:
Service unavailable while update tasks for the context's schema are running or pending.
-
Security:
This security scheme must be used:Name Scopes contextAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-id (empty) The context the user is in
path integer user-id (empty) The ID representing the user
path integer Responses:
200:
A single login information object.
Content-type: application/json-
LoginInformation
{- enforceMfa ( boolean ): boolean if mfa is enforced or not
- loginCounter ( integer ): Counter for succesfull logins of the user
- firstLogin ( string ): Timestamp of the user's first login in the format 'yyyy-mm-dd hh:mm:ss.f' (JDBC timestamp escape format), or null if none is recorded.
401:
Not authorized
404:
Not found. If path is wrong, if the context or user does not exist, or if no multifactor enforcement information is stored for the user.
500:
Internal server error that might have multiple reasons. Response contains error message.
503:
Service unavailable while update tasks for the context's schema are running or pending.
-
-
Security:
This security scheme must be used:Name Scopes contextAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-id (empty) The context the user is in
path integer user-id (empty) The ID representing the user
path integer Responses:
200:
Multifactor Enforcement informations are reset
401:
Not authorized
404:
Not found. If path is wrong, or if the context or user does not exist.
500:
Internal server error that might have multiple reasons. Response contains error message.
503:
Service unavailable while update tasks for the context's schema are running or pending.
-
Security:
This security scheme must be used:Name Scopes contextAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-id (empty) The context the user is in
path integer user-id (empty) The ID representing the user
path integer limit (empty) Limits the output to the given number of entries. Missing or a value less than 1 returns all entries.
query integer sort (empty) Comma separated list of fields to sort the output for. Field names that begin with "-" will be sorted descending else the fields get sorted ascending. Valid fields are 'date' and 'client_id'. Defaults to descending by 'date'.
query string Responses:
200:
An array of password change entries.
Content-type: application/json-
PasswordChangeHistoryEntry
{- date ( integer , required ): Timestamp (milliseconds since 1970-01-01 00:00:00.000) of the change.
- client_id ( string , required ): Identifier of the client that was used to change the password. For example 'open-xchange-appsuite', 'provisioning-api'.
- client_address ( string ): IP address of the client that was used to change the password. Only contained if it could be determined during the change.
- client_name ( string ): Human-readable name of the client that was used to change the password. Only contained if the client ID has a known human-readable representation. If not set the client should fall-back to 'client_id'.
400:
Bad request, if the sort parameter contains an unknown field.
401:
Not authorized. Credentials are checked before anything else, so this is also the response for a context that does not exist.
404:
Not found. If path is wrong, if the user does not exist, or if the password change history is disabled for the user or the user is a guest.
500:
Internal server error that might have multiple reasons, for instance no configured global database.
503:
Service unavailable while update tasks for the context's schema are running or pending.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer logger (empty) The name of the logger
path string Responses:
200:
The log level of the specified logger
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
401:
Not authorized
404:
In case the context or the logger doesn't exist.
500:
Internal server error that might have multiple reasons.
-
-
Only loggers whose name starts with an entry of the logback property
com.openexchange.logging.filter.loggerWhitelistcan be set.Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer logger (empty) The name of the logger
path string Body:
Description:The log level for the given logger as JSON string
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
Responses:
200:
The log level of a specified logger
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
400:
In case the body is not a JSON string or not a valid log level.
401:
Not authorized
404:
In case the context doesn't exist, or the logger is not allowed by the logger whitelist.
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer logger (empty) The name of the logger
path string Responses:
200:
The logger was successfully removed.
401:
Not authorized
404:
In case the context doesn't exist or no logger with the given name exists for the given context
500:
Internal server error that might have multiple reasons.
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer Responses:
200:
An array of loggers. Empty if no logger is configured for the given context.
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
401:
Not authorized
404:
In case the context doesn't exist.
500:
Internal server error that might have multiple reasons.
-
-
Replaces all loggers of the given context. Only loggers whose name starts with an entry of the logback property
com.openexchange.logging.filter.loggerWhitelistare set; other loggers are ignored.Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer Body:
Description:The loggers
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
Responses:
200:
The changed loggers of this context
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
400:
In case the body is missing or not a JSON array, or an entry is not an object with a name and a valid log level.
401:
Not authorized
404:
In case the context doesn't exist.
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer Responses:
200:
The logger was successfully removed.
401:
Not authorized
404:
In case the context doesn't exist.
500:
Internal server error that might have multiple reasons.
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer userId (empty) The user id
path integer logger (empty) The name of the logger
path string Responses:
200:
The log level of a specified logger
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
401:
Not authorized
404:
In case no logger with the given name exists or the context or the user doesn't exist
500:
Internal server error that might have multiple reasons.
-
-
Only loggers whose name starts with an entry of the logback property
com.openexchange.logging.filter.loggerWhitelistcan be set.Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer userId (empty) The user id
path integer logger (empty) The name of the logger
path string Body:
Description:The log level for the given logger as JSON string
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
Responses:
200:
The log level of a specified logger
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
400:
In case the body is not a JSON string or not a valid log level.
401:
Not authorized
404:
In case the context or the user doesn't exist, or the logger is not allowed by the logger whitelist.
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer userId (empty) The user id
path integer logger (empty) The name of the logger
path string Responses:
200:
The logger was successfully removed.
401:
Not authorized
404:
In case the context, user or logger doesn't exist
500:
Internal server error that might have multiple reasons.
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer userId (empty) The user id
path integer Responses:
200:
An array of existing loggers. Empty if no logger is configured for the given user.
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
401:
Not authorized
404:
In case the context or user doesn't exist.
500:
Internal server error that might have multiple reasons.
-
-
Replaces all loggers of the given user. Only loggers whose name starts with an entry of the logback property
com.openexchange.logging.filter.loggerWhitelistare set; other loggers are ignored.Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer userId (empty) The user id
path integer Body:
Description:The loggers
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
Responses:
200:
The set loggers
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
400:
In case the body is missing or not a JSON array, or an entry is not an object with a name and a valid log level.
401:
Not authorized
404:
If the context or user doesn't exist
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer userId (empty) The user id
path integer Responses:
200:
The loggers were successfully removed.
401:
Not authorized
404:
In case the context or user doesn't exist
500:
Internal server error that might have multiple reasons.
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer userId (empty) The user id
path integer Responses:
200:
Successful operation
Content-type: application/json-
Unknown - true, if the stacktrace is included for the given user, false otherwise
401:
Not authorized
404:
In case the context or the user doesn't exist
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer userId (empty) The user id
path integer Body:
Description:Updates if a stacktrace should be included in a HTTP JSON error response to the given user.
Content-type: application/json-
Unknown - true, if the stacktrace should be included for the given user, false otherwise
Responses:
200:
Successful operation
400:
In case the body is neither `true` nor `false`.
401:
Not authorized
404:
In case the context or the user doesn't exist
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer Responses:
200:
An array of users and their loggers.
Content-type: application/json-
UsersLoggers
{- userId ( string ): The user id
- loggers ( array[Logger] ): All loggers related to the user
-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
401:
Not authorized
404:
In case the context doesn't exist.
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Responses:
200:
An array of contexts and their loggers.
Content-type: application/json-
ContextLoggers
{- contextId ( string ): The context id
- loggers ( array[Logger] ): All loggers related to the context
-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
401:
Not authorized
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type sessionId (empty) The session id
path string logger (empty) The name of the logger
path string Responses:
200:
The log level of a specified logger
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
400:
In case the session id is empty.
401:
Not authorized
404:
In case the no logger with the given name exists for the given session
500:
Internal server error that might have multiple reasons.
-
-
Only loggers whose name starts with an entry of the logback property
com.openexchange.logging.filter.loggerWhitelistcan be set.Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type sessionId (empty) The session id
path string logger (empty) The name of the logger
path string Body:
Description:The log level for the given logger as JSON string
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
Responses:
200:
The log level of the set logger
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
400:
In case the session id is empty, or the body is not a JSON string or not a valid log level.
401:
Not authorized
404:
In case the session doesn't exist, or the logger is not allowed by the logger whitelist.
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type sessionId (empty) The session id
path string logger (empty) The name of the logger
path string Responses:
200:
The logger was successfully removed.
400:
In case the session id is empty.
401:
Not authorized
404:
In case the no logger with the given name exists for the given session
500:
Internal server error that might have multiple reasons.
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type sessionId (empty) The session id
path string Responses:
200:
An array of loggers. Empty if no logger is configured for the given session id.
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
400:
In case the session id is empty.
401:
Not authorized
500:
Internal server error that might have multiple reasons.
-
-
Replaces all loggers of the given session. Only loggers whose name starts with an entry of the logback property
com.openexchange.logging.filter.loggerWhitelistare set; other loggers are ignored.Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type sessionId (empty) The session id
path string Body:
Description:The loggers to set
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
Responses:
200:
The set loggers
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
400:
In case the session id is empty, the body is missing or not a JSON array, or an entry is not an object with a name and a valid log level.
401:
Not authorized
404:
In case the session doesn't exist.
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type sessionId (empty) The session id
path string Responses:
200:
All loggers were successfully removed.
400:
In case the session id is empty.
401:
Not authorized
500:
Internal server error that might have multiple reasons.
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Responses:
200:
An array of sessions and their loggers.
Content-type: application/json-
SessionLoggers
{- sessionId ( string ): The session id
- loggers ( array[Logger] ): All loggers related to the session
-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
401:
Not authorized
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Responses:
200:
An array of suppressed exception categories.
Content-type: application/json-
ExceptionCategory - The exception category
{
401:
Not authorized
500:
Internal server error that might have multiple reasons.
-
-
Replaces the suppressed exception categories. Unknown category names are ignored.
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Body:
Description:The exception categories to suppress
Content-type: application/json-
ExceptionCategory - The exception category
{
Responses:
200:
The suppress exception categories
Content-type: application/json-
ExceptionCategory - The exception category
{
400:
In case the body is not a JSON array of strings.
401:
Not authorized
500:
Internal server error that might have multiple reasons.
-
-
DELETE /admin/v1/logconf/suppressed/exception-categories Removes all suppressed exception categories
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Responses:
200:
The categories were successfully removed. Contains the remaining suppressed exception categories, i.e. an empty array.
Content-type: application/json-
ExceptionCategory - The exception category
{
401:
Not authorized
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type logger (empty) The name of the logger
path string Responses:
200:
The log level of a specified logger, or `null` if no level is set explicitly
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
401:
Not authorized
404:
In case no logger with the given name exists
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type logger (empty) The name of the logger
path string Body:
Description:The log level to set as JSON string. `null` removes the explicitly set level, so the logger inherits the level of its parent.
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
Responses:
200:
The log level
Content-type: application/json-
LogLevel - The log level. `null` means that no level is set explicitly, so a system logger inherits the level of its parent.
400:
In case the body is not a JSON string or not a valid log level.
401:
Not authorized
404:
In case no logger with the given name exists
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Responses:
200:
An array of existing loggers. The level of a logger without an explicitly set level is `null`.
Content-type: application/json-
Logger
{- name ( string , required ): The name of the logger
-
level
(
LogLevel
,
required
, possibleValues:
OFFERRORWARNINFODEBUGTRACEALL
401:
Not authorized
500:
Internal server error that might have multiple reasons.
-
-
Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
path integer userId (empty) The user id
path integer client (empty) The identifier of the client to filter by. If not set or `*`, the timestamps of all clients are returned.
query string Responses:
200:
The last login timestamps of the user. The array is empty if the user has no login with the given client.
Content-type: application/json-
LastLoginTimestamps
{- timestamps ( array[LastLoginTimestamp] ): The last login timestamps per client
-
LastLoginTimestamp
{- client ( string ): The name of the client
- timestamp ( integer ): The last login time in (in milliseconds since 1970-01-01 00:00:00 UTC)
401:
Not authorized
403:
Forbidden, if master authentication is not configured.
404:
Not found, if path is wrong (unknown context or user). The response contains a plain-text error message.
500:
Internal server error that might have multiple reasons. The response contains a plain-text error message.
-
-
Counts the users whose last login with a client lies strictly between
startDateandendDate.Security:
This security scheme must be used:Name Scopes masterAdminAuth
Parameters:
Parameter Value Description Parameter Type Data Type startDate (empty) The start of the time span (exclusive) in milliseconds since 1970-01-01 00:00:00 UTC
query long endDate (empty) The end of the time span (exclusive) in milliseconds since 1970-01-01 00:00:00 UTC
query long aggregate (empty) If set to `true`, `sum` counts each user only once, even if the user logged in with several clients. The per-client counts are not affected.
query boolean regex (empty) A MySQL regular expression that selects the client identifiers to count. It is matched against `client:(
)`, unanchored. If not set, all clients are counted. query string Responses:
200:
The login counts for the given time span.
Content-type: application/json-
LoginCounts
{- sum ( integer ): The total number of counted logins over all clients. With `aggregate=true`, each user is counted once.
- clients ( array[LoginCount] ): Login counts per clients
-
LoginCount
{- client ( string ): The name of the client
- count ( integer ): The login count of the client
400:
Bad request: `startDate` or `endDate` is missing, or the database rejected the `regex`. The response contains a plain-text error message.
401:
Not authorized
403:
Forbidden, if master authentication is not configured.
500:
Internal server error that might have multiple reasons, for instance a database failure. The response contains a JSON error object.
-
-
-
Advertisement
The advertisement module-
Sets a configuration for this single user, e.g. to preview a configuration. It takes precedence over the configuration of the user's package until it is removed.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type name (empty) The user's login name
query string contextId (empty) The context id
query integer Body:
Description:The advertisement configuration
Content-type: application/json-
Unknown - Any JSON value. It is stored as given and handed to the client as the advertisement configuration.
Responses:
200:
An existing configuration was replaced.
201:
The configuration was created.
400:
The request body is not valid JSON.
401:
Missing or wrong Basic Auth credentials.
403:
Basic Auth credentials for the REST API are not configured on the server.
500:
The configuration could not be changed, e.g. because the context or user does not exist or the database failed. The response has no body; the status line's reason phrase carries the error message.
-
-
The user gets the configuration of their package again.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type name (empty) The user's login name
query string contextId (empty) The context id
query integer Responses:
200:
There was no configuration to remove.
204:
The configuration was removed.
401:
Missing or wrong Basic Auth credentials.
403:
Basic Auth credentials for the REST API are not configured on the server.
500:
The configuration could not be changed, e.g. because the context or user does not exist or the database failed. The response has no body; the status line's reason phrase carries the error message.
-
PUT /advertisement/v1/config/package Sets an advertisement configuration for a package of a reseller
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type reseller (empty) The reseller name. Defaults to `default`.
query string package (empty) The package name. Defaults to `default`.
query string Body:
Description:The advertisement configuration
Content-type: application/json-
Unknown - Any JSON value. It is stored as given and handed to the client as the advertisement configuration.
Responses:
200:
An existing configuration was replaced.
201:
The configuration was created.
400:
The request body is not valid JSON.
401:
Missing or wrong Basic Auth credentials.
403:
Basic Auth credentials for the REST API are not configured on the server.
500:
The configuration could not be changed, e.g. because the database failed. The response has no body; the status line's reason phrase carries the error message.
-
-
DELETE /advertisement/v1/config/package Remove the current configuration for a package of a reseller
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type reseller (empty) The reseller name. Defaults to `default`.
query string package (empty) The package name. Defaults to `default`.
query string Responses:
200:
There was no configuration to remove.
204:
The configuration was removed.
401:
Missing or wrong Basic Auth credentials.
403:
Basic Auth credentials for the REST API are not configured on the server.
500:
The configuration could not be changed, e.g. because the database failed. The response has no body; the status line's reason phrase carries the error message.
-
Sets, replaces or removes the configuration of each listed package of the reseller. Packages not listed stay unchanged.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type reseller (empty) The reseller name. Defaults to `default`.
query string Body:
Description:The configurations per package. Each package is set, replaced or, with a `null` config, removed. When a package occurs more than once, the last entry wins.
Content-type: application/json-
AdvertisementPackageConfig
{- package ( string , required ): The package name. An empty name addresses the package `default`.
- config ( any , required ): The advertisement configuration for the package, any JSON value. It is stored as given and handed to the clients of users in that package. `null` removes the package's configuration.
Responses:
200:
One result per distinct package of the request, in request order. A failure for one package does not stop the others.
Content-type: application/json-
AdvertisementConfigResult
{-
status
(
string
, possibleValues:
CREATEDUPDATEDDELETEDIGNOREDERROR
- error ( string ): The error message. Only present when status is `ERROR`.
-
status
(
string
, possibleValues:
400:
The request body is not valid JSON, not an array, or contains an entry that is no object or lacks `package` or `config`. The response has no body.
401:
Missing or wrong Basic Auth credentials.
403:
Basic Auth credentials for the REST API are not configured on the server.
500:
The advertisement service is unavailable. The response has no body; the status line's reason phrase carries the error message.
-
-
Sets a configuration for this single user, e.g. to preview a configuration. It takes precedence over the configuration of the user's package until it is removed.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
query integer userId (empty) The user id
query integer Body:
Description:The advertisement configuration
Content-type: application/json-
Unknown - Any JSON value. It is stored as given and handed to the client as the advertisement configuration.
Responses:
200:
An existing configuration was replaced.
201:
The configuration was created.
400:
The request body is not valid JSON.
401:
Missing or wrong Basic Auth credentials.
403:
Basic Auth credentials for the REST API are not configured on the server.
500:
The configuration could not be changed, e.g. because the context or user does not exist or the database failed. The response has no body; the status line's reason phrase carries the error message.
-
-
The user gets the configuration of their package again.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id
query integer userId (empty) The user id
query integer Responses:
200:
There was no configuration to remove.
204:
The configuration was removed.
401:
Missing or wrong Basic Auth credentials.
403:
Basic Auth credentials for the REST API are not configured on the server.
500:
The configuration could not be changed, e.g. because the context or user does not exist or the database failed. The response has no body; the status line's reason phrase carries the error message.
-
-
Authentication
Endpoints used by external authentication components, e.g. a SAML or OIDC front-end, that own the user's session: resolving user identities, performing logins, multifactor authentication, triggering login handlers and driving the OpenID Connect token and logout lifecycle.-
Performs the login denoted by
loginActionfor the client request that the external authentication component received, and reports the outcome so that the component can establish its own session. The client request is forwarded in the body; the login action reads its parameters, headers and cookies from there just like the classic login servlet reads them from the HTTP request.Whatever the login action decides, a call that could be answered is answered with status
200, carrying one of three shapes:ExternalAuthLoginSuccessResponse- the login succeeded, the identity to establish the session for is enclosedExternalAuthLoginRedirectResponse- the client is to be sent toredirectUrlinstead, e.g. to the login page of a password-protected shareExternalAuthLoginChallengeResponse- the client is to be asked for credentials with the enclosed challenge
400or403carrying the error to relay to the client; any other status is to be treated as a server error.Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type loginAction (empty) The login action to perform.
/authentication/v1/login/methodslists the actions available on the node. The standard ones are:login- Authenticates the user withloginandpassword(plus optionalclient,version,authId,language,staySignedIn, ...), like the HTTP APIlogin?action=login.formlogin- Likelogin, but strict like the HTTP APIlogin?action=formlogin:clientandversionare required, andauthIdunless form login without it is configured. Reports the UI location inredirectUrl, honoring theuiWebPathparameter.inFlight- Authenticates the user from theBasiccredentials in the forwardedAuthorizationheader with the*davclient, for requests served without an interactive login, e.g. by WebDAV/CalDAV/CardDAV clients.shareResolve- Resolves the share link given assharePath(the share token, optionally followed by the target path) to its guest. A password-protected share is either authenticated from forwardedBasiccredentials, answered with a challenge (share served in flight) or with a redirect to the share login page. Unknown shares and failures are answered with a redirect to a message page.anonymous- Logs in the guest of a password-protected anonymous share link with the parametersshare(token),target(target path) andpassword.guest- Logs in the named guest of a share with the parametersshare,targetand, for a password-protected guest,password.resetGuestPassword- The password reset flow of a named guest with parametershare: sends the confirmation mail, asks for the new password onceconfirmis given, and sets it and logs the guest in onceconfirmandpasswordare given. The intermediate steps are answered with a redirect.oidcLogin- Only available if OpenID Connect is enabled: redeems the session reservation tokensessionTokenhanded out at the end of the OpenID Connect flow;uriFragmentis used as deep link. Reports the ID token inmeta.idToken.
token?action=acquireToken,login?action=redeemToken,login?action=tokenLoginandlogin?action=tokens) is no login action. The authentication service serves it itself.query string Body:
Description:No description available
Content-type: application/json-
ExternalAuthLoginBody - The client request the external authentication component received, forwarded to the middleware. The selected login action reads everything it needs from here - most notably from
parameters- just like the classic login servlet reads it from the HTTP request.Unknown fields are rejected. No field is required as such; what a login action needs depends on the action, see
loginAction.
{- server ( ExternalAuthLoginServer ): The server the client addressed with its original request
- remoteAddress ( string ): The IP address of the client
- body ( string ): The raw body of the original request. Currently not evaluated by any login action.
- headers ( headers ): The headers of the original request, keyed by header name, each with the list of its values. Header names are matched case-insensitively.
- parameters ( parameters ): The request parameters of the original request (query and form parameters), keyed by parameter name, each with the list of its values. Where a single value is read, the first one is taken.
- cookies ( array[ExternalAuthLoginCookie] ): The cookies of the original request. If a cookie name occurs more than once, its first value is used.
-
ExternalAuthLoginServer - The server the client addressed with its original request
{-
host
(
string
):
The host name the client addressed, e.g.
appsuite.example.com -
port
(
integer
):
The port the client addressed, e.g.
443 -
scheme
(
string
):
The scheme the client used. The request is considered secure if it is
https(compared case-insensitively). - path ( path ): The path and query of the original request
-
host
(
string
):
The host name the client addressed, e.g.
-
path - The path and query of the original request
{- pathInfo ( string ): The path info of the original request
- queryString ( string ): The query string of the original request
-
ExternalAuthLoginCookie - A cookie the client sent along with its original request. Only
nameandvalueare evaluated; the other attributes are accepted but ignored.
{- name ( string ): The cookie name
- value ( string ): The cookie value
- domain ( string ): The cookie domain (ignored)
- path ( string ): The cookie path (ignored)
- secure ( boolean ): The secure flag (ignored)
- httpOnly ( boolean ): The HttpOnly flag (ignored)
- sameSite ( string ): The SameSite attribute (ignored)
- expires ( string ): The expiration date in ISO 8601 format (ignored)
Responses:
200:
The outcome of the login, one of
ExternalAuthLoginSuccessResponse,ExternalAuthLoginRedirectResponseorExternalAuthLoginChallengeResponseContent-type: application/json-
Unknown Composed Schema
ONEOF: ExternalAuthLoginSuccessResponse ExternalAuthLoginRedirectResponse ExternalAuthLoginChallengeResponse -
ExternalAuthLoginSuccessResponse - The outcome of a successful login: the identity that has been authenticated, for which the external authentication component establishes its session.
{-
multifactor
(
boolean
):
trueif the user still has to pass a second authentication factor, see/authentication/v1/multifactor. Omitted if no second factor is required. -
restricted
(
boolean
):
trueif the session is restricted, e.g. because the user logged in with an application-specific password whose granted scopes are listed inscopes. Omitted for an unrestricted session. -
guest
(
boolean
):
trueif the authenticated user is a guest of a share rather than a user with an account of its own, e.g. so that the external authentication component grants it nothing that outlives its visit. Omitted for any other user. -
scopes
(
array[string]
,
required
):
The scopes granted to the session. If the session carries no restricted scopes, this is the single scope
*(full access). - userId ( string , required ): The identifier of the authenticated user
- cid ( string , required ): The identifier of the context the authenticated user belongs to
-
schema
(
integer
,
required
):
The numeric suffix of the name of the database schema the user's context lives in, e.g.
7foroxdatabase_7, or0if the schema name carries no numeric suffix -
user
(
string
):
The login name of the authenticated user. For a share guest, this is the guest's e-mail address, or
guestfor an anonymous guest. - meta ( meta ): Additional information about the user
- redirectUrl ( string ): Where the client is to be sent after the login, if the login action determines a location
- share ( share ): The share target the login addresses. Only present for the share-related login actions.
-
multifactor
(
boolean
):
-
meta - Additional information about the user
{-
prefLanguage
(
string
):
The user's preferred language, e.g.
en_US -
idToken
(
string
):
The OpenID Connect ID token of the login, only set by the
oidcLoginaction
-
prefLanguage
(
string
):
The user's preferred language, e.g.
-
share - The share target the login addresses. Only present for the share-related login actions.
{-
username
(
string
):
The login name of the guest, same as
user -
module
(
string
):
The name of the module of the share target, e.g.
infostore - folder ( string ): The folder identifier of the share target
- item ( string ): The item identifier of the share target, if the share addresses a single item
-
inFlight
(
boolean
):
Only set by the
shareResolveaction:trueif the share is served within the request that asks for it (e.g. by a WebDAV client), so that no session is to be handed to the client;falseif a session is to be handed over.
-
username
(
string
):
The login name of the guest, same as
-
ExternalAuthLoginRedirectResponse - The login did not establish a session, but the client is to be sent to the given location, e.g. to the login page of a password-protected share or to a page displaying a message.
{- redirectUrl ( string , required ): Where the client is to be sent
-
ExternalAuthLoginChallengeResponse - The login needs credentials the request did not carry. The challenge is to be relayed to the client, e.g. as a
WWW-Authenticateheader of a401response.
{- challenge ( challenge , required ): No description available
-
challenge
{-
scheme
(
string
):
The authentication scheme to ask for, e.g.
Basic -
realm
(
string
):
The protection space, e.g.
Share/Guest/1/7
-
scheme
(
string
):
The authentication scheme to ask for, e.g.
400:
In case
loginActionis missing (MISSING_PARAMETER) or unknown (INVALID_PARAMETER_VALUE), the request body is missing,null, cannot be parsed or carries unknown fields (INVALID_JSON_REQUEST_BODY), or the login attempt is rejected because of the user's input, e.g. invalid credentials or a missing parameter. The body carries the error to relay to the client. A rejected attempt the login action gives no reason for is answered without a body.Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case the login attempt is rejected because permission is denied, e.g. for a deactivated user or context
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case of internal server error that might have multiple reasons. The body carries the error if the login action reported one.
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: Log a user in with login and passwordPOST http://localhost:8009/authentication/v1/login?loginAction=login Content-Type: application/json {"server":{"host":"appsuite.example.com","port":443,"scheme":"https","path":{"pathInfo":"/appsuite/api/login","queryString":"action=login"}},"remoteAddress":"192.0.2.10","headers":{"user-agent":[{"name":"user-agent","value":"Mozilla/5.0"}]},"parameters":{"login":[{"name":"login","value":"john.doe@example.com"}],"password":[{"name":"password","value":"secret"}],"client":[{"name":"client","value":"open-xchange-appsuite"}]},"cookies":[]}Example: Resolve a share linkPOST http://localhost:8009/authentication/v1/login?loginAction=shareResolve Content-Type: application/json {"server":{"host":"appsuite.example.com","port":443,"scheme":"https","path":{"pathInfo":"/appsuite/api/share/1a2b3c4d/1/8/MTIz","queryString":""}},"remoteAddress":"192.0.2.10","headers":{},"parameters":{"sharePath":[{"name":"sharePath","value":"1a2b3c4d/1/8/MTIz"}]},"cookies":[]} -
Runs the middleware's login handlers for a user that has just been authenticated by the external authentication component. As the session is owned by that component, the middleware never performs a regular login that would run them, so the component calls this endpoint alongside the request that resolves the token.
The handlers run detached from the call: the response is returned as soon as the user has been resolved, while the handlers keep running. Handlers that must not run asynchronously (non-transient or blocking ones) are left out.
Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthTriggerLoginHandlersBody - The user the login handlers shall be triggered for, i.e. what the external authentication component has just resolved the access token to. Unknown fields are rejected.
{- contextId ( integer , required ): The identifier of the user's context, must be positive
- userId ( integer , required ): The user identifier, must be positive
- token ( string , required ): The OAuth access token the identity has been resolved from. The handlers run with a session carrying it, so that they can authenticate against the user's backends on the user's behalf (e.g. the mail server).
-
client
(
string
):
The client identifier to report to the login handlers, e.g.
open-xchange-appsuite - userAgent ( string ): The user agent to report to the login handlers
- remoteAddress ( string ): The IP address the client is coming from
Responses:
202:
The login handlers have been triggered
400:
In case the request body is missing,
null, cannot be parsed or carries unknown fields (INVALID_JSON_REQUEST_BODY), or does not denote a positivecontextId, a positiveuserIdand atoken(MISSING_PARAMETER), or another error of categoryUSER_INPUToccursContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case of an error of category
PERMISSION_DENIEDContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case of internal server error that might have multiple reasons, e.g. the user or context cannot be resolved
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: Trigger the login handlersPOST http://localhost:8009/authentication/v1/login-handlers Content-Type: application/json {"contextId":1,"userId":3,"token":"eyJhbGciOi...","client":"open-xchange-appsuite","userAgent":"Mozilla/5.0","remoteAddress":"192.0.2.10"} -
-
Lists the login actions available on this node, i.e. the values accepted as
loginActionby/authentication/v1/login, sorted alphabetically.Security:
This security scheme must be used:Name Scopes basicAuth
Responses:
200:
The names of the available login actions
Content-type: application/json
401:
Not authorized
Examples:
Example: List the available login actionsGET http://localhost:8009/authentication/v1/login/methods ["anonymous","formlogin","guest","inFlight","login","resetGuestPassword","shareResolve"] -
Verifies the
answerto the challenge of the device denoted byproviderNameanddeviceIdof the user denoted byuserIdandcontextId. Lockout handling and listener notifications apply just like for the HTTP API multifactor actions.Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthMultifactorBody - The user and, depending on the action, the device a multifactor request refers to. There is no session, so the user is identified solely by
userIdandcontextId. Unknown fields are ignored.
{-
userId
(
string
,
required
):
The user identifier as a numeric string, e.g.
"3" -
contextId
(
string
,
required
):
The context identifier as a numeric string, e.g.
"1" -
providerName
(
string
):
The name of the multifactor provider the device belongs to, e.g.
TOTP. Required forstartAuthenticationandfinishAuthentication. -
deviceId
(
string
):
The identifier of the device to authenticate with. Required for
startAuthenticationandfinishAuthentication. -
answer
(
answer
):
The provider-specific answer to the challenge, passed to the provider verbatim. Only evaluated by
finishAuthentication; its content is the same as for the corresponding HTTP API multifactor action, e.g.{"secret_code":"123456"}for TOTP. - clientInfo ( clientInfo ): Information about the client that initiated the login. Unknown fields are ignored.
-
userId
(
string
,
required
):
The user identifier as a numeric string, e.g.
-
clientInfo - Information about the client that initiated the login. Unknown fields are ignored.
{- userAgent ( string ): The user agent of the client (currently not evaluated)
- ip ( string ): The IP address of the client (currently not evaluated)
- host ( string ): The user-facing host the login is performed against. Required by host-aware providers like WebAuthn/U2F to derive the relying party's origin.
Responses:
200:
The authentication succeeded; the body is an empty JSON object
Content-type: application/json-
Unknown
{
400:
In case the
actionparameter is missing (MISSING_PARAMETER) or unknown (INVALID_PARAMETER_VALUE), the request body is missing,nullor cannot be parsed (INVALID_JSON_REQUEST_BODY),userIdorcontextIdis missing or not numeric (MFA-0013), the provider is unknown (MFA-0006), a provider misses a parameter of the answer (MFA-0013), or another error of categoryUSER_INPUToccurs, e.g. a missingproviderNameordeviceId, an unknown device or a wrong answerContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case permission is denied, e.g. an invalid authentication factor
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case of internal server error that might have multiple reasons, e.g. an unknown user
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: Answer the challenge of a TOTP devicePOST http://localhost:8009/authentication/v1/multifactor?action=finishAuthentication Content-Type: application/json {"userId":"3","contextId":"1","providerName":"TOTP","deviceId":"2f0c8e5a","answer":{"secret_code":"123456"}} -
-
Lists the enabled multifactor devices and the available multifactor providers of the user denoted by
userIdandcontextId, for a login at which no session exists yet. OnlyuserId,contextIdandclientInfoare evaluated.Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthMultifactorBody - The user and, depending on the action, the device a multifactor request refers to. There is no session, so the user is identified solely by
userIdandcontextId. Unknown fields are ignored.
{-
userId
(
string
,
required
):
The user identifier as a numeric string, e.g.
"3" -
contextId
(
string
,
required
):
The context identifier as a numeric string, e.g.
"1" -
providerName
(
string
):
The name of the multifactor provider the device belongs to, e.g.
TOTP. Required forstartAuthenticationandfinishAuthentication. -
deviceId
(
string
):
The identifier of the device to authenticate with. Required for
startAuthenticationandfinishAuthentication. -
answer
(
answer
):
The provider-specific answer to the challenge, passed to the provider verbatim. Only evaluated by
finishAuthentication; its content is the same as for the corresponding HTTP API multifactor action, e.g.{"secret_code":"123456"}for TOTP. - clientInfo ( clientInfo ): Information about the client that initiated the login. Unknown fields are ignored.
-
userId
(
string
,
required
):
The user identifier as a numeric string, e.g.
-
clientInfo - Information about the client that initiated the login. Unknown fields are ignored.
{- userAgent ( string ): The user agent of the client (currently not evaluated)
- ip ( string ): The IP address of the client (currently not evaluated)
- host ( string ): The user-facing host the login is performed against. Required by host-aware providers like WebAuthn/U2F to derive the relying party's origin.
Responses:
200:
The devices and providers of the user
Content-type: application/json-
ExternalAuthMultifactorListResponse - The user's enabled multifactor devices and the providers available to the user
{- devices ( array[ExternalAuthMultifactorDevice] ): The enabled devices of all available providers
- providers ( array[ExternalAuthMultifactorProvider] ): The available providers
-
ExternalAuthMultifactorDevice - An enabled multifactor device of the user
{- id ( string ): The device identifier
- providerName ( string ): The name of the provider the device belongs to
- name ( string ): The user-friendly device name
- backup ( boolean ): Whether the device is a backup device
-
ExternalAuthMultifactorProvider - A multifactor provider available to the user
{- name ( string ): The provider name
- backupOnlyProvider ( boolean ): Whether the provider is used only for backing up other providers
400:
In case the
actionparameter is missing (MISSING_PARAMETER) or unknown (INVALID_PARAMETER_VALUE), the request body is missing,nullor cannot be parsed (INVALID_JSON_REQUEST_BODY),userIdorcontextIdis missing or not numeric (MFA-0013), the provider is unknown (MFA-0006), a provider misses a parameter of the answer (MFA-0013), or another error of categoryUSER_INPUToccurs, e.g. a missingproviderNameordeviceId, an unknown device or a wrong answerContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case permission is denied, e.g. an invalid authentication factor
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case of internal server error that might have multiple reasons, e.g. an unknown user
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: List the devices of a userPOST http://localhost:8009/authentication/v1/multifactor?action=list Content-Type: application/json {"userId":"3","contextId":"1","clientInfo":{"host":"appsuite.example.com"}} -
-
Issues the provider-specific challenge for the device denoted by
providerNameanddeviceIdof the user denoted byuserIdandcontextId, for a login at which no session exists yet.answeris not evaluated.Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthMultifactorBody - The user and, depending on the action, the device a multifactor request refers to. There is no session, so the user is identified solely by
userIdandcontextId. Unknown fields are ignored.
{-
userId
(
string
,
required
):
The user identifier as a numeric string, e.g.
"3" -
contextId
(
string
,
required
):
The context identifier as a numeric string, e.g.
"1" -
providerName
(
string
):
The name of the multifactor provider the device belongs to, e.g.
TOTP. Required forstartAuthenticationandfinishAuthentication. -
deviceId
(
string
):
The identifier of the device to authenticate with. Required for
startAuthenticationandfinishAuthentication. -
answer
(
answer
):
The provider-specific answer to the challenge, passed to the provider verbatim. Only evaluated by
finishAuthentication; its content is the same as for the corresponding HTTP API multifactor action, e.g.{"secret_code":"123456"}for TOTP. - clientInfo ( clientInfo ): Information about the client that initiated the login. Unknown fields are ignored.
-
userId
(
string
,
required
):
The user identifier as a numeric string, e.g.
-
clientInfo - Information about the client that initiated the login. Unknown fields are ignored.
{- userAgent ( string ): The user agent of the client (currently not evaluated)
- ip ( string ): The IP address of the client (currently not evaluated)
- host ( string ): The user-facing host the login is performed against. Required by host-aware providers like WebAuthn/U2F to derive the relying party's origin.
Responses:
200:
The challenge to answer
Content-type: application/json-
ExternalAuthMultifactorChallengeResponse - The challenge issued for the device
{- challenge ( challenge ): The provider-specific challenge data, the same as for the corresponding HTTP API multifactor action. Omitted if the provider issues no challenge.
400:
In case the
actionparameter is missing (MISSING_PARAMETER) or unknown (INVALID_PARAMETER_VALUE), the request body is missing,nullor cannot be parsed (INVALID_JSON_REQUEST_BODY),userIdorcontextIdis missing or not numeric (MFA-0013), the provider is unknown (MFA-0006), a provider misses a parameter of the answer (MFA-0013), or another error of categoryUSER_INPUToccurs, e.g. a missingproviderNameordeviceId, an unknown device or a wrong answerContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case permission is denied, e.g. an invalid authentication factor
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case of internal server error that might have multiple reasons, e.g. an unknown user
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: Start the authentication with a TOTP devicePOST http://localhost:8009/authentication/v1/multifactor?action=startAuthentication Content-Type: application/json {"userId":"3","contextId":"1","providerName":"TOTP","deviceId":"2f0c8e5a","clientInfo":{"host":"appsuite.example.com"}} -
-
Builds the OpenID provider's authorization request URI for a login init and stores the request state, so that the later authentication callback can be validated and resumed. State and nonce are created by the middleware, and the back-end's customization of the authorization request applies.
Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthOidcAuthorizeUrlBody - What a login init needs for the OpenID provider's authorization request. State and nonce are not part of it, the middleware creates and stores those. Unknown fields are ignored.
{- backendPath ( string ): The OpenID Connect back-end path, empty or absent for the default back-end
- deepLink ( string ): The deep link to resume once the login has returned
-
reauth
(
boolean
):
Whether the provider must re-authenticate the user even if it holds a session of its own
(
max_age=0) -
issuer
(
string
):
The
issof a third-party-initiated login, checked against the back-end's configured issuer before anything is built. Absent for a regular login init.
Responses:
200:
The authorization request URI
Content-type: application/json-
ExternalAuthOidcAuthorizeUrlResponse - The authorization request of a login init
{- authorizeUrl ( string ): The authorization request URI the browser is to be redirected to
400:
In case the request body is missing,
nullor cannot be parsed (INVALID_JSON_REQUEST_BODY), the back-end path is unknown, or a third-party-initiated login names an issuer that does not match the back-end's oneContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case of an error of category
PERMISSION_DENIEDContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case of internal server error that might have multiple reasons
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
503:
In case OpenID Connect is not available
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: Initiate a login at the default back-endPOST http://localhost:8009/authentication/v1/oidc/authorize-url Content-Type: application/json {"deepLink":"#!!&app=io.ox/mail","reauth":false} -
-
Ends the OpenID provider's sessions behind the given sessions, which were not terminated by the client itself but by other means, e.g. by expiry or by an administrator. Whether a session is ended at the provider is decided per user by the configured
opLogoutOnSessionRemovalreasons; sessions without an ID token and back-end paths that no longer resolve are passed over. The logout at the provider runs asynchronously and is retried.Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthOidcEndSessionsBody - The sessions that ended elsewhere, and why. Sessions of any number of users may be passed in one call. Unknown fields are ignored.
{-
removalReason
(
string
):
Why the sessions ended, matched case-insensitively against
UNKNOWN,EXPIRED,INVALIDATED,USER_LOGOUT,USER_CLOSEDandADMIN_CLOSED. Whether the provider's sessions are ended at all is decided per user by the configuredopLogoutOnSessionRemovalreasons. An absent or unknown reason is not an error, it simply ends no session. - endedSessions ( array[ExternalAuthOidcEndedSession] ): The sessions that ended
-
removalReason
(
string
):
Why the sessions ended, matched case-insensitively against
-
ExternalAuthOidcEndedSession - A session that ended elsewhere. Unknown fields are ignored.
{- backendPath ( string ): The OpenID Connect back-end path, empty or absent for the default back-end
- userId ( integer ): The identifier of the user the session belonged to
- contextId ( integer ): The identifier of that user's context
-
idToken
(
string
):
The ID token of the session, used as
id_token_hint. Sessions without one are skipped.
Responses:
200:
The number of sessions accepted for logout
Content-type: application/json-
ExternalAuthOidcEndSessionsResponse - The outcome of ending the provider's sessions
{- accepted ( integer ): The number of sessions accepted for logout at the provider. The logout itself runs asynchronously, so this is not the number of sessions the provider confirmed.
400:
In case the request body is missing,
nullor cannot be parsed (INVALID_JSON_REQUEST_BODY)Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
500:
In case the response cannot be written
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
503:
In case OpenID Connect is not available
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: End the provider's sessions of sessions closed by an administratorPOST http://localhost:8009/authentication/v1/oidc/end-sessions Content-Type: application/json {"removalReason":"ADMIN_CLOSED","endedSessions":[{"userId":3,"contextId":1,"idToken":"eyJhbGciOi..."}]} -
-
Redeems the flow token handed out at the end of the authorization code flow for the resolved identity and the associated token set, so that the external authentication component can own the durable session. The flow token is consumed.
Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthOidcHandoffBody - The flow token to redeem. Unknown fields are ignored.
{- flowToken ( string , required ): The one-time flow token (session reservation token) handed out by the middleware at the end of the authorization code flow. It is consumed by the request.
Responses:
200:
The identity and token set behind the flow token
Content-type: application/json-
ExternalAuthOidcHandoff - The identity and token set behind a redeemed flow token, from which the external authentication component builds its session
{- userId ( integer ): The user identifier
- contextId ( integer ): The context identifier
-
backendPath
(
string
):
The OpenID Connect back-end path the flow originated from,
nullfor the default back-end - tokens ( ExternalAuthOidcTokenSet ): An OAuth/OpenID Connect token set
-
scopes
(
array[string]
):
The scopes granted to the session; the single scope
*(full access) if none are restricted -
schema
(
integer
):
The numeric suffix of the name of the database schema the user's context lives in, e.g.
7foroxdatabase_7
-
ExternalAuthOidcTokenSet - An OAuth/OpenID Connect token set
{- accessToken ( string ): The access token
-
refreshToken
(
string
):
The refresh token,
nullif the provider issued none - idToken ( string ): The ID token
-
expiryMillis
(
integer
):
When the access token expires, as milliseconds since 1970-01-01 00:00:00 UTC;
nullif unknown
400:
In case the request body is missing,
nullor cannot be parsed (INVALID_JSON_REQUEST_BODY), or the flow token is missing, unknown, expired or denotes no OpenID Connect reservationContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case of an error of category
PERMISSION_DENIEDContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case of internal server error that might have multiple reasons
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
503:
In case OpenID Connect is not available
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: Redeem a flow tokenPOST http://localhost:8009/authentication/v1/oidc/handoff Content-Type: application/json {"flowToken":"5c1f0d3e8b2a4f6c9d7e1a2b3c4d5e6f"} -
-
Builds the OpenID provider's end-session (RP-initiated logout) request URI the browser is to be redirected to. Nothing is sent to the provider, the browser performs the logout by following the URI. The
post_logout_redirect_uriis taken from the back-end configuration. To end the provider's sessions without a browser, see/authentication/v1/oidc/end-sessions.Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthOidcLogoutBody - What the OpenID provider's end-session request URI is built from. Unknown fields are ignored.
{- backendPath ( string ): The OpenID Connect back-end path, empty or absent for the default back-end
-
idToken
(
string
):
The ID token to use as
id_token_hint - state ( string ): The opaque value to round-trip through the provider, so that the caller can restore its post-logout context. A fresh random value is used if absent or empty.
Responses:
200:
The end-session request URI
Content-type: application/json-
ExternalAuthOidcLogoutResponse - The end-session request of an RP-initiated logout
{- redirectUri ( string ): The end-session request URI the browser is to be redirected to
400:
In case the request body is missing,
nullor cannot be parsed (INVALID_JSON_REQUEST_BODY), the back-end path is unknown, or the ID token is missing or cannot be parsedContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case of an error of category
PERMISSION_DENIEDContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case of internal server error that might have multiple reasons
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
503:
In case OpenID Connect is not available
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: Build the end-session requestPOST http://localhost:8009/authentication/v1/oidc/logout Content-Type: application/json {"idToken":"eyJhbGciOi...","state":"b3BhcXVlLXN0YXRl"} -
-
Validates the back-channel logout token the OpenID provider sent and returns the claims identifying the session the logout applies to.
Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthOidcVerifyLogoutTokenBody - The back-channel logout token to validate. Unknown fields are ignored.
{- backendPath ( string ): The OpenID Connect back-end path. Empty or absent for a provider-initiated logout that names no back-end, in which case the back-end is resolved by the token's issuer.
- logoutToken ( string , required ): The raw back-channel logout token (JWT) as received from the OpenID provider
Responses:
200:
The identifying claims of the logout token
Content-type: application/json-
ExternalAuthOidcLogoutTokenInfo - The identifying claims of a validated back-channel logout token
{-
sid
(
string
):
The OpenID provider's session identifier (
sidclaim) -
subject
(
string
):
The subject (
subclaim)
-
sid
(
string
):
The OpenID provider's session identifier (
400:
In case the request body is missing,
nullor cannot be parsed (INVALID_JSON_REQUEST_BODY), the logout token is missing or not valid, or no back-end is found for the given path or the token's issuerContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case of an error of category
PERMISSION_DENIEDContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case of internal server error that might have multiple reasons
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
503:
In case OpenID Connect is not available
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: Validate a logout tokenPOST http://localhost:8009/authentication/v1/oidc/logout-token/verify Content-Type: application/json {"logoutToken":"eyJhbGciOi..."} -
-
Renews the given token set at the OpenID provider, using the back-end's client authentication.
Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthOidcRefreshBody - The token set to renew and the user whose session it belongs to. The user is named because the refresh is performed with the back-end's client authentication on that user's behalf. Unknown fields are ignored.
{- backendPath ( string ): The OpenID Connect back-end path, empty or absent for the default back-end
- accessToken ( string ): The access token to renew
- refreshToken ( string ): The refresh token. Required, a token set without one cannot be renewed.
- idToken ( string ): The ID token of the session
- expiryMillis ( integer ): When the access token expires, as milliseconds since 1970-01-01 00:00:00 UTC
- userId ( integer ): The identifier of the user the session belongs to
- contextId ( integer ): The identifier of that user's context
Responses:
200:
The renewed token set
Content-type: application/json-
ExternalAuthOidcTokenSet - An OAuth/OpenID Connect token set
{- accessToken ( string ): The access token
-
refreshToken
(
string
):
The refresh token,
nullif the provider issued none - idToken ( string ): The ID token
-
expiryMillis
(
integer
):
When the access token expires, as milliseconds since 1970-01-01 00:00:00 UTC;
nullif unknown
400:
In case the request body is missing,
nullor cannot be parsed (INVALID_JSON_REQUEST_BODY), it carries noaccessToken(MISSING_PARAMETER), or the back-end path is unknownContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
401:
Not authorized
403:
In case the refresh cannot succeed anymore, because no refresh token was given or the OpenID provider permanently rejects it, e.g. because of an invalid refresh token or ID token (
OIDC-0029). The token set cannot be renewed anymore, the session is to be ended.Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
500:
In case the refresh failed temporarily (
OIDC-0018), or of internal server error that might have multiple reasonsContent-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
503:
In case OpenID Connect is not available
Content-type: application/json-
ExternalAuthError - The standard middleware error object describing why a request was rejected. It is meant to be relayed to the client by the calling external authentication component.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the error, if known.
-
code
(
string
):
Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g.
LGI-0006. -
categories
(
string
):
The upper-case category identifier the error belongs to, e.g.
USER_INPUT. An array of such identifiers if the error belongs to more than one category. - category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
Examples:
Example: Refresh a token setPOST http://localhost:8009/authentication/v1/oidc/refresh Content-Type: application/json {"accessToken":"eyJhbGciOi...","refreshToken":"eyJhbGciOi...","idToken":"eyJhbGciOi...","expiryMillis":1790000000000,"userId":3,"contextId":1} -
-
Resolves the given user to the user identifier, the context identifier, the database schema the user's context lives in and the user's preferred language. The user is denoted by its context and user login names, by an opaque identity that a deployment-specific resolver translates, or by its identifiers.
Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:No description available
Content-type: application/json-
ExternalAuthResolveIdentityBody - The user that is supposed to be resolved. Exactly one of
loginInfo,identityandusermust be given.
{-
loginInfo
(
loginInfo
):
The context and user login names as they are known to the middleware, for a caller that has already
mapped its identity provider's response onto them. Both are looked up as-is, no further splitting or
normalization takes place. Must not be combined with
identityoruser. -
identity
(
identity
):
An opaque identifier that the caller cannot map onto login names itself, to be translated by a
deployment-specific resolver. Must not be combined with
loginInfooruser. -
user
(
user
):
The identifiers of a user the caller already knows, e.g. from a session it keeps, to learn what the
middleware knows about the user now. They are looked up directly, no resolver is asked. Must not be
combined with
loginInfooridentity.
-
loginInfo
(
loginInfo
):
The context and user login names as they are known to the middleware, for a caller that has already
mapped its identity provider's response onto them. Both are looked up as-is, no further splitting or
normalization takes place. Must not be combined with
-
loginInfo - The context and user login names as they are known to the middleware, for a caller that has already mapped its identity provider's response onto them. Both are looked up as-is, no further splitting or normalization takes place. Must not be combined with
identityoruser.
{-
contextName
(
string
,
required
):
The context login name, e.g.
example.com -
userName
(
string
,
required
):
The user login name, e.g.
jane.doe
-
contextName
(
string
,
required
):
The context login name, e.g.
-
identity - An opaque identifier that the caller cannot map onto login names itself, to be translated by a deployment-specific resolver. Must not be combined with
loginInfooruser.
{-
type
(
string
,
required
):
The identifier's scheme, agreed upon between the caller and the resolver that handles it, e.g.
subject:nameID - value ( string , required ): The identifier itself
-
type
(
string
,
required
):
The identifier's scheme, agreed upon between the caller and the resolver that handles it, e.g.
-
user - The identifiers of a user the caller already knows, e.g. from a session it keeps, to learn what the middleware knows about the user now. They are looked up directly, no resolver is asked. Must not be combined with
loginInfooridentity.
{-
cid
(
string
,
required
):
The context identifier, as the login hands it out, e.g.
1 -
userId
(
string
,
required
):
The user identifier, as the login hands it out, e.g.
3
-
cid
(
string
,
required
):
The context identifier, as the login hands it out, e.g.
Responses:
200:
The resolved identity
Content-type: application/json-
ExternalAuthResolvedIdentity - The data a given user identity has been resolved to
{- userId ( string , required ): The identifier of the resolved user
- cid ( string , required ): The identifier of the context the resolved user belongs to
-
schema
(
integer
,
required
):
The numeric suffix of the name of the database schema the user's context lives in, e.g.
7foroxdatabase_7, or0if the schema name carries no numeric suffix -
prefLanguage
(
string
):
The user's preferred language, e.g.
de_DE, as the login reports it. Absent if the user has none.
400:
In case the request body is invalid, denotes no user at all, or sets more than one of
loginInfo,identityanduserContent-type: application/json-
Unknown
401:
Not authorized
404:
In case no resolver is able to resolve the given user, or no such user exists
500:
In case of internal server error that might have multiple reasons, e.g. a required service is absent or resolving the user fails. The response has no body.
Examples:
Example: Resolve a user by its login namesPOST http://localhost:8009/authentication/v1/resolve Content-Type: application/json {"loginInfo":{"contextName":"example.com","userName":"john.doe"}}Example: Resolve a user by an opaque identityPOST http://localhost:8009/authentication/v1/resolve Content-Type: application/json {"identity":{"type":"subject:nameID","value":"john.doe@example.com"}}Example: Resolve a user by its identifiersPOST http://localhost:8009/authentication/v1/resolve Content-Type: application/json {"user":{"cid":"1","userId":"3"}} -
-
-
DAVx5
DAVx5 Select configuration endpoint for initial setup and customization re-queries.-
This endpoint serves DAVx5 Select configuration JSON. It supports two modes:
Initial setup (no Basic Authorization header): Redeems a one-time token, creates an app-specific password, and returns the full configuration including DAV URLs, credentials, and UI customization. If app-specific passwords are not available, the configuration is returned without credentials. The user identity is derived from the session reservation bound to the token. The onboarding flow generates a
davx5://setup?config=https://<host>/davx5/v1/config/<token>link; the DAVx5 client extracts the HTTPS URL from theconfigquery parameter and calls this endpoint.Authenticated re-query (Basic Auth header): Returns customization-only JSON with
Cache-ControlandETagheaders for efficient polling. The user identity is derived from the authenticated credentials, which MUST be app-specific password credentials. The token path segment is ignored in this mode.Both modes are rate limited per client IP address. Fields whose value is not configured are omitted.
Security:
One of these security schemes must be used:Name Scopes None
Anonymous access is allowed. Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type token (empty) The one-time configuration token obtained from the onboarding flow.
path string Responses:
200:
The DAVx5 configuration. Without a Basic Authorization header, the full configuration including credentials is returned. With Basic Auth, only customization data is returned.
Content-type: application/json-
DAVx5ConfigResponse - DAVx5 configuration response. The shape depends on the request mode: - **Initial setup** (token-based, no Basic Authorization header): All fields can be present. - **Re-query** (Basic Auth): Only `customization` and `supportInfos` are returned.
{- baseRoot ( string ): The DAV base URL. Only present in initial setup responses.
- caldavRoot ( string ): The CalDAV root URL. Only present in initial setup responses.
- carddavRoot ( string ): The CardDAV root URL. Only present in initial setup responses.
- basicAuth ( DAVx5BasicAuth ): The app-specific password credentials for DAV access.
- customization ( DAVx5Customization ): UI customization data for DAVx5 Select.
- supportInfos ( DAVx5SupportInfos ): Support information for DAVx5 Select.
-
DAVx5BasicAuth - The app-specific password credentials for DAV access.
{- username ( string ): The login name for Basic Auth.
- password ( string ): The app-specific password for Basic Auth.
-
DAVx5Customization - UI customization data for DAVx5 Select.
{- productName ( string ): Product name shown in DAVx5 Select.
- description ( string ): Product description shown in DAVx5 Select.
- logoImage ( string ): Logo image as data URI (PNG recommended, 512x512 px, max 256 KB encoded) or HTTPS URL. Note that HTTPS URLs are fetched directly by the client device.
- headerImage ( string ): Header/banner image as data URI (PNG recommended, 1024x256 px, max 256 KB encoded) or HTTPS URL. Note that HTTPS URLs are fetched directly by the client device.
-
DAVx5SupportInfos - Support information for DAVx5 Select.
{- linkDestination ( string ): Support link destination URL.
- linkTitle ( string ): Support link title.
- description ( string ): Support description text.
304:
Not Modified. Returned when the `If-None-Match` header matches the current ETag (re-query mode only).
401:
Unauthorized. The Basic Auth credentials are malformed or invalid (re-query mode only).
Content-type: application/json-
DAVx5ErrorResponse - Error response from the DAVx5 configuration endpoint.
{- error ( string ): The error message.
403:
Forbidden. The token is invalid, expired, or has already been used.
Content-type: application/json-
DAVx5ErrorResponse - Error response from the DAVx5 configuration endpoint.
{- error ( string ): The error message.
429:
Too many requests. The rate limit is exceeded or cannot be enforced because no rate limiter is available.
Content-type: application/json-
DAVx5ErrorResponse - Error response from the DAVx5 configuration endpoint.
{- error ( string ): The error message.
500:
Internal server error.
Content-type: application/json-
DAVx5ErrorResponse - Error response from the DAVx5 configuration endpoint.
{- error ( string ): The error message.
503:
Service unavailable. The authentication service is temporarily unavailable (re-query mode only).
Content-type: application/json-
DAVx5ErrorResponse - Error response from the DAVx5 configuration endpoint.
{- error ( string ): The error message.
Examples:
Example1: Initial setup (token-based, no auth)GET https://example.com/davx5/v1/config/abc123tokenExample2: Authenticated re-query (Basic Auth)GET https://example.com/davx5/v1/config/abc123token -H "Authorization: Basic dXNlcjpwYXNz" -
-
-
Health
The health-check module-
Runs the health checks of this node and returns their results.
Requires HTTP Basic Auth with the credentials configured in
com.openexchange.health.usernameandcom.openexchange.health.password. If both properties are empty (the default), no authentication is needed.Security:
One of these security schemes must be used:Name Scopes basicAuth
Name Scopes None
Anonymous access is allowed.
Responses:
200:
The overall status is "UP". The JSON object contains the health data.
Content-type: application/json-
HealthData
{-
status
(
string
, possibleValues:
UPDOWN
- checks ( array[HealthCheckData] ): No description available
- service ( ServiceData ): No description available
-
status
(
string
, possibleValues:
-
HealthCheckData
{- name ( string ): The health-check's name
-
status
(
string
, possibleValues:
UPDOWN
- data ( data ): JSON object containing health-check's additional data
-
ServiceData
{- name ( string ): The service name, always "appsuite-middleware"
- version ( string ): The middleware version running on this node
- date ( string ): The date the health-check response was created, formatted as `yyyy-MM-dd'T'HH:mm:ss,SSSZ`
- timeZone ( string ): The node's default time zone
- locale ( string ): The node's default locale
- charset ( string ): The node's default charset
401:
Credentials are configured and the request carries none or wrong ones. The response has a `WWW-Authenticate` header for the realm "OX HEALTH".
500:
The health-check service is unavailable or failed with an internal error. The response has no body.
503:
The overall status is "DOWN". The JSON object contains the health data; if the service information cannot be determined, it only contains the status "DOWN" and an empty list of checks.
Content-type: application/json-
HealthData
{-
status
(
string
, possibleValues:
UPDOWN
- checks ( array[HealthCheckData] ): No description available
- service ( ServiceData ): No description available
-
status
(
string
, possibleValues:
-
HealthCheckData
{- name ( string ): The health-check's name
-
status
(
string
, possibleValues:
UPDOWN
- data ( data ): JSON object containing health-check's additional data
-
ServiceData
{- name ( string ): The service name, always "appsuite-middleware"
- version ( string ): The middleware version running on this node
- date ( string ): The date the health-check response was created, formatted as `yyyy-MM-dd'T'HH:mm:ss,SSSZ`
- timeZone ( string ): The node's default time zone
- locale ( string ): The node's default locale
- charset ( string ): The node's default charset
Examples:
Example: Get health statusGET http://localhost:8009/health -
-
Runs the health checks of this node and reports only whether the overall status is "UP". Use
/healthfor the details.Requires HTTP Basic Auth with the credentials configured in
com.openexchange.health.usernameandcom.openexchange.health.password. If both properties are empty (the default), no authentication is needed.Security:
One of these security schemes must be used:Name Scopes basicAuth
Name Scopes None
Anonymous access is allowed.
Responses:
200:
The overall status is "UP". The response has no body.
401:
Credentials are configured and the request carries none or wrong ones. The response has a `WWW-Authenticate` header for the realm "OX HEALTH".
500:
The health-check service is unavailable or failed with an internal error. The response has no body.
503:
The overall status is "DOWN". The response has no body.
Examples:
Example: Get readiness statusGET http://localhost:8009/ready
-
-
InternetFreeBusy
Servlet for requesting free busy data.-
Serves the free busy data of a user or a resource without authentication. The servlet is only available if
com.openexchange.calendar.enableInternetFreeBusyis enabled, and the data is only served ifcom.openexchange.calendar.publishInternetFreeBusyis enabled for the context and, for a user, for that user.Parameters:
Parameter Value Description Parameter Type Data Type contextId (empty) The context id of the context in which the requested user is located.
query integer userName (empty) The name of the user. Typically the local part of the email address.
query string server (empty) The name of the server. Typically the domain part of the email address.
query string weeksIntoPast (empty) The requested time range into the past in weeks, MUST NOT be negative. If this value is greater than the configured maximum (`com.openexchange.calendar.internetFreeBusyMaximumTimerangePast`), the free busy times are only requested to the configured maximum. Default value is 1 week into the past.
query integer weeksIntoFuture (empty) The requested time range into the future in weeks, MUST NOT be negative. If this value is greater than the configured maximum (`com.openexchange.calendar.internetFreeBusyMaximumTimerangeFuture`), the free busy times are only requested to the configured maximum. Default value is 4 weeks into the future.
query integer simple (empty) true, if the VFREEBUSY data should not contain free busy type and free information, false otherwise. Default value is false.
query boolean Responses:
200:
An iCalendar text containing the requested free busy data.
Content-type: text/calendar-
Unknown
400:
In case `contextId`, `weeksIntoPast` or `weeksIntoFuture` is not a number, or `weeksIntoPast` or `weeksIntoFuture` is negative.
404:
In case the servlet is not enabled, a required parameter is missing or empty, the context does not exist, no user or resource with the requested address is found in the context, or the free busy data is not published for the context or the user.
500:
In case an internal server error occurs.
-
-
-
Metrics
The metrics module-
Basic authentication is only required when both
com.openexchange.metrics.micrometer.basicauth.loginandcom.openexchange.metrics.micrometer.basicauth.passwordare set. The response format is chosen by theAcceptheader: OpenMetrics text if it containsapplication/openmetrics-text, Prometheus protobuf if it containsapplication/vnd.google.protobuf; proto=io.prometheus.client.MetricFamily, otherwise the Prometheus text format. The body is gzip-compressed ifAccept-Encodingcontainsgzip.Security:
One of these security schemes must be used:Name Scopes basicAuth
Name Scopes None
Anonymous access is allowed.
Parameters:
Parameter Value Description Parameter Type Data Type name[] (empty) Only returns the metrics with exactly these names. May be repeated.
query array debug Returns the metrics in the given format as `text/plain; charset=utf-8`, regardless of the `Accept` header. Any other value results in status 500.
query string Responses:
200:
The metrics, in the format the `Accept` header selects (see the description of this operation).
Content-type: text/plain-
Unknown
400:
The query string cannot be parsed.
Content-type: text/plain-
Unknown
401:
Basic authentication is enabled and the credentials are missing or wrong.
403:
Basic authentication is enabled and the request uses neither HTTPS nor the local address of the server.
500:
The `debug` parameter has an unsupported value.
Content-type: text/plain-
Unknown
-
-
-
Migration
This module contains endpoints relevant to managing migrations-
Parameters:
Parameter Value Description Parameter Type Data Type id (empty) The migration id
path integer Responses:
200:
In case the migration was removed successfully
500:
Internal server error.
-
Responses:
200:
A JSON object containing the migrations
Content-type: application/json-
Migration - A migration
{- migrationId ( string ): The ID of the migration
- name ( string ): The name of the migration
- schemaName ( string ): The name of the database schema
- dbPoolId ( integer ): The db pool id
- reason ( string ): The reason for this migration
-
restriction
(
string
, possibleValues:
disabledreadOnlynone
- startTime ( string ): The start time of this migration
-
status
(
string
, possibleValues:
notStartedrunningfinishederror
500:
Internal server error.
-
-
Parameters:
Parameter Value Description Parameter Type Data Type name (empty) The migration name
query string Responses:
200:
In case the migrations were successfully removed
404:
In case no migration with the given name exists
500:
Internal server error.
-
-
Preliminary
This module contains preliminary endpoints which can change in the future.-
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The context id
path integer user (empty) The user id
path integer Responses:
200:
A JSON array containing the capabilities for the user
Content-type: application/json
401:
Missing or invalid HTTP Basic authentication credentials.
403:
The REST API Basic Auth credentials (
com.openexchange.rest.services.basic-auth.loginandcom.openexchange.rest.services.basic-auth.password) are not configured.500:
The capabilities cannot be retrieved, e.g. because the context or user identifier is not positive. The response has no body; the error message is sent as the HTTP status reason phrase.
Examples:
Example: Get capabilitiesGET http://localhost:8009/preliminary/capabilities/v1/all/1/3 -
Looks up the free/busy periods of one or more users of a context within a certain time range, administratively, i.e. without acting on behalf of a session user. In contrast to the client-facing free/busy request of the HTTP API, the response is reduced to the pure free/busy periods - the events behind a busy period are never disclosed, not even in their anonymized form. This makes the endpoint suitable for services that only need to know when a user is busy, like a booking service performing a calendar conflict check. The configured free/busy visibility of the queried users is honored, i.e. users that restricted their free/busy data to their own context or hid it entirely are reported with a warning and without any free/busy periods.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the context the queried users belong to
path integer attendees (empty) The users to query the free/busy data for, each one referenced either by its numerical internal user identifier or by one of its email addresses (including aliases). May be supplied as comma-separated list, by repeating the parameter, or by any combination of both. Resources and rooms can be queried alongside the users by passing their email address.
query array from (empty) The start of the requested time range, either as UTC timestamp in milliseconds, as ISO-8601 date or date/time, or in the iCalendar format also used by the HTTP API. Values without an explicit timezone or UTC indicator are interpreted as UTC.
query string until (empty) The end of the requested time range, in the same notation as 'from'. Must be after 'from'.
query string merge (empty) 'true' to merge any overlapping free/busy periods of a user into the most conflicting busy times, 'false' to get one period per underlying appointment. Defaults to 'true'.
query boolean Responses:
200:
A JSON array holding one free/busy result per requested user, in the order the users were requested in.
Content-type: application/json-
FreeBusyResult - The free/busy data of a single queried calendar user.
{- attendee ( FreeBusyAttendee ): The calendar user the free/busy data was queried for. Reported as resolved, i.e. an internal entity carries its identifier, common name and mail address no matter how it was referenced in the request.
- freeBusyTime ( array[FreeBusyPeriod] ): The free/busy periods of the calendar user within the requested time range. Absent if no free/busy data could be served for the calendar user, in which case a warning is present instead.
- warnings ( array[FreeBusyWarning] ): Warnings concerning the calendar user, if any.
-
FreeBusyAttendee - The calendar user the free/busy data was queried for. Reported as resolved, i.e. an internal entity carries its identifier, common name and mail address no matter how it was referenced in the request.
{- entity ( integer ): The numerical internal identifier of the calendar user, only set if it could be resolved.
-
cuType
(
string
, possibleValues:
INDIVIDUALGROUPRESOURCEROOMUNKNOWN
- uri ( string ): The calendar user address URI, usually a "mailto:"-URI.
- cn ( string ): The common name of the calendar user.
- email ( string ): The mail address of the calendar user.
-
FreeBusyPeriod - A single free/busy period. The event behind the period is intentionally not disclosed.
{- startTime ( integer ): The start of the period, as UTC timestamp in milliseconds.
- endTime ( integer ): The end of the period, as UTC timestamp in milliseconds.
- fbType ( string ): The type of the period, as defined in RFC 5545, section 3.2.9. Typically "BUSY", "BUSY-TENTATIVE", "BUSY-UNAVAILABLE" or "FREE".
-
FreeBusyWarning - A warning concerning a queried calendar user, e.g. if it could not be resolved, or if it restricted the visibility of its free/busy data.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the warning.
- code ( string ): Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g. "CAL-40312".
- categories ( string ): The upper-case category identifier the error belongs to.
- category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
400:
A parameter is missing, a user identifier or time range boundary could not be parsed, or 'from' is not before 'until'.
401:
Not authorized
404:
The referenced context does not exist.
500:
In case of internal server error that might have multiple reasons. The response has no body.
Examples:
Example: Query the free/busy data of a user referenced by identifier and another one referenced by email addressGET http://localhost:8009/preliminary/chronos/v1/freebusy/1?attendees=3,jane.doe@example.com&from=2026-07-28T00:00:00Z&until=2026-08-04T00:00:00Z -
-
Looks up the free/busy periods of a single user of a context within a certain time range, administratively, i.e. without acting on behalf of a session user. This is the convenience variant of the batch endpoint for the common case of a single queried user, yielding the free/busy result directly instead of wrapping it into an array. Since the user is referenced through a path segment here, only its numerical internal user identifier is accepted - use the batch endpoint to reference a user by its email address. As with the batch endpoint, the response is reduced to the pure free/busy periods and the configured free/busy visibility of the queried user is honored.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the context the queried user belongs to
path integer user (empty) The identifier of the user to query the free/busy data for
path integer from (empty) The start of the requested time range, either as UTC timestamp in milliseconds, as ISO-8601 date or date/time, or in the iCalendar format also used by the HTTP API. Values without an explicit timezone or UTC indicator are interpreted as UTC.
query string until (empty) The end of the requested time range, in the same notation as 'from'. Must be after 'from'.
query string merge (empty) 'true' to merge any overlapping free/busy periods into the most conflicting busy times, 'false' to get one period per underlying appointment. Defaults to 'true'.
query boolean Responses:
200:
A JSON object holding the free/busy result of the user.
Content-type: application/json-
FreeBusyResult - The free/busy data of a single queried calendar user.
{- attendee ( FreeBusyAttendee ): The calendar user the free/busy data was queried for. Reported as resolved, i.e. an internal entity carries its identifier, common name and mail address no matter how it was referenced in the request.
- freeBusyTime ( array[FreeBusyPeriod] ): The free/busy periods of the calendar user within the requested time range. Absent if no free/busy data could be served for the calendar user, in which case a warning is present instead.
- warnings ( array[FreeBusyWarning] ): Warnings concerning the calendar user, if any.
-
FreeBusyAttendee - The calendar user the free/busy data was queried for. Reported as resolved, i.e. an internal entity carries its identifier, common name and mail address no matter how it was referenced in the request.
{- entity ( integer ): The numerical internal identifier of the calendar user, only set if it could be resolved.
-
cuType
(
string
, possibleValues:
INDIVIDUALGROUPRESOURCEROOMUNKNOWN
- uri ( string ): The calendar user address URI, usually a "mailto:"-URI.
- cn ( string ): The common name of the calendar user.
- email ( string ): The mail address of the calendar user.
-
FreeBusyPeriod - A single free/busy period. The event behind the period is intentionally not disclosed.
{- startTime ( integer ): The start of the period, as UTC timestamp in milliseconds.
- endTime ( integer ): The end of the period, as UTC timestamp in milliseconds.
- fbType ( string ): The type of the period, as defined in RFC 5545, section 3.2.9. Typically "BUSY", "BUSY-TENTATIVE", "BUSY-UNAVAILABLE" or "FREE".
-
FreeBusyWarning - A warning concerning a queried calendar user, e.g. if it could not be resolved, or if it restricted the visibility of its free/busy data.
{- error ( string ): The translated error message.
- error_params ( array[string] ): The message parameters.
- error_id ( string ): Unique error identifier to help finding this error instance in the server logs.
- error_desc ( string ): The technical error message (always English) useful for debugging the problem.
- error_stack ( array[string] ): The stack trace of the associated Java exception, only present if com.openexchange.ajax.response.includeStackTraceOnError is enabled.
- version ( string ): The version of the middleware node that produced the warning.
- code ( string ): Error code consisting of an upper-case module identifier and a four- or five-digit message number, separated by a dash; e.g. "CAL-40312".
- categories ( string ): The upper-case category identifier the error belongs to.
- category ( integer ): Maintained for legacy reasons: The numeric representation of the first category.
400:
A parameter is missing, a time range boundary could not be parsed, or 'from' is not before 'until'.
401:
Not authorized
404:
The referenced context or user does not exist.
500:
In case of internal server error that might have multiple reasons. The response has no body.
Examples:
Example: Query the free/busy data of a single userGET http://localhost:8009/preliminary/chronos/v1/freebusy/1/3?from=2026-07-28T00:00:00Z&until=2026-08-04T00:00:00Z -
-
Resolves the named property through the configuration cascade in server scope and returns a one-entry object mapping the property name to its value. Responds with status 404 if the property is not set. Note that values are returned as configured, without any masking - the response can contain secrets, so the endpoint should never be exposed beyond administrative networks.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type property (empty) The fully-qualified name of the property to resolve
path string Responses:
200:
A JSON object mapping the property name to its value
Content-type: application/json-
Unknown
{
404:
The property is not set
-
-
Resolves the named property through the configuration cascade in the scope of the given context and user and returns a one-entry object mapping the property name to its value. A context or user that does not exist contributes no value, so the property resolves from the remaining scopes. Responds with status 404 if the property is not set in any scope. Values are returned unmasked and can contain secrets.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type property (empty) The fully-qualified name of the property to resolve
path string context (empty) The context id
path integer user (empty) The user id
path integer Responses:
200:
A JSON object mapping the property name to its value
Content-type: application/json-
Unknown
{
404:
The property is not set in any scope
-
-
Enumerates every property that is set in the configuration cascade in server scope and whose fully-qualified name starts with the given prefix, and returns them as one object of name-value pairs. Only properties with a configured value appear; defaults that live in code are not enumerated. Values are returned unmasked and can contain secrets, so the endpoint should never be exposed beyond administrative networks.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type prefix (empty) The property-name prefix to filter by, e.g.
com.openexchange.mailpath string Responses:
200:
A JSON object with one entry per matching property
Content-type: application/json-
Unknown
{
-
-
Enumerates every property that is set in the configuration cascade in the scope of the given context and user and whose fully-qualified name starts with the given prefix, and returns them as one object of name-value pairs. Only properties with a configured value appear; defaults that live in code are not enumerated. A user that does not exist contributes no properties. Responds with status 404 if the user id is positive and the context does not exist. Values are returned unmasked and can contain secrets.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type prefix (empty) The property-name prefix to filter by, e.g.
com.openexchange.mailpath string context (empty) The context id
path integer user (empty) The user id
path integer Responses:
200:
A JSON object with one entry per matching property
Content-type: application/json-
Unknown
{
404:
The user id is positive and the context does not exist
-
-
Lists, for every resource of the context that has one, the foreign contexts recorded in the owner-side cross-context grant index as holding access on it. The index is consulted directly rather than enumerating the context's entities, so only entities that effectively hold a grant appear.
Reports the index verbatim, with the same caveats as the per-entity variant: no backing store is consulted, there is no fallback when the index holds nothing, and the trust-zone authority is not applied.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the context hosting the resources.
path integer Responses:
200:
A JSON object describing the recorded grants of the context.
Content-type: application/json-
Unknown
{- context ( integer ): The context identifier.
- entities ( array[object] ): One entry per resource owner that holds at least one recorded grant.
401:
Missing or invalid HTTP Basic authentication credentials (administrative endpoint).
404:
The context does not exist.
500:
In case of an internal server error that might have multiple reasons.
Examples:
Example: List every recorded cross-context grant of a contextGET http://localhost:8009/preliminary/crosscontext/v1/grants/1337 -
-
Lists the contexts recorded in the owner-side cross-context grant index as holding access on the supplied resource - for a shared account, the contexts whose users or groups were granted a permission on it. It is the owner-side counterpart of the
inboundliaison audit.The result is keyed by grant type rather than by groupware module, because a grant can be module-less (
SHARED_ACCOUNTis).Reports the index verbatim: the backing stores are not consulted, there is no fallback when the index holds nothing, and the trust-zone authority is not applied. An empty
grantsobject therefore means "nothing is recorded", not "nothing exists".Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the context hosting the resource.
path integer entity (empty) The identifier of the resource owner within that context, e.g. the shared account.
path integer Responses:
200:
A JSON object describing the recorded grants.
Content-type: application/json-
Unknown
{- context ( integer ): The context identifier.
- entity ( integer ): The resource owner identifier.
- grants ( grants ): The recorded grants, as a mapping of grant type name to the list of grantee context identifiers. Only types with at least one grant are included.
401:
Missing or invalid HTTP Basic authentication credentials (administrative endpoint).
404:
The context does not exist.
500:
In case of an internal server error that might have multiple reasons.
Examples:
Example: List the contexts holding access on a shared accountGET http://localhost:8009/preliminary/crosscontext/v1/grants/1337/14 -
-
Lists, for every principal entity in the context that holds at least one cross-context liaison, the foreign sharing contexts the entity has liaisons with, broken down per groupware module. The liaison registry is consulted directly for the context's liaisons rather than by enumerating users, so only entities that effectively hold a liaison appear. Each entry is reported under its own entity identifier and tagged as a user or group, the kind being probed dynamically. Trust zones are included for user entities only.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the context.
path integer Responses:
200:
A JSON object listing the cross-context liaisons of the liaison-holding entities in the context.
Content-type: application/json-
Unknown
{- context ( integer ): The context identifier.
- entities ( array[object] ): One entry per principal entity in the context that holds at least one cross-context liaison.
401:
Missing or invalid HTTP Basic authentication credentials (administrative endpoint).
404:
The context does not exist.
500:
In case of an internal server error that might have multiple reasons.
Examples:
Example: List the cross-context access received by all entities in a contextGET http://localhost:8009/preliminary/crosscontext/v1/inbound/1337 -
-
Lists the foreign sharing contexts the user has cross-context liaisons with, broken down per groupware module, together with the trust zones configured for the user. Liaisons granted to one of the user's groups are folded into the result implicitly, i.e. direct (to the user entity) and indirect (via group membership) liaisons are combined.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the context the user belongs to.
path integer user (empty) The identifier of the user.
path integer Responses:
200:
A JSON object describing the user's cross-context liaisons and trust zones.
Content-type: application/json-
Unknown
{- context ( integer ): The context identifier.
- user ( integer ): The user identifier.
- trustZones ( array[string] ): The trust zone tags configured for the user.
- liaisons ( liaisons ): The established liaisons, as a mapping of groupware module name to the list of foreign sharing context identifiers. Only modules with at least one liaison are included.
401:
Missing or invalid HTTP Basic authentication credentials (administrative endpoint).
404:
The context or user does not exist.
500:
In case of an internal server error that might have multiple reasons.
Examples:
Example: List the cross-context access a user receivedGET http://localhost:8009/preliminary/crosscontext/v1/inbound/1337/3 -
-
Retracts the cross-context access the principal received: for each of its liaisons whose type has a registered retractor, removes the live backing access (e.g. a mail folder ACL via doveadm) and drops the liaison row. The optional
from,ownerandmodulequery parameters scope the purge. The operation is an unconditional operator override - it does not consult the trust-zone authority - and is lenient: each liaison is handled in isolation, an already-absent access is a no-op, a retractor that cannot complete (e.g. its backend is unavailable) leaves that row for a later retry, and a liaison whose type has no registered retractor is left untouched and reported underskippedNoRetractor.Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the context the principal belongs to.
path integer user (empty) The identifier of the principal (user) whose received access to retract.
path integer from (empty) Optional filter - only retract liaisons received from this sharing (owner) context.
query integer owner (empty) Optional filter - only retract liaisons whose owning entity within the sharing context matches (relevant for mail folder shares; owner-agnostic liaisons carry 0).
query integer module (empty) Optional filter - only retract liaisons of this groupware module (e.g. mail, calendar), matched case-insensitively. Module-less deputy liaisons are excluded when the filter is set, and an unknown module name retracts nothing.
query string Responses:
200:
A JSON object summarizing the purge outcome.
Content-type: application/json-
Unknown
{- context ( integer ): The context identifier.
- user ( integer ): The principal identifier.
- retracted ( integer ): The number of liaisons whose backing access was retracted and whose row was dropped.
- deferred ( integer ): The number of liaisons left in place because their retractor could not complete (e.g. the backend was unavailable); a later run retries them.
- failed ( integer ): The number of liaisons that errored during retraction and were kept.
- skippedNoRetractor ( skippedNoRetractor ): Per liaison type, the count of liaisons left untouched because no retractor is registered for that type (row and access both kept). Absent when none were skipped.
401:
Missing or invalid HTTP Basic authentication credentials (administrative endpoint).
404:
The context or user does not exist.
500:
In case of an internal server error that might have multiple reasons.
Examples:
Example: Retract all cross-context access a user receivedDELETE http://localhost:8009/preliminary/crosscontext/v1/inbound/1337/3 -
-
Lists the cross-context shares the user has granted out - the foreign access that exists on the folders it owns, its mailbox, and the deputies it appointed - read owner-locally from each backing store (no cross-schema fan-out). Resource-owner-scoped: it reports the foreign access on the user's resources, not necessarily "what the user personally granted", as the backing stores record no granted-by attribution. The listing is best-effort: a backing store that fails to enumerate the user's shares is skipped and the shares of the remaining stores are still returned.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the owner's context.
path integer user (empty) The identifier of the owner user whose granted-out access to list.
path integer Responses:
200:
A JSON object listing the user's outbound cross-context shares.
Content-type: application/json-
Unknown
{- context ( integer ): The owner context identifier.
- user ( integer ): The owner user identifier.
- shares ( array[object] ): One entry per cross-context share granted out from the user's resources.
401:
Missing or invalid HTTP Basic authentication credentials (administrative endpoint).
404:
The context or user does not exist.
500:
In case of an internal server error that might have multiple reasons.
Examples:
Example: List the cross-context access a user granted outGET http://localhost:8009/preliminary/crosscontext/v1/outbound/1337/3 -
-
Retracts the cross-context access the user has granted out from its own resources: removes the foreign access on the user's folders / mailbox and revokes the deputies it appointed, cleaning up the corresponding grantee-side liaison rows. The optional
to(a grantee context) andmodulequery parameters scope the purge. The operation is an unconditional operator override - it does not consult the trust-zone authority - and is lenient and per-share isolated; deputy shares are revoked first so their cascade onto the projected folder/mail shares runs before those are touched. Unlike the listing, a backing store that fails to enumerate the user's shares fails the request; shares retracted before that point stay retracted.Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the owner's context.
path integer user (empty) The identifier of the owner user whose granted-out access to retract.
path integer to (empty) Optional filter - only retract shares granted to this grantee context.
query integer module (empty) Optional filter - only retract shares of this groupware module (e.g. mail, calendar), matched case-insensitively. Module-less deputy shares are excluded when the filter is set, and an unknown module name retracts nothing.
query string Responses:
200:
A JSON object summarizing the purge outcome.
Content-type: application/json-
Unknown
{- context ( integer ): The owner context identifier.
- user ( integer ): The owner user identifier.
- retracted ( integer ): The number of shares whose backing access was retracted.
- deferred ( integer ): The number of shares left in place because their backing could not be reached (e.g. the backend was unavailable); a later run retries them.
- failed ( integer ): The number of shares that errored during retraction and were kept.
401:
Missing or invalid HTTP Basic authentication credentials (administrative endpoint).
404:
The context or user does not exist.
500:
In case of an internal server error that might have multiple reasons.
Examples:
Example: Retract all cross-context access a user granted outDELETE http://localhost:8009/preliminary/crosscontext/v1/outbound/1337/3 -
-
Receives a push notification from the Dovecot mail server about a mailbox of the user named in
user.messageNew- a new message arrived. It is passed to the push notification service and, if a session of the user is found or can be generated, triggers a new-mail event. Requiresfolderandimap-uid.messageAppend,messageRead,messageTrash,flagsSet,flagsClear- messages infolderchanged.messageExpunge- messages were removed fromfolder.mailboxCreate,mailboxDelete,mailboxSubscribe,mailboxUnsubscribe,mailboxRename- the folderfolderchanged.
user, a change event withoutfolder, or an unknown or missingeventis ignored and still answered with success. In a multi-site setup the notification is forwarded to the site that serves the user's context.Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:JSONObject containing the push message
Content-type: application/json-
PushMessage
{-
event
(
string
, possibleValues:
messageNewmessageAppendmessageReadmessageTrashflagsSetflagsClearmessageExpungemailboxCreatemailboxDeletemailboxSubscribemailboxUnsubscribemailboxRename
-
user
(
string
):
The user identifier in the format
@ . E.g. 3@1 -
folder
(
string
):
The full name of the affected folder, e.g. INBOX. For
mailboxRenamethe new name. -
oldFolder
(
string
):
The previous full name of the folder. Only read for
mailboxRename. - imap-uid ( integer ): The mail uid
-
imap-uids
(
array[integer]
):
The uids of the affected mails. Only read for change events, where it takes precedence over
imap-uid. -
from
(
string
):
The from header of the mail. Only read for
messageNew. -
subject
(
string
):
The subject of the mail. Only read for
messageNew. -
unseen
(
integer
):
The number of unseen mails. Only read for
messageNew. -
snippet
(
string
):
A mail teaser. Only read for
messageNew.
-
event
(
string
, possibleValues:
Responses:
200:
A JSON object with a success field set to 'true'.
Content-type: application/json-
SuccessResponse
{- success ( boolean ): No description available
401:
Missing or wrong Basic Auth credentials.
403:
The REST Basic Auth credentials are not configured on the server.
500:
The request body is missing or empty, a
messageNewnotification lacksfolderorimap-uid, the user does not exist, or another internal error occurred. The response has no body; the error message is in the HTTP reason phrase. -
Tells the mail server whether a user may act in the primary mailbox of another user with the own credentials (acting user login), and which ACL groups to put that user into, whatever the grant originates from, e.g. a shared account permission. Both users are referenced by their mail login strings, which are resolved through the registered mail login resolver service. Of several grants for the same users, the one of the highest ranked provider is returned.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type actingUserLogin (empty) The mail login string of the user who logs in with the own credentials.
query string mailboxLogin (empty) The mail login string of the user whose primary mailbox is opened.
query string X-OX-Acting-Ticket (empty) The one-time ticket the middleware sent in the IMAP
IDfieldx-ox-acting-ticketahead of the login, if any. Required for a grant that is for the middleware alone, and used up by this request; ignored for any other grant. As a header, it stays out of the request logs of the mail server.header string ticket (empty) The one-time ticket as query parameter, which is taken if the header
X-OX-Acting-Ticketcarries none. Prefer the header: a URL tends to end up in logs.query string Responses:
200:
A JSON object holding the grant.
Content-type: application/json-
Unknown
{-
source
(
string
):
What the grant originates from, e.g.
sharedaccount. -
aclGroups
(
array[string]
):
The names of the ACL groups the mail server puts the acting user into, which its configuration withholds rights from. May be empty, which leaves the rights of the mailbox's owner, as does a group the mail server has no ACL entries for. A name consists of ASCII letters, digits,
.,_and-only. -
middlewareOnly
(
boolean
):
Whether the grant is for the connections of the middleware alone, e.g. the grant of a deputy for the copy of a sent mail. Such a grant is only given if the request carries the ticket of the login.
falsefor grants that let the acting user open the mailbox with any client, such as a shared account permission.
-
source
(
string
):
What the grant originates from, e.g.
204:
There is no grant, which includes mail logins that cannot be resolved, a user's own mailbox, and a grant for the middleware alone that is asked for without the valid ticket of the login. Deliberately not
404, which is what a middleware version without this end-point answers.400:
A mail login was missing.
401:
Not authorized
500:
A mail login could not be resolved, or the grant could not be determined, due to an internal error.
503:
The mail login resolver required for resolving is not available or is disabled.
Examples:
Example: Get the grant of a user for the mailbox of a shared accountGET http://localhost:8009/preliminary/mail/acting/v1/grant?actingUserLogin=jane.doe@example.com&mailboxLogin=team@example.com -
-
Health check for the JMAP-IMAP proxy. Applies the HTTP Basic-Auth, TLS and source-IP checks of
/preliminary/mail/v1/validate-session/{session}, but needs no session, session secret or encryption key, and is not rate limited. A session identifiertesttherefore cannot be validated.Security:
This security scheme must be used:Name Scopes basicAuth
Responses:
200:
All checks passed.
Content-type: application/json-
Unknown
{-
status
(
string
):
Always
ok.
-
status
(
string
):
Always
401:
The HTTP Basic-Auth credentials are missing or invalid. The response has no body.
403:
The end-point requires TLS but the request is not secure (
MAIL_REST-0004), or the source IP is not allow-listed (MAIL_REST-0005); the response body is the standard OX error JSON. Without a body if the cluster-internal REST credentials are not configured. -
-
Cluster-internal endpoint consumed exclusively by the JMAP-IMAP proxy. The endpoint is gated by two independent authentication layers:
Service layer — HTTP Basic-Auth against the cluster-internal REST credentials (com.openexchange.rest.services.basic-auth.login/.password) identifies the caller as the JMAP-IMAP proxy.
User layer — the proxy must forward the value of the user'sopen-xchange-secret-<hash>cookie via theX-OX-Session-Secretheader. The Middleware compares it against the session's stored secret so that a service holding only the cluster-internal credentials cannot resolve arbitrary session identifiers.
The session is resolved in a touch-free manner; repeated polling does not reset the session's idle expiration counter.
Envelope — the success response is not returned in plain but wrapped as{"v":1,"envelope":"v1:<base64-iv>:<base64-ciphertext-with-tag>"}, encrypted with AES-256-GCM under the key derived fromcom.openexchange.mail.rest.encryption.key. The caller's Basic-Auth login (the trimmed value ofcom.openexchange.rest.services.basic-auth.login, UTF-8 bytes) is bound into the GCM tag as Associated Authenticated Data; the proxy must pass the identical bytes when decrypting. The decrypted plaintext is the JSON document described by theMailValidateSessionResponseschema.Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type session (empty) The Middleware session identifier.
path string X-OX-Session-Secret (empty) The plain value of the user's
open-xchange-secret-<hash>cookie, forwarded by the proxy from the originating client request.header string Responses:
200:
Validation succeeded. The response body is the envelope holding the encrypted IMAP backend coordinates plus the credentials the proxy must use.
Content-type: application/json-
MailValidateSessionEnvelope
{-
v
(
integer
,
required
):
The envelope format version, always
1. -
envelope
(
string
,
required
):
v1:<base64-iv>:<base64-ciphertext-with-tag>, the AES-256-GCM encryptedMailValidateSessionResponsedocument.
-
v
(
integer
,
required
):
The envelope format version, always
401:
The HTTP Basic-Auth credentials are missing or invalid; the response then has no body and carries a
WWW-Authenticateheader. Or the session is unknown/expired, the user's OAuth access token has expired, or theX-OX-Session-Secretheader is missing, oversized or mismatches the session's stored secret; the response body is then the standard OX error JSON with codeSES-0203so the proxy can forward it unchanged to the originating client. After five mismatches of the same session within ten minutes the session is removed.403:
The user has no primary mail account configured or the primary account is disabled (code
MAIL-0114), the endpoint requires TLS but the request is not secure (MAIL_REST-0004), or the source IP is not allow-listed (MAIL_REST-0005). The response body is the standard OX error JSON. Without a body if the cluster-internal REST credentials are not configured.429:
The caller exceeded the per-minute rate limit. The response has no body.
500:
Unexpected error, or no authenticated caller identity is available on the server side (
MAIL_REST-0009). The latter indicates a Middleware misconfiguration and must not be treated as an expired session.503:
The encryption key is not configured or invalid (
MAIL_REST-0006/MAIL_REST-0007), or a required service is unavailable. -
-
Looks up the session without touching it. An unknown session id yields an empty JSON object.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type session (empty) The session id
path string Responses:
200:
A JSON object containing informations about the session, or an empty JSON object if no such session exists.
Content-type: application/json-
Unknown - A json object containing informations about the session.
{- context ( integer ): The context id.
- user ( integer ): The user id.
- guest ( boolean ): Whether the session belongs to a guest user or not.
- cryptoSessionId ( string ): The session value the cryptographic service (Guard) uses to identify the session. Only present if a cryptographic service is available and it yields a value for the session.
401:
Missing or invalid HTTP Basic authentication credentials.
403:
The REST API Basic authentication credentials are not configured on the server.
500:
In case of internal server error that might have multiple reasons. The error message is sent as the HTTP reason phrase, without a response body.
Examples:
Example: Resolve sessionGET http://localhost:8009/preliminary/session/v1/get/1234567890 -
-
Gets the dynamically evaluated effective permissions and capabilities a user has for a specific shared account. Instead of their explicit internal identifiers, both the user and the shared account are referenced either by their email address (resolved through the registered mail resolver service) or by their mail login string (resolved through the registered mail login resolver service). For both the user and the shared account, exactly one of the respective two query parameters must be supplied.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type userEmail (empty) The email address of the user. Mutually exclusive with 'userMailLogin'.
query string userMailLogin (empty) The mail login string of the user. Mutually exclusive with 'userEmail'.
query string accountEmail (empty) The email address of the shared account. Mutually exclusive with 'accountMailLogin'.
query string accountMailLogin (empty) The mail login string of the shared account. Mutually exclusive with 'accountEmail'.
query string Responses:
200:
A JSON object holding the effective shared account information.
Content-type: application/json-
SharedAccount - The effective access a user has for a shared account, including the dynamically evaluated permissions and capabilities.
{- accountId ( string ): The identifier of the shared account, in the format [user-id]@[context-id].
- entityInfo ( entityInfo ): Basic information about the entity behind the shared account.
- capabilities ( array[string] ): The effective capabilities the user has for the shared account.
- moduleConfigurations ( moduleConfigurations ): The effective module-specific configuration, keyed by module identifier ("mail", "calendar" or "contacts").
-
entityInfo - Basic information about the entity behind the shared account.
{- identifier ( string ): The identifier of the shared account entity.
- type ( string ): The type of the entity, e.g. "user".
- display_name ( string ): The display name of the entity.
- entity ( integer ): The numerical user identifier of the entity, only set if the entity resides in the same context as the requested user.
- contact ( contact ): Additional contact data of the entity.
-
contact - Additional contact data of the entity.
{- title ( string ): No description available
- first_name ( string ): No description available
- last_name ( string ): No description available
- email1 ( string ): No description available
- image1_url ( string ): No description available
400:
A user or shared account identifier was missing, or both identifiers were supplied at once.
401:
Not authorized
404:
The supplied email address or mail login could not be resolved, shared accounts are not enabled for the user, or the user has no access to the requested shared account.
500:
Internal server error, e.g. a required service is unavailable. The response has no body.
503:
The mail resolver service required for resolving an email address is not available, or the mail login resolver service required for resolving a mail login is not available or disabled.
Examples:
Example: Get the effective access of a user for a shared account, both referenced by email addressGET http://localhost:8009/preliminary/sharedaccounts/v1/account?userEmail=jane.doe@example.com&accountEmail=team@example.com -
-
Lists all shared accounts a user is able to access, along with the dynamically evaluated effective permissions and capabilities for each of them. Instead of his explicit internal identifiers, the user is referenced either by his email address (resolved through the registered mail resolver service) or by his mail login string (resolved through the registered mail login resolver service). Exactly one of the two query parameters must be supplied.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type userEmail (empty) The email address of the user. Mutually exclusive with 'userMailLogin'.
query string userMailLogin (empty) The mail login string of the user. Mutually exclusive with 'userEmail'.
query string Responses:
200:
A JSON array holding the effective shared account information. The array is empty if shared accounts are not enabled for the user.
Content-type: application/json-
SharedAccount - The effective access a user has for a shared account, including the dynamically evaluated permissions and capabilities.
{- accountId ( string ): The identifier of the shared account, in the format [user-id]@[context-id].
- entityInfo ( entityInfo ): Basic information about the entity behind the shared account.
- capabilities ( array[string] ): The effective capabilities the user has for the shared account.
- moduleConfigurations ( moduleConfigurations ): The effective module-specific configuration, keyed by module identifier ("mail", "calendar" or "contacts").
-
entityInfo - Basic information about the entity behind the shared account.
{- identifier ( string ): The identifier of the shared account entity.
- type ( string ): The type of the entity, e.g. "user".
- display_name ( string ): The display name of the entity.
- entity ( integer ): The numerical user identifier of the entity, only set if the entity resides in the same context as the requested user.
- contact ( contact ): Additional contact data of the entity.
-
contact - Additional contact data of the entity.
{- title ( string ): No description available
- first_name ( string ): No description available
- last_name ( string ): No description available
- email1 ( string ): No description available
- image1_url ( string ): No description available
400:
No user identifier was supplied, or both identifiers were supplied at once.
401:
Not authorized
404:
The supplied email address or mail login could not be resolved to a user.
500:
Internal server error, e.g. a required service is unavailable. The response has no body.
503:
The mail resolver service required for resolving an email address is not available, or the mail login resolver service required for resolving a mail login is not available or disabled.
Examples:
Example: List the shared accounts accessible by a user referenced by email addressGET http://localhost:8009/preliminary/sharedaccounts/v1/accounts?userEmail=jane.doe@example.com -
-
Lists all shared accounts a user is able to access, along with the dynamically evaluated effective permissions and capabilities for each of them. The user is referenced by his explicit internal identifiers.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the context the user belongs to
path integer user (empty) The identifier of the user to evaluate the accessible shared accounts for
path integer Responses:
200:
A JSON array holding the effective shared account information. The array is empty if shared accounts are not enabled for the user.
Content-type: application/json-
SharedAccount - The effective access a user has for a shared account, including the dynamically evaluated permissions and capabilities.
{- accountId ( string ): The identifier of the shared account, in the format [user-id]@[context-id].
- entityInfo ( entityInfo ): Basic information about the entity behind the shared account.
- capabilities ( array[string] ): The effective capabilities the user has for the shared account.
- moduleConfigurations ( moduleConfigurations ): The effective module-specific configuration, keyed by module identifier ("mail", "calendar" or "contacts").
-
entityInfo - Basic information about the entity behind the shared account.
{- identifier ( string ): The identifier of the shared account entity.
- type ( string ): The type of the entity, e.g. "user".
- display_name ( string ): The display name of the entity.
- entity ( integer ): The numerical user identifier of the entity, only set if the entity resides in the same context as the requested user.
- contact ( contact ): Additional contact data of the entity.
-
contact - Additional contact data of the entity.
{- title ( string ): No description available
- first_name ( string ): No description available
- last_name ( string ): No description available
- email1 ( string ): No description available
- image1_url ( string ): No description available
401:
Not authorized
404:
The referenced context or user does not exist. Only checked if shared accounts are enabled for the user.
500:
Internal server error, e.g. a required service is unavailable. The response has no body.
Examples:
Example: List the shared accounts accessible by a userGET http://localhost:8009/preliminary/sharedaccounts/v1/1/3 -
-
Gets the dynamically evaluated effective permissions and capabilities a user has for a specific shared account. Both the user and the shared account are referenced by their explicit internal identifiers.
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context (empty) The identifier of the context the user belongs to
path integer user (empty) The identifier of the user to evaluate the shared account access for
path integer accountId (empty) The identifier of the shared account, in the format [user-id]@[context-id].
path string Responses:
200:
A JSON object holding the effective shared account information.
Content-type: application/json-
SharedAccount - The effective access a user has for a shared account, including the dynamically evaluated permissions and capabilities.
{- accountId ( string ): The identifier of the shared account, in the format [user-id]@[context-id].
- entityInfo ( entityInfo ): Basic information about the entity behind the shared account.
- capabilities ( array[string] ): The effective capabilities the user has for the shared account.
- moduleConfigurations ( moduleConfigurations ): The effective module-specific configuration, keyed by module identifier ("mail", "calendar" or "contacts").
-
entityInfo - Basic information about the entity behind the shared account.
{- identifier ( string ): The identifier of the shared account entity.
- type ( string ): The type of the entity, e.g. "user".
- display_name ( string ): The display name of the entity.
- entity ( integer ): The numerical user identifier of the entity, only set if the entity resides in the same context as the requested user.
- contact ( contact ): Additional contact data of the entity.
-
contact - Additional contact data of the entity.
{- title ( string ): No description available
- first_name ( string ): No description available
- last_name ( string ): No description available
- email1 ( string ): No description available
- image1_url ( string ): No description available
400:
The supplied shared account identifier is malformed, i.e. it does not contain an '@' after the user id.
401:
Not authorized
404:
The referenced context or user does not exist, shared accounts are not enabled for the user, or the user has no access to the requested shared account.
500:
Internal server error, e.g. a required service is unavailable. The response has no body.
Examples:
Example: Get the effective access of a user for a specific shared accountGET http://localhost:8009/preliminary/sharedaccounts/v1/1/3/5@1 -
-
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type mail (empty) The mail addresses as a semicolon-separated list. Duplicate addresses are resolved once.
path string Responses:
200:
A JSON object with one entry per mail address that could be resolved, keyed by the address. Each entry names the user id and context id of the resolved user plus additional information, and tells whether the address is ambiguous, i.e. belongs to more users than the one named. Addresses that cannot be resolved have no entry.
Content-type: application/json-
Unknown
{
401:
Not authorized
403:
The REST API Basic Auth credentials are not configured on the server.
500:
In case of internal server error that might have multiple reasons, e.g. a required service is unavailable. The error message is set as the HTTP reason phrase.
Examples:
Example: Resolve addressesGET http://localhost:8009/preliminary/utilities/mailResolver/v1/resolve/anton@context1.ox.test;berta@context1.ox.test -
-
-
Properties
This module contains property related operations-
Responses:
200:
A JSON object containing the property defaults
500:
Internal server error
-
-
Push
The push module-
The pushed mail is processed asynchronously, so a successful response only confirms that the payload was accepted, not that the contained iMIP message was applied.
Body:
Description:JSONObject containing the push mail
Content-type: application/json-
PushMail
{-
event
(
string
, possibleValues:
messageNew
-
user
(
string
):
The user identifier in the format
@ , @ or the user's mail login, depending on the configured com.openexchange.calendar.pushedIMipResolveMode. Not evaluated in the default mode 'RECIPIENTONLY', which resolves the user from the mail's 'To' header. - folder ( string , required ): The folder id
- body ( string , required ): The RFC822 Mail body
-
event
(
string
, possibleValues:
Responses:
200:
Empty response.
400:
The 'folder' or 'body' field is missing, or the 'event' field is set to a value other than 'messageNew'.
401:
Not authorized
500:
In case of internal server error that might have multiple reasons. The response has no body.
-
-
-
Segmenter
This module contains endpoints for the segmenter-
Notifies the server about changed site availabilities. Only the entries for the local site are considered. If the local site was absent or unavailable (availability < 1.0) in
previousAvailabilitiesand is present and available (availability >= 1.0) innewAvailabilities, the "site changed" event is handled and propagated in the cluster; otherwise nothing is done.Security:
This security scheme must be used:Name Scopes basicAuth
Body:
Description:Notify about site changes
Content-type: application/json-
SiteAvailabilityUpdates
{- previousAvailabilities ( array[object] ): Previous availabilities of sites. A missing array is treated like an empty one.
- newAvailabilities ( array[object] ): New availabilities of sites. A missing array is treated like an empty one.
Responses:
200:
Indicating relevant site changes were submitted and locally applied.
Content-type: application/json
304:
Indicating irrelevant site changes were submitted and no action was performed.
400:
Bad request. The body is missing (plain text error message) or invalid (JSON error object).
401:
Not authorized
403:
Forbidden. The Basic-Auth credentials for the REST API are not configured (properties `com.openexchange.rest.services.basic-auth.login` and `com.openexchange.rest.services.basic-auth.password`).
409:
Conflict. Site change is already or has just been handled.
500:
Internal server error that might have multiple reasons. Response contains error message.
503:
Service Unavailable, if the server sheds requests due to overload.
-
-
-
Userfeedback
The user feedback module-
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-group (empty) The context group identifying the global DB where the feedback is stored.
path string type (empty) The feedback type to export.
path string start (empty) Start time in milliseconds since 1970-01-01 00:00:00 UTC. Only feedback given after this time is exported. If not set or 0, all feedback up to `end` is exported.
query long end (empty) End time in milliseconds since 1970-01-01 00:00:00 UTC. Only feedback given before this time is exported. If not set or 0, all feedback since `start` is exported.
query long delimiter (empty) The column delimiter. Only its first character is used. Default: `;`
query string Responses:
200:
The feedback as UTF-8 CSV with a byte order mark and a header line. The response carries `Content-Type: text/csv`.
Content-type: application/octet-stream-
Unknown
400:
Bad request: `start` or `end` is negative, or `end` is before `start`. Response contains a JSON error object sent as `application/json`.
Content-type: application/octet-stream-
Unknown
401:
Not authorized
404:
Not found, if path is wrong (unknown context group or feedback type). Response contains a JSON error object sent as `application/json`.
Content-type: application/octet-stream-
Unknown
500:
No global database is configured. Response contains a JSON error object sent as `application/json`.
Content-type: application/octet-stream-
Unknown
Examples:
Example: Export user feedback from 2016-01-01 to 2016-12-31 as CSVGET http://localhost:8009/userfeedback/v1/export/default/star-rating-v1?start=1451606400000&end=1483228799000 -
-
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-group (empty) The context group identifying the global DB where the feedback is stored.
path string type (empty) The feedback type to export.
path string start (empty) Start time in milliseconds since 1970-01-01 00:00:00 UTC. Only feedback given after this time is exported. If not set or 0, all feedback up to `end` is exported.
query long end (empty) End time in milliseconds since 1970-01-01 00:00:00 UTC. Only feedback given before this time is exported. If not set or 0, all feedback since `start` is exported.
query long Responses:
200:
A JSON array of the stored feedback objects. Their fields depend on the feedback type.
Content-type: application/json
400:
Bad request: `start` or `end` is negative, or `end` is before `start`. Response contains a JSON error object.
Content-type: application/json-
Unknown
{
401:
Not authorized
404:
Not found, if path is wrong (unknown context group or feedback type). Response contains a JSON error object.
Content-type: application/json-
Unknown
{
500:
No global database is configured. Response contains a JSON error object.
Content-type: application/json-
Unknown
{
Examples:
Example: Export user feedback from 2016-01-01 to 2016-12-31GET http://localhost:8009/userfeedback/v1/export/default/star-rating-v1/raw?start=1451606400000&end=1483228799000 -
-
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-group (empty) The context group identifying the global DB where the feedback is stored.
path string type (empty) The feedback type to send.
path string start (empty) Start time in milliseconds since 1970-01-01 00:00:00 UTC. Only feedback given after this time is sent. If not set or 0, all feedback up to `end` is sent.
query long end (empty) End time in milliseconds since 1970-01-01 00:00:00 UTC. Only feedback given before this time is sent. If not set or 0, all feedback since `start` is sent.
query long Body:
Description:JSON object with the optional fields "subject" for a custom mail subject (default "User Feedback Report", followed by the time range if set), "body" for a custom mail body (default empty), boolean "compress" to compress the CSV attachment (default false), and the required "recipients", a JSON array with one object per recipient containing the required "address" and the optional "displayName" and "pgp_key".
Content-type: application/json-
Unknown
{
Responses:
200:
The mails were sent. The body is a JSON object sent as `text/plain`. It lists the recipient addresses per delivery in the arrays `normal` (plain), `sign` (signed), `encrypt` (encrypted) and `pgp` (signed and encrypted), the rejected addresses in `fail` and the addresses whose PGP key could not be used in `pgpFail`.
Content-type: text/plain-
Unknown
400:
Bad request: `start` or `end` is negative, `end` is before `start`, or no recipient address is valid (JSON error object, `application/json`); or the request body is no valid JSON or lacks `recipients` or a recipient's `address` (parser message, `text/plain`).
Content-type: application/json-
Unknown
{
Content-type: text/plain-
Unknown
401:
Not authorized
404:
Not found, if path is wrong (unknown context group or feedback type), and any other error not listed here. Response contains a JSON error object.
Content-type: application/json-
Unknown
{
500:
No global database is configured, or the SMTP or PGP signing configuration is invalid. Response contains a JSON error object.
Content-type: application/json-
Unknown
{
Examples:
Example: Export user feedback from 2016-01-01 to 2016-12-31 and send it via mail to user1@example.org and user2@example.orgPOST http://localhost:8009/userfeedback/v1/send/default/star-rating-v1?start=1451606400000&end=1483228799000 {"subject":"User Feedback", "body":"User Feedback", "compress":true, "recipients": [ {"address":"user1@example.org", "displayName":"User 1", "pgp_key":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nVersion: BCPG v1.56...."}, {"address":"user2@example.org", "displayName":"User 2", "pgp_key":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nVersion: BCPG v1.56...."} ] } -
-
Security:
This security scheme must be used:Name Scopes basicAuth
Parameters:
Parameter Value Description Parameter Type Data Type context-group (empty) The context group identifying the global DB where the feedback is stored.
path string type (empty) The feedback type to delete.
path string start (empty) Start time in milliseconds since 1970-01-01 00:00:00 UTC. Only feedback given after this time is deleted. If not set or 0, all feedback up to `end` is deleted.
query long end (empty) End time in milliseconds since 1970-01-01 00:00:00 UTC. Only feedback given before this time is deleted. If not set or 0, all feedback since `start` is deleted.
query long Responses:
200:
The feedback was deleted.
Content-type: application/json-
UserFeedbackDeleteResponse
{- successful ( string ): Always the string `true`.
- type ( string ): The feedback type the feedback was deleted for.
- contextGroup ( string ): The context group the feedback was deleted from.
- start ( integer ): The `start` parameter. Only present if it was set.
- end ( integer ): The `end` parameter. Only present if it was set.
400:
Bad request: `start` or `end` is negative, or `end` is before `start`. Response contains a JSON error object.
Content-type: application/json-
Unknown
{
401:
Not authorized
404:
Not found, if path is wrong (unknown context group or feedback type). Response contains a JSON error object.
Content-type: application/json-
Unknown
{
500:
No global database is configured. Response contains a JSON error object.
Content-type: application/json-
Unknown
{
Examples:
Example: Delete user feedback from 2016-01-01 to 2016-12-31DELETE http://localhost:8009/userfeedback/v1/default/star-rating-v1?start=1451606400000&end=1483228799000 -
-