Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Login

post

Sends to the employee a new company code

Authorizations
Body
tokenstringOptional
commentstringOptional
Responses
200

OK

No content

post/api/v1/employee/unsubscribe
POST /api/v1/employee/unsubscribe HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "token": "text",
  "comment": "text"
}
200

OK

No content

post

Disassociates a session from the employee, usually called from a device on 'logout' flow

Authorizations
Responses
200

OK

No content

post/api/v1/employee/unregister
POST /api/v1/employee/unregister HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

No content

post

Sends to the employee an access link

Authorizations
Responses
200

OK

No content

post/api/v1/employee/sendAccessLink
POST /api/v1/employee/sendAccessLink HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

No content

post

Sends to the employee a new company code

Authorizations
Path parameters
emailstringRequired
Responses
200

OK

No content

post/api/v1/employee/resend/{email}
POST /api/v1/employee/resend/{email} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

No content

post

Sends to the employee a new company code

Authorizations
Responses
200

OK

No content

post/api/v1/employee/remind
POST /api/v1/employee/remind HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

No content

post

Register the employee with a company code for a device

Authorizations
Body
devicePlatformstring · enumOptional

Platform or channel where the client runs (iOS, Android, Web, Slack, etc.)

Possible values:
Responses
200

OK

application/json
sessionTokenstringOptional
post/api/v1/employee/register
POST /api/v1/employee/register HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "devicePlatform": "IOS"
}
200

OK

{
  "sessionToken": "text",
  "companyConfig": {
    "alertDays": [
      1
    ],
    "alertHour": 1,
    "alertMinute": 1,
    "enabledEmployeeFeatures": 1,
    "indexTerminology": "HAPPINESS"
  }
}
post

Sends a live updateTopic of employee info and gets the Employee data

Authorizations
Body
timeZonestringOptional
languagestringOptional
countrystringOptional
appVersionstringOptional
Responses
200

OK

application/json
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
companyIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
companyNamestringOptional
companyTimeZonestringOptional
appStylestringOptional
hierarchyIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
hierarchyNamestringOptional
configCompletedbooleanOptional
requireVotebooleanOptional
pendingAnnouncementsbooleanOptional
pendingFeedbackbooleanOptional
pendingConversationsbooleanOptional

Whether the user has pending conversations to show on login (open, with the last message from the company side, not the employee's own). When true, fetch the list from GET /v1/employee/conversations/{employeeId}/pending.

conversationsDisplayMomentstring · enumOptional

When pendingConversations is true, whether the on-login conversations list should be shown BEFORE_VOTE or AFTER_VOTE. Null when the on-login conversations feature is disabled.

Possible values:
requireFirstTimeCommentFilterbooleanOptional
namestringOptional
profileImagePathstringOptional
rolestring · enumOptionalPossible values:
debugbooleanOptional
canResetProfilebooleanOptional
canManagebooleanOptional
canBlockUsersbooleanOptional
hasHFMebooleanOptionalDeprecated
canHFMebooleanOptional
canRegisterTimebooleanOptional
hfMeActivatedbooleanOptional
canUseHerobooleanOptional
rewardsEnabledbooleanOptional
podiumEnabledbooleanOptional

Whether the monthly rewards podium is enabled (rewards enabled AND the podium turned on). Gates the podium tab independently of the rest of the rewards UI.

canManageHierarchybooleanOptional
externalIdstringOptional
votingFlowstring · enumOptionalPossible values:
indexTerminologystring · enumOptional

Vocabulary a company uses for its engagement index. HAPPINESS keeps the historical "Happiness Index" wording (default for existing companies); WELLBEING shows the "Wellbeing Index" wording. Presentation only — it does not change how the index is computed.

Possible values:
post/api/v1/employee/login
POST /api/v1/employee/login HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 74

{
  "timeZone": "text",
  "language": "text",
  "country": "text",
  "appVersion": "text"
}
200

OK

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "companyId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "companyName": "text",
  "companyTimeZone": "text",
  "appStyle": "text",
  "hierarchyId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "hierarchyName": "text",
  "configCompleted": true,
  "requireVote": true,
  "pendingAnnouncements": true,
  "pendingFeedback": true,
  "pendingConversations": true,
  "conversationsDisplayMoment": "BEFORE_VOTE",
  "requireFirstTimeCommentFilter": true,
  "name": "text",
  "profileImagePath": "text",
  "role": "ADVISOR",
  "debug": true,
  "canResetProfile": true,
  "canManage": true,
  "canBlockUsers": true,
  "canHFMe": true,
  "canRegisterTime": true,
  "hfMeActivated": true,
  "canUseHero": true,
  "rewardsEnabled": true,
  "podiumEnabled": true,
  "canManageHierarchy": true,
  "externalId": "text",
  "votingFlow": "QUESTIONS",
  "indexTerminology": "HAPPINESS"
}
post

Allows employees to self invite

Authorizations
Path parameters
emailstringRequired
Body
autoInviteTokenstringOptional
Responses
200

OK

No content

post/api/v1/employee/invitation/{email}
POST /api/v1/employee/invitation/{email} HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 26

{
  "autoInviteToken": "text"
}
200

OK

No content

post

Checks if the following mail exists on Happyforce

Authorizations
Path parameters
emailOrIdstringRequired
Body
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
emailstringOptional
keystringOptional
Responses
200

OK

application/json
validbooleanOptional
accountLockedbooleanOptional
companyBlockedbooleanOptional
userTypestring · enumOptional

Type of user in the system, either an employee or a company user (admin, manager, etc).

Possible values:
post/api/v1/employee/check/{emailOrId}
POST /api/v1/employee/check/{emailOrId} HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 61

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "email": "text",
  "key": "text"
}
200

OK

{
  "valid": true,
  "accountLocked": true,
  "companyBlocked": true,
  "userType": "EMPLOYEE"
}
get

Get's some info of a company for a given token

Authorizations
Path parameters
tokenstringRequired
Responses
200

OK

application/json

Company info: name and image path.

companyNamestringOptional

Company name

companyImagePathstringOptional

URL or path to the company image

get/api/v1/employee/invitation/info/{token}
GET /api/v1/employee/invitation/info/{token} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

{
  "companyName": "text",
  "companyImagePath": "text"
}
get

Get's some info of a company for a given token

Authorizations
Path parameters
idstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

application/json
emailstringOptional
companyNamestringOptional
companyIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
sessionTokenstringOptional
languagestringOptional
get/api/v1/employee/employee/info/{id}
GET /api/v1/employee/employee/info/{id} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

{
  "email": "text",
  "companyName": "text",
  "companyId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "sessionToken": "text",
  "language": "text"
}

Last updated