Download OpenAPI specification:Download
Documentation of the Open-Xchange Cloud-Plugins Rest APIs.
get custom name of user
contextid required | number context id |
userid required | number user id |
Success
Authorization error
User does not exist or custom id not found in user
{- "custom": [
- "custom1",
- "custom2"
]
}
change user data
contextid required | number context id |
userid required | number user id |
put parameters
custom | string 1 items |
Settings successfully updated
Generic error, e.g. wrong parameters
Authorization error
User does not exist
{- "custom": "string"
}
{- "context-id": 24,
- "user-id": 42,
- "uidname": "johndoe@example.com",
- "msisdn": "+49.12345.6789"
}
change user data
contextid required | number context id |
userid required | number user id |
Settings successfully updated
Authorization error
User does not exist
{- "context-id": 24,
- "user-id": 42,
- "uidname": "johndoe@example.com",
- "msisdn": "+49.12345.6789"
}
get msisdn of user
contextid required | number context id |
userid required | number user id |
Success
Authorization error
User does not exist or msisdn not set for user
{- "msisdn": "+49.12345.6789"
}
change user data
contextid required | number context id |
userid required | number user id |
put parameters
msisdn | string 1 items |
Settings successfully updated
Generic error, e.g. wrong parameters
Authorization error
User does not exist
{- "msisdn": "string"
}
{- "context-id": 24,
- "user-id": 42,
- "uidname": "johndoe@example.com",
- "msisdn": "+49.12345.6789"
}
change user data
contextid required | number context id |
userid required | number user id |
Settings successfully updated
Authorization error
User does not exist
{- "context-id": 24,
- "user-id": 42,
- "uidname": "johndoe@example.com",
- "msisdn": "+49.12345.6789"
}
get uidname of user
search required | string string to search for |
field | string Enum: "UIDNAME" "MSISDN" "CUSTOM" "ANY" field to search into |
Success
Generic error, e.g. wrong parameters
Authorization error
User not found
{- "context-id": 24,
- "user-id": 42,
- "uidname": "johndoe@example.com",
- "msisdn": "+49.12345.6789"
}
get uidname of user
contextid required | number context id |
userid required | number user id |
Success
Authorization error
User does not exist
{- "uidname": "johndoe@example.com"
}
change user data
contextid required | number context id |
userid required | number user id |
put parameters
uidname | string 1 items |
Settings successfully updated
Generic error, e.g. wrong parameters
Authorization error
User does not exist
User does already exist
{- "uidname": "string"
}
{- "context-id": 24,
- "user-id": 42,
- "uidname": "johndoe@example.com",
- "msisdn": "+49.12345.6789"
}
change user data
contextid required | number context id |
userid required | number user id |
post parameters
msisdn | string >= 0 items |
custom | Array of strings >= 0 items |
Settings successfully updated
At least one setting has been created
Generic error, e.g. wrong parameters
Authorization error
User does not exist
{- "msisdn": "+49.12345.6789",
- "custom": [
- "id 1",
- "id 2"
]
}
{- "context-id": 24,
- "user-id": 42,
- "uidname": "johndoe@example.com",
- "msisdn": "+49.12345.6789"
}
get whole config of the user
contextid required | number context id |
userid required | number user id |
Success
Authorization error
User does not exist
{- "userconfig": [
- {
- "name": "com.openexchange.first.config",
- "scope": "server",
- "value": "true"
}, - {
- "name": "com.openexchange.second.config",
- "scope": "user",
- "value": "false"
}
]
}
get whole config of the user
contextid required | number context id |
userid required | number user id |
searchpattern required | string Search Pattern to filter the list of returned configurations |
Success
Authorization error
User does not exist
{- "userconfig": [
- {
- "name": "com.openexchange.filtered.config.1",
- "scope": "server",
- "value": "true"
}, - {
- "name": "com.openexchange.filtered.config.2",
- "scope": "user",
- "value": "false"
}
]
}
get the forwarding Alias
contextId required | string context id or context name |
alias required | string alias mail address |
Success
Authorization error
Forwarding alias does not exist or context not found
[- "recipient1@example.com"
]
create the forwarding Alias
contextId required | string context id or context name |
alias required | string alias mail address |
post parameters
recipient | string 1 items |
Success
if already exists (without making any changes to the recipients)
Authorization error
Context not found
{- "recipient": "recipient@example.com"
}
null
update the forwarding Alias
contextId required | string context id or context name |
alias required | string alias mail address |
post parameters
recipient | string 1 items |
Success
if already exists (without making any changes to the recipients)
if there is a value present for the forwarding recipient
Authorization error
Forwarding alias does not exist or context not found
{- "recipient": "recipient@example.com"
}
null
delete the forwarding Alias
contextId required | string context id or context name |
alias required | string alias mail address |
Success
Authorization error
Forwarding alias does not exist or context not found
null
check if the alias exists
contextId required | string context id or context name |
alias required | string alias mail address |
Alias exists
Authorization error
Forwarding alias does not exist or context not found
null
get the forwarding Aliases in a Context
contextId required | string context id or context name |
Success
Authorization error
Context not found
{- "alias@example.com": [
- "recipient1@example.com"
], - "alias2@example.com": [
- "recipient2@example.com"
]
}
delete all forwarding Aliases in a context
contextId required | string context id or context name |
Success
Authorization error
Context not found
null
check if a recipient for an alias exists
contextId required | string context id or context name |
alias required | string alias mail address |
recipient required | string recipient mail address |
Alias exists
Authorization error
Forwarding alias does not exist or context not found
null
delete the recipient of an alias
contextId required | string context id or context name |
alias required | string alias mail address |
recipient required | string recipient mail address |
Success
Authorization error
Forwarding alias does not exist or context not found
null
get all data in one request
uid required | string user identifier |
Success
Authorization error
General Error
{- "recentmails": [
- {
- "id": "string",
- "subject": "string",
- "from": "string",
- "seen": true,
- "arrival": 0
}
], - "quota": {
- "mailQuota": {
- "usedQuota": 0,
- "maxQuota": 0
}
}, - "newmessages": {
- "newmessages": 0
}, - "recentmessages": {
- "newmessages": 0
}
}
get the number of new messages since last login
uid required | string user identifier |
Success
Authorization error
General Error
{- "newmessages": 0
}
get the current user quota
uid required | string user identifier |
Success
Authorization error
General Error
{- "mailQuota": {
- "usedQuota": 0,
- "maxQuota": 0
}
}
get 5 recent mails from user
uid required | string user identifier |
Success
Authorization error
General Error
[- {
- "id": "string",
- "subject": "string",
- "from": "string",
- "seen": true,
- "arrival": 0
}
]
get the number of unread mails in all folders
uid required | string user identifier |
Success
Authorization error
General Error
{- "newmessages": 0
}
get the unread message count from INBOX for user
uid required | string user identifier |
Success
Authorization error
General Error
{- "newmessages": 0
}
Check whether given domain exists in context
contextid required | number Id of context |
domain required | string Name of explicit domain |
Domain exists
Generic error, e.g. wrong parameters
Authorization error
Domain does not exist
{- "error": "Error message"
}
Create given domain in context
contextid required | number Id of context |
domain required | string Name of explicit domain |
Success
Generic error, e.g. wrong parameters
Authorization error
Domain could not be added
{- "domain": "example.com"
}
Remove given domain from context
contextid required | number Id of context |
domain required | string Name of explicit domain |
Success
Generic error, e.g. wrong parameters
Authorization error
Domain could not be removed
{- "error": "Error message"
}
List all explicit mail domains within given context
contextid required | number Id of context |
Success
Generic error, e.g. wrong parameters
Authorization error
{- "domains": [
- "example.com",
- "example.org"
]
}
Check whether given domain exists in brand
domain required | string Name of explicit domain |
Domain exists
Generic error, e.g. wrong parameters
Authorization error
Domain does not exist
{- "error": "Error message"
}
List all explicit mail domains owned by brand
Success
Generic error, e.g. wrong parameters
Authorization error
{- "domains": [
- "example.com",
- "example.org"
]
}
Retrieve all users with aliases using the given domain
domain required | string Domain name |
Success
Generic error, e.g. wrong parameters
Authorization error
{- "users": [
- {
- "context-id": 42,
- "uidname": "janedoe",
- "aliases": [
- "jane@example.com"
]
}
]
}
Get the blacklist for user
contextId required | number context id |
userid required | number user id |
Success
Authorization error
{- "blacklist": [
- "test@example.com",
- "test2@example.com",
- "@example.com"
]
}
Delete the blacklist for user
contextId required | number context id |
userid required | number user id |
Success
Authorization error
Get the filtered blacklist for user
contextId required | number context id |
userid required | number user id |
filter required | string the blacklist filter which can contain wildcard * |
Success
Authorization error
{- "blacklist": [
- "test@example.com",
- "test2@example.com",
- "@example.com"
]
}
Add blacklist entry for user
contextId required | number context id |
userid required | number user id |
value required | string entry to add |
Success
Authorization error
Delete blacklist entry for user
contextId required | number context id |
userid required | number user id |
value required | string entry to delete |
Success
Authorization error
Get the whitelist for user
contextId required | number context id |
userid required | number user id |
Success
Authorization error
{- "whitelist": [
- "test@example.com",
- "test2@example.com",
- "@example.com"
]
}
Delete the whitelist for user
contextId required | number context id |
userid required | number user id |
Success
Authorization error
Get the filtered whitelist for user
contextId required | number context id |
userid required | number user id |
filter required | string the whitelist filter which can contain wildcard * |
Success
Authorization error
{- "whitelist": [
- "test@example.com",
- "test2@example.com",
- "@example.com"
]
}
Add whitelist entry for user
contextId required | number context id |
userid required | number user id |
value required | string entry to add |
Success
Authorization error
Delete whitelist entry for user
contextId required | number context id |
userid required | number user id |
value required | string entry to delete |
Success
Authorization error
Send an "over quota" mail to user
usercontext required | string the user context and user id in the form "userid@contextid" |
the user quota threshold
quota_threshold | number |
Success
When quota threshold or usercontext are not provided
Authorization error
No acceptable variant
{- "quota_threshold": 1000
}
{- "mail": "the message content"
}
Send an "over quota" mail to user
usercontext required | string the user context and user id in the form "userid@contextid" |
the user quota threshold
quota_threshold | number |
Success
When quota threshold or usercontext are not provided
Authorization error
No acceptable variant
{- "quota_threshold": 1000
}
{- "mail": "the message content"
}
Send a "disabled send from sending spam" mail to user
usercontext required | string the user context and user id in the form "userid@contextid" |
Success
When usercontext is not provided
Authorization error
When the primary mail account cannot be found
General error
3@4 has no primary mail address
Send a "welcome" mail to user
usercontext required | string the user context and user id in the form "userid@contextid" |
Success
When usercontext is not provided
Authorization error
No acceptable variant
{- "mail": "the message content"
}