Skip to main content

Zentry.Employers.Api v1.0

Base URLs:

Authentication

  • API Key (API_KEY)
    • Parameter Name: Api-Key Authentication, in: header.

Admin

AddUserRole

POST /Admin/role

Body parameter

{
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"role": "EmployeeAdmin",
"employerId": "686d3163ee1ffbbdb38b6a74"
}

Parameters

NameInTypeRequiredDescription
bodybodyAddUserRoleRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

RemoveUserRole

DELETE /Admin/role

Body parameter

{
"email": "johnsmit@zentrypass.com",
"role": "EmployeeAdmin",
"employerId": "686d3163ee1ffbbdb38b6a74"
}

Parameters

NameInTypeRequiredDescription
bodybodyRemoveUserRoleRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

GetUsersWithRole

GET /Admin/{tenantId}/role/{role}

Parameters

NameInTypeRequiredDescription
getUsersWithRoleRequestheaderGetUsersWithRoleRequestfalsenone
tenantIdpathstringtruenone
rolepathstringtruenone

Responses

StatusMeaningDescriptionSchema
200OKOKUserIPagedResponse

Application

CreateApplication

POST /Application/create

Body parameter

{
"name": "string",
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"description": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

GetApplications

POST /Application

Body parameter

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"ownerIds": [
"string"
],
"statuses": [
"Inquiry"
]
}

Parameters

NameInTypeRequiredDescription
bodybodyGetApplicationsRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplicationIPagedResponse

UpdateApplication

PUT /Application/{id}

Body parameter

{
"name": "string",
"description": "string",
"address": {
"line1": "11 N 4th St",
"line2": "APT 101",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
}
}

Parameters

NameInTypeRequiredDescription
idpathstringtruenone
bodybodyUpdateApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

ApproveApplicationInquiry

PUT /Application/approve-inquiry

Body parameter

{
"applicationId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyApproveApplicationInquiryRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

SubmitApplication

PUT /Application/submit

Body parameter

{
"applicationId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodySubmitApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

DenyApplication

PUT /Application/deny

Body parameter

{
"applicationId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyDenyApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

ApproveApplication

PUT /Application/approve

Body parameter

{
"applicationId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyApproveApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployer

SendApplicationReminder

POST /Application/remind

Body parameter

{
"applicationId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodySendApplicationReminderRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

Employee

CreateEmployee

POST /Employee/create

Body parameter

{
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"employerId": "686d3163ee1ffbbdb38b6a74",
"employerUserId": "[AN ID IN YOUR SYSTEM]"
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateEmployeeRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployee

GetEmployees

POST /Employee

Body parameter

{
"offset": 0,
"limit": 25,
"employerIds": [
"686d3163ee1ffbbdb38b6a74"
],
"userIds": [
"686d3163ee1ffbbdb38b6a74"
],
"employerUserIds": [
"AN ID IN YOUR SYSTEM"
],
"statuses": [
"Active"
]
}

Parameters

NameInTypeRequiredDescription
bodybodyGetEmployeesRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployeeIPagedResponse

UpdateEmployeeStatus

PUT /Employee/status

Body parameter

{
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"status": "Active"
}

Parameters

NameInTypeRequiredDescription
bodybodyUpdateEmployeeStatusRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployee

EmployeeInquiry

CreateEmployeeInquiry

POST /EmployeeInquiry/create

Body parameter

{
"companyName": "string",
"employeeName": "string",
"email": "string",
"title": "string",
"referralContact": {
"name": "string",
"email": "string"
}
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateEmployeeInquiryRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployeeInquiry

Employer

GetEmployers

POST /Employer

Body parameter

{
"offset": 0,
"limit": 25,
"employerIds": [
"string"
]
}

Parameters

NameInTypeRequiredDescription
bodybodyGetEmployersRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployerIPagedResponse

Schemas

AddUserRoleRequest

{
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"role": "EmployeeAdmin",
"employerId": "686d3163ee1ffbbdb38b6a74"
}

NameTypeRequiredRestrictionsDescription
contactContacttruenoneInformation about the employee
rolestringtruenoneThe name of the role to add
employerIdstringtruenoneZentry Pass Employer Id

Address

{
"line1": "11 N 4th St",
"line2": "APT 101",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
}

NameTypeRequiredRestrictionsDescription
line1string¦nullfalsenoneThe main address
line2string¦nullfalsenoneThe secondary address
statestring¦nullfalsenoneThe state
citystring¦nullfalsenoneThe city
zipCodestring¦nullfalsenoneThe zip code

Application

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"status": "Inquiry",
"name": "string",
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"description": "string",
"address": {
"line1": "11 N 4th St",
"line2": "APT 101",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
},
"ownerId": "string",
"ownerEmail": "string",
"employerId": "string"
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe unique identifier for this entity
dateCreatedstring(date-time)truenoneThe initial date this entity was created
dateUpdatedstring(date-time)truenoneThe last time this entity was updated
statusApplicationStatustruenonenone
namestringtruenonenone
contactContacttruenoneInformation about the employee
descriptionstringtruenonenone
addressAddressfalsenonenone
ownerIdstring¦nullfalsenonenone
ownerEmailstring¦nullfalsenonenone
employerIdstring¦nullfalsenonenone

ApplicationIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"status": "Inquiry",
"name": "string",
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"description": "string",
"address": {
"line1": "11 N 4th St",
"line2": "APT 101",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
},
"ownerId": "string",
"ownerEmail": "string",
"employerId": "string"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

NameTypeRequiredRestrictionsDescription
data[Application]trueread-onlyThe paged data
pagedRequestIPagedRequesttruenonenone
totalCountinteger(int32)trueread-onlyThe total number of items available

ApplicationQuery

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"ownerIds": [
"string"
],
"statuses": [
"Inquiry"
]
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
ids[string]¦nullfalsenonenone
ownerIds[string]¦nullfalsenonenone
statuses[ApplicationStatus]¦nullfalsenonenone

ApplicationStatus

"Inquiry"

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousInquiry
anonymousPending
anonymousSubmitted
anonymousApproved
anonymousDenied

ApproveApplicationInquiryRequest

{
"applicationId": "string"
}

NameTypeRequiredRestrictionsDescription
applicationIdstringtruenonenone

ApproveApplicationRequest

{
"applicationId": "string"
}

NameTypeRequiredRestrictionsDescription
applicationIdstringtruenonenone

Contact

{
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
}

Information about the employee

NameTypeRequiredRestrictionsDescription
namestringtruenoneShould be the First and Last name
emailstringtruenoneThe employee's email
phonestring¦nullfalsenoneThe employee's phone number. Optional.

CreateApplicationRequest

{
"name": "string",
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"description": "string"
}

NameTypeRequiredRestrictionsDescription
namestringtruenonenone
contactContacttruenoneInformation about the employee
descriptionstringtruenonenone

CreateEmployeeInquiryRequest

{
"companyName": "string",
"employeeName": "string",
"email": "string",
"title": "string",
"referralContact": {
"name": "string",
"email": "string"
}
}

NameTypeRequiredRestrictionsDescription
companyNamestringtruenonenone
employeeNamestringtruenonenone
emailstringtruenonenone
titlestringtruenonenone
referralContactReferralfalsenonenone

CreateEmployeeRequest

{
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"employerId": "686d3163ee1ffbbdb38b6a74",
"employerUserId": "[AN ID IN YOUR SYSTEM]"
}

NameTypeRequiredRestrictionsDescription
contactContacttruenoneInformation about the employee
employerIdstringtruenoneZentry Pass Employer Identifier
employerUserIdstring¦nullfalsenoneThis is an identifier from the Employer's source system. Used to identify employees more easily. Default value is the provided email.

DenyApplicationRequest

{
"applicationId": "string"
}

NameTypeRequiredRestrictionsDescription
applicationIdstringtruenonenone

Employee

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"employerUserId": "johnsmith@zentrypass.com",
"status": "Active",
"statusUpdatedDate": "2019-08-24T14:15:22Z"
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe unique identifier for this entity
dateCreatedstring(date-time)truenoneThe initial date this entity was created
dateUpdatedstring(date-time)truenoneThe last time this entity was updated
employerIdstringtruenoneA Zentry Pass Employer Identifier.
userIdstringtruenoneZentry Pass User Identifier.
employerUserIdstringtruenoneThis is an identifier from the Employer's source system. Used to identify employees more easily. Default value is the employee's email.
statusEmployeeStatustruenonenone
statusUpdatedDatestring(date-time)truenoneThe last time the employee's status was updated

EmployeeIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"employerUserId": "johnsmith@zentrypass.com",
"status": "Active",
"statusUpdatedDate": "2019-08-24T14:15:22Z"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

NameTypeRequiredRestrictionsDescription
data[Employee]trueread-onlyThe paged data
pagedRequestIPagedRequesttruenonenone
totalCountinteger(int32)trueread-onlyThe total number of items available

EmployeeInquiry

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"companyName": "string",
"employeeName": "string",
"email": "string",
"title": "string",
"referralContact": {
"name": "string",
"email": "string"
}
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe unique identifier for this entity
dateCreatedstring(date-time)truenoneThe initial date this entity was created
dateUpdatedstring(date-time)truenoneThe last time this entity was updated
companyNamestringtruenonenone
employeeNamestringtruenonenone
emailstringtruenonenone
titlestringtruenonenone
referralContactReferralfalsenonenone

EmployeeQuery

{
"offset": 0,
"limit": 25,
"employerIds": [
"686d3163ee1ffbbdb38b6a74"
],
"userIds": [
"686d3163ee1ffbbdb38b6a74"
],
"employerUserIds": [
"AN ID IN YOUR SYSTEM"
],
"statuses": [
"Active"
]
}

Get employees

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
employerIds[string]¦nullfalsenoneA list of Zentry Pass Employer Identifiers
userIds[string]¦nullfalsenoneA list of Zentry Pass User Identifiers
employerUserIds[string]¦nullfalsenoneThese are identifiers from the Employer's source system
statuses[EmployeeStatus]¦nullfalsenoneA list of statuses

EmployeeStatus

"Active"

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousActive
anonymousInactive

Employer

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "Zentry Pass",
"address": {
"line1": "11 N 4th St",
"line2": "APT 101",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
},
"email": "employer@zentrypass.com"
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe unique identifier for this entity
dateCreatedstring(date-time)truenoneThe initial date this entity was created
dateUpdatedstring(date-time)truenoneThe last time this entity was updated
namestringtruenoneThe name of this employer
addressAddresstruenonenone
emailstringtruenoneThe email used for communicating with this employer

EmployerIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "Zentry Pass",
"address": {
"line1": "11 N 4th St",
"line2": "APT 101",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
},
"email": "employer@zentrypass.com"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

NameTypeRequiredRestrictionsDescription
data[Employer]trueread-onlyThe paged data
pagedRequestIPagedRequesttruenonenone
totalCountinteger(int32)trueread-onlyThe total number of items available

EmployerQuery

{
"offset": 0,
"limit": 25,
"employerIds": [
"string"
]
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
employerIds[string]¦nullfalsenonenone

GetApplicationsRequest

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"ownerIds": [
"string"
],
"statuses": [
"Inquiry"
]
}

NameTypeRequiredRestrictionsDescription
anonymousApplicationQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetEmployeesRequest

{
"offset": 0,
"limit": 25,
"employerIds": [
"686d3163ee1ffbbdb38b6a74"
],
"userIds": [
"686d3163ee1ffbbdb38b6a74"
],
"employerUserIds": [
"AN ID IN YOUR SYSTEM"
],
"statuses": [
"Active"
]
}

NameTypeRequiredRestrictionsDescription
anonymousEmployeeQueryfalsenoneGet employees

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetEmployersRequest

{
"offset": 0,
"limit": 25,
"employerIds": [
"string"
]
}

NameTypeRequiredRestrictionsDescription
anonymousEmployerQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetUsersWithRoleRequest

{
"role": "string",
"tenantId": "string"
}

NameTypeRequiredRestrictionsDescription
rolestringtruenonenone
tenantIdstringtruenonenone

IPagedRequest

{
"offset": 0,
"limit": 25
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)trueread-onlyHow far to skip into a collection
limitinteger(int32)trueread-onlyHow many results to return

Referral

{
"name": "string",
"email": "string"
}

NameTypeRequiredRestrictionsDescription
namestringtruenonenone
emailstringtruenonenone

RemoveUserRoleRequest

{
"email": "johnsmit@zentrypass.com",
"role": "EmployeeAdmin",
"employerId": "686d3163ee1ffbbdb38b6a74"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenoneThe email of the admin
rolestringtruenoneThe name of the role to remove
employerIdstringtruenoneZentry Pass Employer Id

SendApplicationReminderRequest

{
"applicationId": "string"
}

NameTypeRequiredRestrictionsDescription
applicationIdstringtruenonenone

SubmitApplicationRequest

{
"applicationId": "string"
}

NameTypeRequiredRestrictionsDescription
applicationIdstringtruenonenone

UpdateApplicationRequest

{
"name": "string",
"description": "string",
"address": {
"line1": "11 N 4th St",
"line2": "APT 101",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
}
}

NameTypeRequiredRestrictionsDescription
namestringtruenonenone
descriptionstringtruenonenone
addressAddresstruenonenone

UpdateEmployeeStatusRequest

{
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"status": "Active"
}

NameTypeRequiredRestrictionsDescription
employerIdstringtruenoneZentry Pass Employer Identifier.
userIdstringtruenoneZentry Pass User Identifier.
statusEmployeeStatustruenonenone

User

{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"pictureUrl": "string"
}

NameTypeRequiredRestrictionsDescription
idstringtruenonenone
emailstringtruenonenone
firstNamestringtruenonenone
lastNamestringtruenonenone
pictureUrlstring¦nullfalsenonenone

UserIPagedResponse

{
"data": [
{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"pictureUrl": "string"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

NameTypeRequiredRestrictionsDescription
data[User]trueread-onlyThe paged data
pagedRequestIPagedRequesttruenonenone
totalCountinteger(int32)trueread-onlyThe total number of items available