[ { "type": "get", "url": "/users/:id", "title": "Request User information", "name": "GetUser", "group": "Users", "header": { "fields": { "Header": [ { "group": "Header", "type": "String", "optional": false, "field": "X-Access-Token", "description": "
Optional access token if authentication is enabled
" } ] }, "examples": [ { "title": "Header-Example:", "content": "{\n \"X-Access-Token\": \"59fc66a03e54454869460e45\"\n}", "type": "json" } ] }, "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "id", "description": "Users unique ID.
" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Boolean", "optional": false, "field": "success", "description": "Indicates successful response
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "id", "description": "Users unique ID (24 byte hex)
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "username", "description": "Username of the User
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "name", "description": "Name of the User
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "address", "description": "Main email address of the User
" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "retention", "description": "Default retention time in ms. false
if not enabled
List of enabled 2FA methods
" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "encryptMessages", "description": "If true
then received messages are encrypted
If true
then forwarded messages are encrypted
Public PGP key for the User that is used for encryption
" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "keyInfo", "description": "Information about public key or false
if key is not available
Name listed in public key
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "keyInfo.address", "description": "E-mail address listed in public key
" }, { "group": "Success 200", "type": "String", "optional": false, "field": "keyInfo.fingerprint", "description": "Fingerprint of the public key
" }, { "group": "Success 200", "type": "String[]", "optional": false, "field": "forward", "description": "A list of email addresses to forward all incoming emails
" }, { "group": "Success 200", "type": "String[]", "optional": false, "field": "targetUrl", "description": "An URL to post all incoming emails
" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "limits", "description": "Account limits and usage
" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "limits.quota", "description": "Quota usage limits
" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "limits.quota.allowed", "description": "Allowed quota of the user in bytes
" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "limits.quota.used", "description": "Space used in bytes
" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "limits.recipients", "description": "Sending quota
" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "limits.recipients.allowed", "description": "How many messages per 24 hour can be sent
" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "limits.recipients.used", "description": "How many messages are sent during current 24 hour period
" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "limits.recipients.ttl", "description": "Time until the end of current 24 hour period
" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "limits.forwards", "description": "Forwarding quota
" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "limits.forwards.allowed", "description": "How many messages per 24 hour can be forwarded
" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "limits.forwards.used", "description": "How many messages are forwarded during current 24 hour period
" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "limits.forwards.ttl", "description": "Time until the end of current 24 hour period
" }, { "group": "Success 200", "type": "String[]", "optional": false, "field": "tags", "description": "List of tags associated with the User
" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "hasPasswordSet", "description": "If true
then the User has a password set and can authenticate
Is the account activated
" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "disabled", "description": "If true
then the user can not authenticate or receive any new mail
Description of the error
" } ] }, "examples": [ { "title": "Error-Response:", "content": "HTTP/1.1 200 OK\n{\n \"error\": \"This user does not exist\"\n}", "type": "json" } ] }, "examples": [ { "title": "Example usage:", "content": "curl -i http://localhost:8080/users/59fc66a03e54454869460e45", "type": "curl" } ], "version": "0.0.0", "filename": "lib/api/users.js", "groupTitle": "Users" } ]