Sesame HR

App · 19 actions

Read employee records, office assignments, and leave settings.

Actions

ActionWhat it does
Get a job titleGet a job title.
Get a locationGet a location.
Get an employeeGet an employee.
Get an officeGet an office.
Get company informationGet company information.
List absence typesList absence types.
List custom fieldsList custom fields.
List department assignmentsList department assignments.
List departmentsList departments.
List employee managersList employee managers.
List employeesList employees.
List entity groupsList entity groups.
List holiday calendarsList holiday calendars.
List job titlesList job titles.
List locationsList locations.
List office assignmentsList office assignments.
List officesList offices.
List rolesList roles.
List roles assigned to an employeeList roles assigned to an employee.

Get a job title

Get a job title.

Inputs

Job charge IDjob_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

Locationlocation_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

Employeeemployee_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

Officeoffice_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

Statusstatustext
Absence type statusOne of: active, inactive.
Limitlimitnumber
Limit results
Pagepagenumber
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

Limitlimitnumber
Limit custom fields
Pagepagenumber
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 IDemployee_idtext
Find Assignation by employeeId
Department IDdepartment_idtext
Find Assignation by departmentId
Limitlimitnumber
Limit assignations
Pagepagenumber
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

Namenametext
Find Department by name
Limitlimitnumber
Limit departments
Pagepagenumber
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 IDemployee_idtext
Find employee managers by employeeId
Limitlimitnumber
Limit departments
Pagepagenumber
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

Emailemailtext
Find Employee by email
Limitlimitnumber
Limit employees
Pagepagenumber
Request a specific page
Statusstatustext
<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 IDemployee_idtext
finds entity groups by employeeId
Limitlimitnumber
Limit assignations
Pagepagenumber
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 IDemployee_idtextRequired
Employee ID
Limitlimitnumber
Limit results
Pagepagenumber
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

Namenametext
Find job charges whose `Job charge - Level` name contains the given text
Limitlimitnumber
Limit job charges
Pagepagenumber
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

Pagepagenumber
Page numberAt least 1.
Limitlimitnumber
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 IDemployee_idtext
Find Assignation by employeeId
Office IDoffice_idtext
Find Assignation by officeId
Limitlimitnumber
Limit assignations
Pagepagenumber
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

Namenametext
Find office by name
Limitlimitnumber
Limit offices
Pagepagenumber
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

Limitlimitnumber
Limit departments
Pagepagenumber
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 IDemployee_idtextRequired
Employee Id
Limitlimitnumber
Limit departments
Pagepagenumber
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
    }
  }
}

On this page