User Resource

A user is someone with a Speakap account, enrolled in at least one network and identified by a unique email address and other personal details.

Changelog

1.0.4
  • Added deleted property.
1.0.10
  • Added tourCompleted property.
1.0.13
  • Added lastModified property.
1.0.22
  • Added external property.
1.1.3
  • Added XID property.
  • Removed relationshipStatus property.
1.3.7
  • Added internal contactlabel.
  • Changed headerBackgroundUrl.
  • Added organizationGroups relation.

Endpoints

Representations

JSON Properties

NameTypeDescription
addressobjectHash of address parts
address.citystringCity
address.countryobjectTwo digit ISO 3166-1 country code
address.linesarrayList of (max 3) free format address lines
address.postalCodestringPostal code (free format)
adminConditionsAcceptedbooleanRead-only Whether or not the user accepted Terms & Conditions for network administrators
avatarThumbnailUrlURINetwork profile only File URL to profile picture thumbnail
birthdaystringDate of birth (ISO 8601 YYYY-MM-DD)
deletedbooleanSince 1.0.4 Read-only Whether this user has been deleted or not
EIDEIDUnique entity identifier
emailAddressesarrayList of alternative email addresses
externalbooleanSince 1.0.22 Read-only Whether this is an external user with limited privileges
fullNamestringRead-only Concatenated name parts
genderstring'female''male' or 'complicated'
headerBackgroundUrlURIFile URL to header background image. In API versions up to 1.3.6 this is the URL of a pre-scaled thumbnail. In versions 1.3.7 and higher this is the URL of the original file, which can be scaled by adding w and h query parameters as described here: Custom Thumbnails
jobTitlestringNetwork profile only Current job title
languagesarrayList of languages (ISO 639-1)
lastModifieddatetimeSince 1.0.4 Read-only Last time the user was modified
nameobjectFull name parts
name.firstNamestringFirst name
name.infixstringOptional infixes ('de''van der', 'von', etc.)
name.familyNamestringFamily or last name
preferredLanguagestringGlobal user only Preferred language in RFC 5646/4647 format (e.g. 'en-US' or 'nl-NL')
primaryEmailstringRead-only Primary email address
privacyStatementAcceptedbooleanRead-only Whether or not the user accepted Speakap's general Terms & Conditions
relationshipStatusstringUntil 1.1.3 Relationship status
telephoneNumbersarrayList of telephone numbers
tourCompletedbooleanSince 1.0.10 global user only Whether or not this user has completed the tour at least once
typestring"user"
XIDstringSince 1.1.3 Unique external identifier

Email address properties

NameTypeDescription
confirmedbooleanRead-only Whether the mail has been confirmed
labelstringLabel field
primarybooleanWhether the email is the primary email address (defaults to false)
valuestringActual email address

Telephone number properties

NameTypeDescription
iddCodestringValid international calling code (excl. international call prefix)
labelstring'home''work''private' or 'internal' (since 1.3.7)
valuestringActual telephone number (free format)
RelationResourceDescription
avatarmessageFile message containing the user's avatar
headerBackgroundmessageFile message containing the groups's header background
networknetworkNetwork
settingssettingsSettings (e.g., notification and privacy settings)
organizationGroupsgroupSince 1.3.7 Collection of groups with type business_unit or local_department the user is a member of.

Per-resource Metadata (read-only)

NameTypeResourceDescription
_membership.adminstringgroupSince 1.0.25 Whether this user is the admin of the requested group
_meta.commenteddatetimemessageSince 1.3.1 Date the requested message was commented on by this user
_meta.likeddatetimemessageSince 1.0.16 Date the requested message was liked by this user
_meta.readdatetimemessageSince 1.4.5 Date the requested news item was read by this user
_meta.rsvpstringmessageSince 1.5 RSVP response to the requested event by this user:

Example

{
    "_links": {
        "self": {
            "href": "/networks/fedcba0987654321/users/1234567890abcdef/"
        },
        "avatar": {
            "href": "/networks/fedcba0987654321/messages/abcdef0123456789/"
        }
    },
    "EID": "1234567890abcdef",
    "primaryEmail": "johndoe@gmail.com",
    "privacyStatementAccepted": true,
    "adminConditionsAccepted": false,
    "emailAddresses": [
        { "label": "Primary", "value": "johndoe@gmail.com", "primary": true },
        { "label": "Home", "value": "johndoe@hotmail.com" }
    ],
    "name": {
        "firstName": "John",
        "infix": "",
        "familyName": "Doe"
    },
    "fullName": "John Doe",
    "birthday": "1980-01-01",
    "gender": "male",
    "relationshipStatus": "single",
    "languages":[
        "nl",
        "en"
    ],
    "preferredLanguage": "en-US",
    "tourCompleted": true,
    "avatarThumbnailUrl": "http://vault.speakap.com/file/1234567890abcdef",
    "headerImageUrl": "http://vault.speakap.com/file/abcdef0123456789",
    "address": {
        "lines": [
            "Pedro de Medinalaan 5-9"
        ],
        "postalCode": "1086 XK",
        "city": "Amsterdam",
        "country": "NL"
    },
    "telephoneNumbers": [
        { "iddCode": "31", "label": "Primary", "value": "012-3456789" },
        { "iddCode": "0", "label": "Extension", "value": "1788" }
    ],
    "jobTitle": "Engineer",
    "deleted": false,
    "lastModified": "2014-11-04T14:17:38.123+01:00",
    "external": false
}