Sesame HR
App · 19 actions
Read employee records, office assignments, and leave settings.
Actions
| Action | What it does |
|---|---|
| Get a job title | Get a job title. |
| Get a location | Get a location. |
| Get an employee | Get an employee. |
| Get an office | Get an office. |
| Get company information | Get company information. |
| List absence types | List absence types. |
| List custom fields | List custom fields. |
| List department assignments | List department assignments. |
| List departments | List departments. |
| List employee managers | List employee managers. |
| List employees | List employees. |
| List entity groups | List entity groups. |
| List holiday calendars | List holiday calendars. |
| List job titles | List job titles. |
| List locations | List locations. |
| List office assignments | List office assignments. |
| List offices | List offices. |
| List roles | List roles. |
| List roles assigned to an employee | List roles assigned to an employee. |
Get a job title
Get a job title.
Inputs
- Job charge ID
job_charge_idtextRequired - Identifier of the job charge level
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": {
"editable": true,
"id": "example",
"name": "example"
},
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}Get a location
Get a location.
Inputs
- Location
location_idtextRequired - Location id
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": {
"address": "example",
"companyId": "example",
"coordinates": {
"latitude": 1,
"longitude": 1
},
"createdAt": "example",
"id": "example",
"name": "example",
"radius": 1,
"updatedAt": "example"
},
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}Get an employee
Get an employee.
Inputs
- Employee
employee_idtextRequired - Employee ID
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": {
"accountNumber": "example",
"address": "example",
"beneficiaryName": "example",
"bic": "example",
"children": 1,
"city": "example",
"code": 1,
"company": {
"createdAt": "example",
"id": "example",
"language": "example",
"name": "example",
"notificationEmail": "example",
"updatedAt": "example"
},
"contractId": "example",
"contributionGroupId": "example",
"country": "example",
"createdAt": "example",
"customFields": [
{}
],
"dateOfBirth": "example",
"description": "example",
"disability": 1,
"email": "example",
"emergencyPhone": "example",
"firstName": "example",
"gender": "female",
"id": "example",
"identityNumberType": "dni",
"imageProfileURL": "example",
"integrationCode": "example",
"jobChargeCompetencies": "example",
"jobChargeDescription": "example",
"jobChargeId": "example",
"jobChargeName": "example",
"language": "example",
"lastName": "example",
"legalEntity": {
"id": "example",
"name": "example"
},
"mainRecruiter": {
"email": "example",
"firstName": "example",
"id": "example",
"imageProfileURL": "example",
"lastName": "example",
"secondLastName": "example",
"workCheckTypeColor": "example",
"workCheckTypeName": "example",
"workStatus": "online"
},
"maritalStatus": "example",
"nationalities": [
"example"
],
"nationality": "example",
"nfc": "example",
"nid": "example",
"personalMail": "example",
"phone": "example",
"pin": 1,
"postalCode": "example",
"pricePerHour": 1,
"professionalCategoryCode": "example",
"professionalCategoryDescription": "example",
"province": "example",
"salaryRange": "example",
"secondLastName": "example",
"secondaryIdentityNumberType": "dni",
"secondaryNid": "example",
"ssn": "example",
"status": "active",
"studyLevel": "example",
"updatedAt": "example",
"workPhone": "example",
"workStatus": "online",
"workStatusUpdatedAt": "example"
},
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}Get an office
Get an office.
Inputs
- Office
office_idtextRequired - Find office by Id
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": {
"address": "example",
"archivedAt": "example",
"coordinates": {
"latitude": 1,
"longitude": 1
},
"defaultEmployeesDateTimeZone": "example",
"description": "example",
"id": "example",
"isArchived": true,
"isDeleted": true,
"name": "example",
"radio": 1
},
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}Get company information
Get company information.
Inputs
None.
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": {
"company": {
"createdAt": "example",
"id": "example",
"language": "example",
"name": "example",
"notificationEmail": "example",
"updatedAt": "example"
}
},
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List absence types
List absence types.
Inputs
- Status
statustext - Absence type statusOne of:
active,inactive. - Limit
limitnumber - Limit results
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"accumulative": true,
"category": "sick_leave",
"color": "example",
"company": {},
"createdAt": "example",
"creationDateNextYear": "example",
"customId": "example",
"deletedAt": "example",
"documentMode": "mandatory",
"id": "example",
"maxDateToTakeAbsence": "example",
"maxPerPeriod": {},
"name": "example",
"needsValidation": true,
"pickMode": "by_days",
"remuneratedType": "remunerated",
"status": "active",
"type": "normal",
"updatedAt": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List custom fields
List custom fields.
Inputs
- Limit
limitnumber - Limit custom fields
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"companyId": "example",
"createdAt": "example",
"id": "example",
"name": "example",
"slug": "example",
"type": "text",
"updatedAt": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List department assignments
List department assignments.
Inputs
- Employee ID
employee_idtext - Find Assignation by employeeId
- Department ID
department_idtext - Find Assignation by departmentId
- Limit
limitnumber - Limit assignations
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"createdAt": "example",
"department": {},
"employee": {},
"id": "example",
"updatedAt": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List departments
List departments.
Inputs
- Name
nametext - Find Department by name
- Limit
limitnumber - Limit departments
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"id": "example",
"name": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List employee managers
List employee managers.
Inputs
- Employee ID
employee_idtext - Find employee managers by employeeId
- Limit
limitnumber - Limit departments
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"createdAt": "example",
"employee": {},
"id": "example",
"manager": {},
"order": 0,
"permission": "checksManageRequestsAndIncidences",
"updatedAt": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List employees
List employees.
Inputs
- Email
emailtext - Find Employee by email
- Limit
limitnumber - Limit employees
- Page
pagenumber - Request a specific page
- Status
statustext - <b>Supported operators:</b> in <b>Example:</b> status[in]=active,inactive By default, only <b>active</b> employees are returnedOne of:
active,inactive.
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"accountNumber": "example",
"address": "example",
"beneficiaryName": "example",
"bic": "example",
"children": 1,
"city": "example",
"code": 1,
"company": {},
"contractId": "example",
"contributionGroupId": "example",
"country": "example",
"createdAt": "example",
"customFields": [
{}
],
"dateOfBirth": "example",
"description": "example",
"disability": 1,
"email": "example",
"emergencyPhone": "example",
"firstName": "example",
"gender": "female",
"id": "example",
"identityNumberType": "dni",
"imageProfileURL": "example",
"integrationCode": "example",
"jobChargeCompetencies": "example",
"jobChargeDescription": "example",
"jobChargeId": "example",
"jobChargeName": "example",
"language": "example",
"lastName": "example",
"legalEntity": {},
"mainRecruiter": {},
"maritalStatus": "example",
"nationalities": [
"example"
],
"nationality": "example",
"nfc": "example",
"nid": "example",
"personalMail": "example",
"phone": "example",
"pin": 1,
"postalCode": "example",
"pricePerHour": 1,
"professionalCategoryCode": "example",
"professionalCategoryDescription": "example",
"province": "example",
"salaryRange": "example",
"secondLastName": "example",
"secondaryIdentityNumberType": "dni",
"secondaryNid": "example",
"ssn": "example",
"status": "active",
"studyLevel": "example",
"updatedAt": "example",
"workPhone": "example",
"workStatus": "online",
"workStatusUpdatedAt": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List entity groups
List entity groups.
Inputs
- Employee ID
employee_idtext - finds entity groups by employeeId
- Limit
limitnumber - Limit assignations
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"costCenter": true,
"description": "example",
"employeesCount": 1,
"groupId": "example",
"id": "example",
"name": "example",
"parentId": "example",
"showGroup": true
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List holiday calendars
List holiday calendars.
Inputs
- Employee ID
employee_idtextRequired - Employee ID
- Limit
limitnumber - Limit results
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"dayOff": {},
"employee": {}
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List job titles
List job titles.
Inputs
- Name
nametext - Find job charges whose `Job charge - Level` name contains the given text
- Limit
limitnumber - Limit job charges
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"editable": true,
"id": "example",
"name": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List locations
List locations.
Inputs
- Page
pagenumber - Page numberAt least 1.
- Limit
limitnumber - Items per pageAt least 1.
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"address": "example",
"companyId": "example",
"coordinates": {},
"createdAt": "example",
"id": "example",
"name": "example",
"radius": 1,
"updatedAt": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List office assignments
List office assignments.
Inputs
- Employee ID
employee_idtext - Find Assignation by employeeId
- Office ID
office_idtext - Find Assignation by officeId
- Limit
limitnumber - Limit assignations
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"createdAt": "example",
"employee": {},
"id": "example",
"isMainOffice": true,
"office": {},
"updatedAt": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List offices
List offices.
Inputs
- Name
nametext - Find office by name
- Limit
limitnumber - Limit offices
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"address": "example",
"archivedAt": "example",
"coordinates": {},
"defaultEmployeesDateTimeZone": "example",
"description": "example",
"id": "example",
"isArchived": true,
"isDeleted": true,
"name": "example",
"radio": 1
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List roles
List roles.
Inputs
- Limit
limitnumber - Limit departments
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"id": "example",
"name": "example"
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}List roles assigned to an employee
List roles assigned to an employee.
Inputs
- Employee ID
employee_idtextRequired - Employee Id
- Limit
limitnumber - Limit departments
- Page
pagenumber - Request a specific page
Outputs
dataobject- The response from Sesame HR.
Example output
{
"data": {
"data": [
{
"affectedEntityId": "example",
"affectedEntityType": "example",
"id": "example",
"role": {}
}
],
"meta": {
"currentPage": 1,
"lastPage": 1,
"perPage": 1,
"total": 1
}
}
}