The Workstream API uses OAuth 2.0 Bearer access tokens to authenticate requests. You can view and manage your access tokens in the Workstream Dashboard.
To generate an access token, simply click on Generate token, give it a name, and select the permissions(i.e. Applicants, Employees, Positions) to attach to it. The token expires in 7 days.
You can also manage your tokens through API, as shown in the next section.
Creates a new access token.
OK
Unauthorized
{- "name": "token1",
- "token": "OtrQV4Gz7nwLouCm-ZLqiSxdwJEMEAFGx___GcNxES8",
- "created_at": "2019-08-24T14:15:22Z",
- "expires_in": 604800,
- "scopes": [
- "positions",
- "company_users",
- "company_roles",
- "position_applications",
- "employees",
- "locations",
- "departments",
- "team_members",
- "imported_employee_infos"
]
}Refresh the access token.
OK
Unauthorized
{- "name": "token1",
- "token": "OtrQV4Gz7nwLouCm-ZLqiSxdwJEMEAFGx___GcNxES8",
- "created_at": "2019-08-24T14:15:22Z",
- "expires_in": 604800,
- "scopes": [
- "positions",
- "company_users",
- "company_roles",
- "position_applications",
- "employees",
- "locations",
- "departments",
- "team_members",
- "imported_employee_infos"
]
}Revokes an existing access token.
OK
Unauthorized Client
{ }Positions represent open job requisitions within your company that are looking to be filled.
Retrieves an existing Position.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "digest_key": "40ad0bd6836b9e5cfedbf28e7c907fe229a99a2a",
- "title": "Customer Success Associate",
- "overview": "We are looking for a full-time, dedicated, and passionate individual to join our growing team.",
- "status": "published",
- "number": "1845",
- "access": "public",
- "pay_amount": "15$",
- "pay_frequency": "hourly",
- "job_type": "full_time",
- "normalized_titles": "string",
- "remote_type": "on_site",
- "location": {
- "uuid": "fc4487ce-67n0-436e-9aa7-a2eb496aff0e",
- "name": "SF store",
- "address": "string",
- "postal_code": "string",
- "city": "string",
- "state": "string",
- "country": "string"
}, - "custom_fields": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "title": "custom field title",
- "value": "custom field value"
}
]
}Lists existing Positions with the input parameters.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "digest_key": "40ad0bd6836b9e5cfedbf28e7c907fe229a99a2a",
- "title": "Customer Success Associate",
- "overview": "We are looking for a full-time, dedicated, and passionate individual to join our growing team.",
- "status": "published",
- "number": "1845",
- "access": "public",
- "pay_amount": "15$",
- "pay_frequency": "hourly",
- "job_type": "full_time",
- "normalized_titles": "string",
- "remote_type": "on_site",
- "location": {
- "uuid": "fc4487ce-67n0-436e-9aa7-a2eb496aff0e",
- "name": "SF store",
- "address": "string",
- "postal_code": "string",
- "city": "string",
- "state": "string",
- "country": "string"
}, - "custom_fields": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "title": "custom field title",
- "value": "custom field value"
}
]
}
]
}Lists existing Company Users with the input parameters.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "name": "Joey White",
- "status": "active",
- "region_number": "+1",
- "phone": "4155693009",
- "created_at": "2022-09-30T00:00:00.000Z",
- "user": {
- "email": "test@test.com",
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "created_at": "2022-09-30T00:00:00.000Z"
}, - "company_role": {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "name": "General Manager",
- "editable": true,
- "permissions_set": [
- "edit_user edit_location",
- "edit_department",
- "customize_notifications",
- "edit_position",
- "edit_custom_reports",
- "edit_custom_field",
- "edit_integration",
- "edit_company"
], - "created_at": "2022-09-30T00:00:00.000Z"
}, - "permission_config": {
- "all_locations": false,
- "locations": [
- {
- "uuid": "67161b3c-2584-11ee-be56-0242ac120002",
- "all_departments": false,
- "departments": [
- {
- "uuid": null
}
]
}
]
}
}
]
}Creates a new Company User with User info.
Returns the newly created Company User.
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "user": {
- "email": "test@test.com",
- "password": "password"
}, - "name": "Andy Lee",
- "company_role_uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "region_number": "1",
- "phone": "7789882873"
}{- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "name": "Joey White",
- "status": "active",
- "region_number": "+1",
- "phone": "4155693009",
- "created_at": "2022-09-30T00:00:00.000Z",
- "user": {
- "email": "test@test.com",
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "created_at": "2022-09-30T00:00:00.000Z"
}, - "company_role": {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "name": "General Manager",
- "editable": true,
- "permissions_set": [
- "edit_user edit_location",
- "edit_department",
- "customize_notifications",
- "edit_position",
- "edit_custom_reports",
- "edit_custom_field",
- "edit_integration",
- "edit_company"
], - "created_at": "2022-09-30T00:00:00.000Z"
}, - "permission_config": {
- "all_locations": false,
- "locations": [
- {
- "uuid": "67161b3c-2584-11ee-be56-0242ac120002",
- "all_departments": false,
- "departments": [
- {
- "uuid": "47161b3c-2584-11ee-be56-0242ac120002"
}
]
}
]
}
}Update an existing Company User's Company Role & permissions.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "company_role_uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "permission_config": {
- "all_locations": false,
- "locations": [
- {
- "uuid": "67161b3c-2584-11ee-be56-0242ac120002",
- "all_departments": false,
- "departments": [
- {
- "uuid": "47161b3c-2584-11ee-be56-0242ac120002"
}
]
}
]
}
}{- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "name": "Joey White",
- "status": "active",
- "region_number": "+1",
- "phone": "4155693009",
- "created_at": "2022-09-30T00:00:00.000Z",
- "user": {
- "email": "test@test.com",
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "created_at": "2022-09-30T00:00:00.000Z"
}, - "company_role": {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "name": "General Manager",
- "editable": true,
- "permissions_set": [
- "edit_user edit_location",
- "edit_department",
- "customize_notifications",
- "edit_position",
- "edit_custom_reports",
- "edit_custom_field",
- "edit_integration",
- "edit_company"
], - "created_at": "2022-09-30T00:00:00.000Z"
}, - "permission_config": {
- "all_locations": false,
- "locations": [
- {
- "uuid": "67161b3c-2584-11ee-be56-0242ac120002",
- "all_departments": false,
- "departments": [
- {
- "uuid": "47161b3c-2584-11ee-be56-0242ac120002"
}
]
}
]
}
}Disable an active Company User.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "status": "disabled"
}Lists existing Company Roles with the input parameters.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "name": "General Manager",
- "editable": true,
- "permissions_set": [
- "edit_user edit_location",
- "edit_department",
- "customize_notifications",
- "edit_position",
- "edit_custom_reports",
- "edit_custom_field",
- "edit_integration",
- "edit_company"
], - "created_at": "2022-09-30T00:00:00.000Z"
}
]
}Retrieves an existing Applicant.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "digest_key": "108eeee1",
- "referer_source": "Others",
- "email": "joblexxx@gmail.com",
- "phone": "4321012345",
- "first_name": "Joey",
- "last_name": "White",
- "name": "Joey White",
- "status": "in_progress",
- "global_phone_number": "+15151515151",
- "sms_notification": true,
- "current_stage": "Application",
- "hired_at": "2022-12-01 08:00:00",
- "application_date": "2019-08-24",
- "latest_interview_date": "2022-12-01",
- "position": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "title": "Cook"
}, - "location": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "SF store"
}, - "department": {
- "name": "Marketing",
- "description": "The marketing department"
}, - "notes": [
- {
- "content": "He is a good applicant!"
}
], - "tags": [
- {
- "name": "cook"
}
], - "candidate_info": [
- {
- "question": "Street Address",
- "answer": "110 W 5 st"
}
], - "pay_info": {
- "pay_amount": 20,
- "pay_frequency": "hour"
}
}Returns the questions and answers of forms filled in by an existing Applicant.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "uuid": "d404e957-af95-4776-af16-bae088e49165",
- "name": "Additional Information",
- "answers": [
- {
- "question_uuid": "d404e957-af95-4776-af16-bae088e49165",
- "question_type": "multiple_choice",
- "question": "Are you at least 18 years old with a valid Driver's license?",
- "answer_uuid": "d404e957-af95-4776-af16-bae088e49165",
- "answer": "yes"
}
]
}
]
}Lists existing Applicants with the input parameters.
Pagination. Send limit to get the results one page at a time, ordered by creation time. Each paginated response has has_more and next_cursor. To get the next page, repeat the request with the same filters and cursor set to next_cursor, until has_more is false.
Without limit or cursor, all matching applicants are returned in one response. For large result sets that response can be slow enough to time out, so use pagination. We recommend limit=500, which keeps the number of requests within the daily rate limit.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "digest_key": "108eeee1",
- "referer_source": "Others",
- "email": "joblexxx@gmail.com",
- "phone": "4321012345",
- "first_name": "Joey",
- "last_name": "White",
- "name": "Joey White",
- "status": "in_progress",
- "global_phone_number": "+15151515151",
- "sms_notification": true,
- "current_stage": "Application",
- "hired_at": "2022-12-01 08:00:00",
- "application_date": "2019-08-24",
- "latest_interview_date": "2022-12-01",
- "position": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "title": "Cook"
}, - "location": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "SF store"
}, - "department": {
- "name": "Marketing",
- "description": "The marketing department"
}, - "notes": [
- {
- "content": "He is a good applicant!"
}
], - "tags": [
- {
- "name": "cook"
}
], - "candidate_info": [
- {
- "question": "Street Address",
- "answer": "110 W 5 st"
}
], - "pay_info": {
- "pay_amount": 20,
- "pay_frequency": "hour"
}
}
], - "count": 500,
- "has_more": true,
- "next_cursor": "MTY3MDQ4NDU1MzcyOTg0NDoyMA"
}Employees represent applicants who have been accepted into a new position, or people who are already working for your company.
Retrieves an existing Employee.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "uuid": "d404e957-af95-4776-af16-bae088e49165",
- "first_name": "Ryan",
- "middle_initial": "J",
- "last_name": "Folk",
- "preferred_name": "Johnny",
- "start_date": "2019-08-24",
- "applied_date": "2019-08-24",
- "hired_date": "2019-08-24",
- "onboard_date": "2019-08-24T14:15:22Z",
- "status": "completed",
- "information": {
- "phone": "+17789882873",
- "email": "wadam@example.fr",
- "birthday": "2019-08-24",
- "ethnicity": "black_or_african_american",
- "gender": "male",
- "ssn": "0015594",
- "marital_status": "never_married"
}, - "address": {
- "address": "6488 Gateway dr",
- "city": "Washington",
- "state": "United States",
- "country": "Virginia",
- "zipcode": "23703"
}, - "emergency_contact": {
- "name": "Melinda Folk",
- "email": "folk@example.fr",
- "phone": "+16084559135",
- "relationship": "Father"
}, - "employment_details": {
- "applied_date": "2019-08-24",
- "department_name": "Staff",
- "hired_date": "2019-08-24",
- "job_title": "Barista",
- "manager": "Test Manager",
- "start_date": "2019-08-24"
}, - "work_location": {
- "name": "Store",
- "address": "800 Kings Way",
- "city": "Vancouver",
- "state": "VA",
- "country": "US",
- "zipcode": "23321"
}, - "compensation": {
- "additional_remuneration": "2",
- "additional_remuneration_currency_code": "USD",
- "employment_status": "full_time",
- "status": "non_exempt",
- "wage_amount": "12",
- "wage_currency_code": "USD",
- "wage_pay_frequency": "hour"
}, - "direct_deposits": [
- {
- "account_number": "112223344",
- "account_type": "saving",
- "percentage": 0,
- "routing_number": "00356",
- "status": "active"
}
], - "federal_tax": {
- "deductions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "other_income": 0,
- "qualifying_children_num": 0,
- "qualifying_other_num": 0,
- "dependents": 0,
- "two_jobs": true,
- "exempt_from_withholding": "string"
}, - "state_tax": {
- "allowances_exemptions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "tax_form": "string",
- "state": "string",
- "tax_form_details": { }
}, - "eligibility": {
- "admission_number": "string",
- "alien_authorized_to_work_expiration_date": "2019-08-24",
- "alien_registration_or_uscis_number": "string",
- "country_of_issuance": "string",
- "lawful_permanent_resident_alien_registration_or_uscis_number": 0,
- "passport_number": "string",
- "resident_status_code": "string",
- "social_security_number": "string"
}, - "eligibility_details": {
- "i9_section_one": {
- "admission_number": "string",
- "alien_authorized_to_work_expiration_date": "2019-08-24",
- "alien_registration_or_uscis_number": "string",
- "country_of_issuance": "string",
- "lawful_permanent_resident_alien_registration_or_uscis_number": 0,
- "passport_number": "string",
- "resident_status_code": "string",
- "social_security_number": "string",
- "employee_signed_date": "2019-08-24"
}, - "i9_section_two": {
- "employer_fname": "string",
- "employer_lname": "string",
- "employer_job_title": "string",
- "employee_start_date": "string",
- "employer_signed_date": "2019-08-24",
- "list_a": {
- "list_a_document_title_1": "string",
- "list_a_document_number_1": "string",
- "list_a_expiration_date_1": "2019-08-24",
- "list_a_no_expiration_date_1": true,
- "list_a_issuing_authority_1": "string",
- "list_a_document_title_2": "string",
- "list_a_document_number_2": "string",
- "list_a_expiration_date_2": "2019-08-24",
- "list_a_no_expiration_date_2": true,
- "list_a_issuing_authority_2": "string",
- "list_a_document_title_3": "string",
- "list_a_document_number_3": "string",
- "list_a_expiration_date_3": "2019-08-24",
- "list_a_no_expiration_date_3": true,
- "list_a_issuing_authority_3": "string"
}, - "list_b": {
- "list_b_document_title_1": "string",
- "list_b_document_code": "string",
- "list_b_document_number_1": "string",
- "list_b_issuing_authority_1": "string",
- "list_b_us_state_code_1": "CA",
- "list_b_expiration_date_1": "2019-08-24",
- "list_b_no_expiration_date": true
}, - "list_c": {
- "list_c_document_title_1": "string",
- "list_c_document_code": "string",
- "list_c_issuing_authority_1": "string",
- "list_c_document_number_1": "string",
- "list_c_expiration_date_1": "2019-08-24",
- "list_c_no_expiration_date": true
}
}
}, - "custom_forms": [
- {
- "name": "Custom form",
- "content": [
- {
- "question": {
- "title": "How old are you?",
- "content": "Please enter your age."
}, - "answer": [
- null
]
}
]
}
], - "position": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "title": "Cook"
}, - "location": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "SF store"
}, - "department": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "Marketing"
}
}Lists existing employees with the input parameters.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "uuid": "d404e957-af95-4776-af16-bae088e49165",
- "first_name": "Ryan",
- "middle_initial": "J",
- "last_name": "Folk",
- "preferred_name": "Johnny",
- "start_date": "2019-08-24",
- "applied_date": "2019-08-24",
- "hired_date": "2019-08-24",
- "onboard_date": "2019-08-24T14:15:22Z",
- "status": "completed",
- "information": {
- "phone": "+17789882873",
- "email": "wadam@example.fr",
- "birthday": "2019-08-24",
- "ethnicity": "black_or_african_american",
- "gender": "male",
- "ssn": "0015594",
- "marital_status": "never_married"
}, - "address": {
- "address": "6488 Gateway dr",
- "city": "Washington",
- "state": "United States",
- "country": "Virginia",
- "zipcode": "23703"
}, - "emergency_contact": {
- "name": "Melinda Folk",
- "email": "folk@example.fr",
- "phone": "+16084559135",
- "relationship": "Father"
}, - "employment_details": {
- "applied_date": "2019-08-24",
- "department_name": "Staff",
- "hired_date": "2019-08-24",
- "job_title": "Barista",
- "manager": "Test Manager",
- "start_date": "2019-08-24"
}, - "work_location": {
- "name": "Store",
- "address": "800 Kings Way",
- "city": "Vancouver",
- "state": "VA",
- "country": "US",
- "zipcode": "23321"
}, - "compensation": {
- "additional_remuneration": "2",
- "additional_remuneration_currency_code": "USD",
- "employment_status": "full_time",
- "status": "non_exempt",
- "wage_amount": "12",
- "wage_currency_code": "USD",
- "wage_pay_frequency": "hour"
}, - "direct_deposits": [
- {
- "account_number": "112223344",
- "account_type": "saving",
- "percentage": 0,
- "routing_number": "00356",
- "status": "active"
}
], - "federal_tax": {
- "deductions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "other_income": 0,
- "qualifying_children_num": 0,
- "qualifying_other_num": 0,
- "dependents": 0,
- "two_jobs": true,
- "exempt_from_withholding": "string"
}, - "state_tax": {
- "allowances_exemptions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "tax_form": "string",
- "state": "string",
- "tax_form_details": { }
}, - "eligibility": {
- "admission_number": "string",
- "alien_authorized_to_work_expiration_date": "2019-08-24",
- "alien_registration_or_uscis_number": "string",
- "country_of_issuance": "string",
- "lawful_permanent_resident_alien_registration_or_uscis_number": 0,
- "passport_number": "string",
- "resident_status_code": "string",
- "social_security_number": "string"
}, - "eligibility_details": {
- "i9_section_one": {
- "admission_number": "string",
- "alien_authorized_to_work_expiration_date": "2019-08-24",
- "alien_registration_or_uscis_number": "string",
- "country_of_issuance": "string",
- "lawful_permanent_resident_alien_registration_or_uscis_number": 0,
- "passport_number": "string",
- "resident_status_code": "string",
- "social_security_number": "string",
- "employee_signed_date": "2019-08-24"
}, - "i9_section_two": {
- "employer_fname": "string",
- "employer_lname": "string",
- "employer_job_title": "string",
- "employee_start_date": "string",
- "employer_signed_date": "2019-08-24",
- "list_a": {
- "list_a_document_title_1": "string",
- "list_a_document_number_1": "string",
- "list_a_expiration_date_1": "2019-08-24",
- "list_a_no_expiration_date_1": true,
- "list_a_issuing_authority_1": "string",
- "list_a_document_title_2": "string",
- "list_a_document_number_2": "string",
- "list_a_expiration_date_2": "2019-08-24",
- "list_a_no_expiration_date_2": true,
- "list_a_issuing_authority_2": "string",
- "list_a_document_title_3": "string",
- "list_a_document_number_3": "string",
- "list_a_expiration_date_3": "2019-08-24",
- "list_a_no_expiration_date_3": true,
- "list_a_issuing_authority_3": "string"
}, - "list_b": {
- "list_b_document_title_1": "string",
- "list_b_document_code": "string",
- "list_b_document_number_1": "string",
- "list_b_issuing_authority_1": "string",
- "list_b_us_state_code_1": "CA",
- "list_b_expiration_date_1": "2019-08-24",
- "list_b_no_expiration_date": true
}, - "list_c": {
- "list_c_document_title_1": "string",
- "list_c_document_code": "string",
- "list_c_issuing_authority_1": "string",
- "list_c_document_number_1": "string",
- "list_c_expiration_date_1": "2019-08-24",
- "list_c_no_expiration_date": true
}
}
}, - "custom_forms": [
- {
- "name": "Custom form",
- "content": [
- {
- "question": {
- "title": null,
- "content": null
}, - "answer": [
- null
]
}
]
}
], - "position": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "title": "Cook"
}, - "location": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "SF store"
}, - "department": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "Marketing"
}
}
]
}Retrieves an existing Employee. This endpoint is only available for companies that have been migrated to Workstream HRIS; companies that have not been migrated receive a 403 and should use GET /employees/{uuid} instead. Job assignments and earning rates are sourced from Workstream HRIS.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The company has not been migrated to Workstream HRIS, or the user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too Many Requests - either the API's own request limit was reached, or data read live from Workstream Payroll (the direct_deposits, federal_tax and state_tax embeds of employees paid through Workstream Payroll) is temporarily rate limited. Back off and retry after the delay indicated by the Retry-After header.
Service Unavailable - a service this request depends on (Workstream HRIS, Workstream Payroll, or the tax withholding service) is temporarily unavailable. The request did not fail because of anything in it and is safe to retry.
{- "uuid": "d404e957-af95-4776-af16-bae088e49165",
- "first_name": "Ryan",
- "middle_initial": "J",
- "last_name": "Folk",
- "preferred_name": "Johnny",
- "start_date": "2019-08-24",
- "applied_date": "2019-08-24",
- "hired_date": "2019-08-24",
- "onboard_date": "2019-08-24T14:15:22Z",
- "status": "active",
- "termination_date": "2019-08-24",
- "termination_note": "string",
- "information": {
- "phone": "+17789882873",
- "email": "wadam@example.fr",
- "birthday": "2019-08-24",
- "ethnicity": "black_or_african_american",
- "gender": "male",
- "ssn": "0015594",
- "marital_status": "never_married"
}, - "address": {
- "address": "6488 Gateway dr",
- "city": "Washington",
- "state": "United States",
- "country": "Virginia",
- "zipcode": "23703"
}, - "emergency_contact": {
- "name": "Melinda Folk",
- "email": "folk@example.fr",
- "phone": "+16084559135",
- "relationship": "Father"
}, - "company": {
- "uuid": "5b7f2a90-1c33-4a1c-9f5a-2f9d1c3b8e21",
- "name": "Blue Bottle Coffee"
}, - "location": {
- "uuid": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
- "name": "Downtown"
}, - "department": {
- "uuid": "5f4e3d2c-1b0a-4f9e-8d7c-6b5a4f3e2d1c",
- "name": "Front of House"
}, - "job_assignments": [
- {
- "id": "0d7c67ba-4a15-4c6d-9d5e-3f0f6a1b2c3d",
- "job_id": "job_01h46z1k2cf2av8mp4r7we4697",
- "primary": true,
- "status": "active",
- "title": "Barista",
- "location_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
- "department_id": "5f4e3d2c-1b0a-4f9e-8d7c-6b5a4f3e2d1c",
- "managerial": false,
- "soc_code": "35-3023",
- "created_at": "2025-01-01T08:00:00Z",
- "working_location": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "core_location_id": "224c13e3-8d09-4c3d-9795-5f1359449e28"
}, - "manage_locations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "core_location_id": "224c13e3-8d09-4c3d-9795-5f1359449e28"
}
], - "earning_rates": [
- {
- "id": "3c2b1a09-8d7e-4f6a-b5c4-d3e2f1a0b9c8",
- "name": "Hourly",
- "earning_type": "hourly",
- "amount": 18.5,
- "period": "hour",
- "status": "active",
- "external_earning_code_id": "string",
- "effective_date": "2025-01-01"
}
], - "latest_earning_snapshot": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "periods": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "earning_rates_data": [
- { }
]
}
]
}
}
], - "custom_forms": [
- {
- "name": "Custom form",
- "content": [
- {
- "question": {
- "title": "How old are you?",
- "content": "Please enter your age."
}, - "answer": [
- null
]
}
]
}
], - "direct_deposits": [
- {
- "payment_method": "direct_deposit",
- "bank_name": "Chase",
- "account_number": "6789",
- "account_type": "checking",
- "routing_number": "021000021",
- "percentage": 100,
- "amount": 0,
- "priority": 0,
- "status": "validated"
}
], - "eligibility": {
- "admission_number": "string",
- "alien_authorized_to_work_expiration_date": "2019-08-24",
- "alien_registration_or_uscis_number": "string",
- "country_of_issuance": "string",
- "lawful_permanent_resident_alien_registration_or_uscis_number": 0,
- "passport_number": "string",
- "resident_status_code": "string",
- "social_security_number": "string"
}, - "eligibility_details": {
- "i9_section_one": {
- "admission_number": "string",
- "alien_authorized_to_work_expiration_date": "2019-08-24",
- "alien_registration_or_uscis_number": "string",
- "country_of_issuance": "string",
- "lawful_permanent_resident_alien_registration_or_uscis_number": 0,
- "passport_number": "string",
- "resident_status_code": "string",
- "social_security_number": "string",
- "employee_signed_date": "2019-08-24"
}, - "i9_section_two": {
- "employer_fname": "string",
- "employer_lname": "string",
- "employer_job_title": "string",
- "employee_start_date": "string",
- "employer_signed_date": "2019-08-24",
- "list_a": {
- "list_a_document_title_1": "string",
- "list_a_document_number_1": "string",
- "list_a_expiration_date_1": "2019-08-24",
- "list_a_no_expiration_date_1": true,
- "list_a_issuing_authority_1": "string",
- "list_a_document_title_2": "string",
- "list_a_document_number_2": "string",
- "list_a_expiration_date_2": "2019-08-24",
- "list_a_no_expiration_date_2": true,
- "list_a_issuing_authority_2": "string",
- "list_a_document_title_3": "string",
- "list_a_document_number_3": "string",
- "list_a_expiration_date_3": "2019-08-24",
- "list_a_no_expiration_date_3": true,
- "list_a_issuing_authority_3": "string"
}, - "list_b": {
- "list_b_document_title_1": "string",
- "list_b_document_code": "string",
- "list_b_document_number_1": "string",
- "list_b_issuing_authority_1": "string",
- "list_b_us_state_code_1": "CA",
- "list_b_expiration_date_1": "2019-08-24",
- "list_b_no_expiration_date": true
}, - "list_c": {
- "list_c_document_title_1": "string",
- "list_c_document_code": "string",
- "list_c_issuing_authority_1": "string",
- "list_c_document_number_1": "string",
- "list_c_expiration_date_1": "2019-08-24",
- "list_c_no_expiration_date": true
}
}
}, - "federal_tax": {
- "source": "form_submission",
- "form_schema_id": "string",
- "data": {
- "filing_status": "married_filing_jointly",
- "dependents_amount": 2000,
- "extra_withholding": "50"
}
}, - "state_tax": [
- {
- "state": "CA",
- "source": "form_submission",
- "form_schema_id": "string",
- "data": {
- "filing_status": "single",
- "regular_allowances": 1,
- "additional_withholding": "25"
}
}
]
}Lists existing employees with the input parameters. This endpoint is only available for companies that have been migrated to Workstream HRIS; companies that have not been migrated receive a 403 and should use GET /employees instead. Job assignments and earning rates are sourced from Workstream HRIS.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The company has not been migrated to Workstream HRIS, or the user is not authorized to use this resource.
Unprocessable Entity - Invalid query params or request body.
Too Many Requests - either the API's own request limit was reached, or data read live from Workstream Payroll (the direct_deposits embed of employees paid through Workstream Payroll) is temporarily rate limited. Back off and retry after the delay indicated by the Retry-After header.
Service Unavailable - a service this request depends on (Workstream HRIS, Workstream Payroll, or the tax withholding service) is temporarily unavailable. The request did not fail because of anything in it and is safe to retry.
{- "data": [
- {
- "uuid": "d404e957-af95-4776-af16-bae088e49165",
- "first_name": "Ryan",
- "middle_initial": "J",
- "last_name": "Folk",
- "preferred_name": "Johnny",
- "start_date": "2019-08-24",
- "applied_date": "2019-08-24",
- "hired_date": "2019-08-24",
- "onboard_date": "2019-08-24T14:15:22Z",
- "status": "active",
- "termination_date": "2019-08-24",
- "termination_note": "string",
- "information": {
- "phone": "+17789882873",
- "email": "wadam@example.fr",
- "birthday": "2019-08-24",
- "ethnicity": "black_or_african_american",
- "gender": "male",
- "ssn": "0015594",
- "marital_status": "never_married"
}, - "address": {
- "address": "6488 Gateway dr",
- "city": "Washington",
- "state": "United States",
- "country": "Virginia",
- "zipcode": "23703"
}, - "emergency_contact": {
- "name": "Melinda Folk",
- "email": "folk@example.fr",
- "phone": "+16084559135",
- "relationship": "Father"
}, - "company": {
- "uuid": "5b7f2a90-1c33-4a1c-9f5a-2f9d1c3b8e21",
- "name": "Blue Bottle Coffee"
}, - "location": {
- "uuid": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
- "name": "Downtown"
}, - "department": {
- "uuid": "5f4e3d2c-1b0a-4f9e-8d7c-6b5a4f3e2d1c",
- "name": "Front of House"
}, - "job_assignments": [
- {
- "id": "0d7c67ba-4a15-4c6d-9d5e-3f0f6a1b2c3d",
- "job_id": "job_01h46z1k2cf2av8mp4r7we4697",
- "primary": true,
- "status": "active",
- "title": "Barista",
- "location_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
- "department_id": "5f4e3d2c-1b0a-4f9e-8d7c-6b5a4f3e2d1c",
- "managerial": false,
- "soc_code": "35-3023",
- "created_at": "2025-01-01T08:00:00Z",
- "working_location": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "core_location_id": "224c13e3-8d09-4c3d-9795-5f1359449e28"
}, - "manage_locations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "core_location_id": "224c13e3-8d09-4c3d-9795-5f1359449e28"
}
], - "earning_rates": [
- {
- "id": "3c2b1a09-8d7e-4f6a-b5c4-d3e2f1a0b9c8",
- "name": "Hourly",
- "earning_type": "hourly",
- "amount": 18.5,
- "period": "hour",
- "status": "active",
- "external_earning_code_id": "string",
- "effective_date": "2025-01-01"
}
], - "latest_earning_snapshot": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "version": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "periods": [
- {
- "id": null,
- "start_date": null,
- "end_date": null,
- "earning_rates_data": [ ]
}
]
}
}
], - "custom_forms": [
- {
- "name": "Custom form",
- "content": [
- {
- "question": {
- "title": null,
- "content": null
}, - "answer": [
- null
]
}
]
}
], - "direct_deposits": [
- {
- "payment_method": "direct_deposit",
- "bank_name": "Chase",
- "account_number": "6789",
- "account_type": "checking",
- "routing_number": "021000021",
- "percentage": 100,
- "amount": 0,
- "priority": 0,
- "status": "validated"
}
], - "eligibility": {
- "admission_number": "string",
- "alien_authorized_to_work_expiration_date": "2019-08-24",
- "alien_registration_or_uscis_number": "string",
- "country_of_issuance": "string",
- "lawful_permanent_resident_alien_registration_or_uscis_number": 0,
- "passport_number": "string",
- "resident_status_code": "string",
- "social_security_number": "string"
}, - "eligibility_details": {
- "i9_section_one": {
- "admission_number": "string",
- "alien_authorized_to_work_expiration_date": "2019-08-24",
- "alien_registration_or_uscis_number": "string",
- "country_of_issuance": "string",
- "lawful_permanent_resident_alien_registration_or_uscis_number": 0,
- "passport_number": "string",
- "resident_status_code": "string",
- "social_security_number": "string",
- "employee_signed_date": "2019-08-24"
}, - "i9_section_two": {
- "employer_fname": "string",
- "employer_lname": "string",
- "employer_job_title": "string",
- "employee_start_date": "string",
- "employer_signed_date": "2019-08-24",
- "list_a": {
- "list_a_document_title_1": "string",
- "list_a_document_number_1": "string",
- "list_a_expiration_date_1": "2019-08-24",
- "list_a_no_expiration_date_1": true,
- "list_a_issuing_authority_1": "string",
- "list_a_document_title_2": "string",
- "list_a_document_number_2": "string",
- "list_a_expiration_date_2": "2019-08-24",
- "list_a_no_expiration_date_2": true,
- "list_a_issuing_authority_2": "string",
- "list_a_document_title_3": "string",
- "list_a_document_number_3": "string",
- "list_a_expiration_date_3": "2019-08-24",
- "list_a_no_expiration_date_3": true,
- "list_a_issuing_authority_3": "string"
}, - "list_b": {
- "list_b_document_title_1": "string",
- "list_b_document_code": "string",
- "list_b_document_number_1": "string",
- "list_b_issuing_authority_1": "string",
- "list_b_us_state_code_1": "CA",
- "list_b_expiration_date_1": "2019-08-24",
- "list_b_no_expiration_date": true
}, - "list_c": {
- "list_c_document_title_1": "string",
- "list_c_document_code": "string",
- "list_c_issuing_authority_1": "string",
- "list_c_document_number_1": "string",
- "list_c_expiration_date_1": "2019-08-24",
- "list_c_no_expiration_date": true
}
}
}, - "federal_tax": {
- "source": "form_submission",
- "form_schema_id": "string",
- "data": {
- "filing_status": "married_filing_jointly",
- "dependents_amount": 2000,
- "extra_withholding": "50"
}
}, - "state_tax": [
- {
- "state": "CA",
- "source": "form_submission",
- "form_schema_id": "string",
- "data": {
- "filing_status": "single",
- "regular_allowances": 1,
- "additional_withholding": "25"
}
}
]
}
], - "meta": {
- "total_count": 120,
- "current_page": 1,
- "next_page": 2,
- "total_pages": 5
}
}Retrieves an existing Location.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "uuid": "8b9ad790-2584-11ee-be56-0242ac120002",
- "name": "San Francisco store",
- "custom_fields": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "title": "custom field title",
- "value": "custom field value"
}
]
}Lists existing Locations with the input parameters.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "uuid": "8b9ad790-2584-11ee-be56-0242ac120002",
- "name": "San Francisco store",
- "custom_fields": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "title": "custom field title",
- "value": "custom field value"
}
]
}
]
}Retrieves an existing Department.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "uuid": "77cac653-7150-4929-9fda-3ea0e33e108f",
- "name": "Retail",
- "custom_fields": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "title": "custom field title",
- "value": "custom field value"
}
]
}Lists existing Departments with the input parameters.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "uuid": "77cac653-7150-4929-9fda-3ea0e33e108f",
- "name": "Retail",
- "custom_fields": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "title": "custom field title",
- "value": "custom field value"
}
]
}
]
}Retrieves an existing Team Member.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "first_name": "Ryan",
- "middle_initial": "J",
- "last_name": "Folk",
- "preferred_name": "Johnny",
- "termination_note": "string",
- "start_date": "2019-08-24",
- "status": "hired",
- "job_title": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "title": "Bus Driver"
}, - "location": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "SF store"
}, - "department": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "Marketing"
}, - "information": {
- "phone": "+17789882873",
- "email": "wadam@example.fr",
- "dob": "2020-04-01",
- "ethnicity": "black_or_african_american",
- "gender": "male",
- "ssn": "222521248",
- "marital_status": "never_married"
}, - "direct_deposits": [
- {
- "account_number": "112223344",
- "account_type": "saving",
- "percentage": 0,
- "routing_number": "00356",
- "status": "active"
}
], - "state_tax": {
- "allowances_exemptions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "tax_form": "string",
- "state": "string",
- "tax_form_details": { }
}, - "federal_tax": {
- "deductions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "other_income": 0,
- "qualifying_children_num": 0,
- "qualifying_other_num": 0,
- "two_jobs": true
}, - "eligibility": {
- "allowances_exemptions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "tax_form": "string"
}, - "custom_fields": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "title": "custom field title",
- "value": "custom field value"
}
]
}Updates an existing Team Member's status.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "status": "hired",
- "last_day_of_work": "2019-08-24",
- "note": "string",
- "rehireable": true
}{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "first_name": "Ryan",
- "middle_initial": "J",
- "last_name": "Folk",
- "preferred_name": "Johnny",
- "termination_note": "string",
- "start_date": "2019-08-24",
- "status": "hired"
}Lists existing Team Members with the input parameters.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "first_name": "Ryan",
- "middle_initial": "J",
- "last_name": "Folk",
- "preferred_name": "Johnny",
- "termination_note": "string",
- "start_date": "2019-08-24",
- "status": "hired",
- "job_title": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "title": "Bus Driver"
}, - "location": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "SF store"
}, - "department": {
- "uuid": "c59c9852-2584-11ee-be56-0242ac120002",
- "name": "Marketing"
}, - "information": {
- "phone": "+17789882873",
- "email": "wadam@example.fr",
- "dob": "2020-04-01",
- "ethnicity": "black_or_african_american",
- "gender": "male",
- "ssn": "222521248",
- "marital_status": "never_married"
}, - "direct_deposits": [
- {
- "account_number": "112223344",
- "account_type": "saving",
- "percentage": 0,
- "routing_number": "00356",
- "status": "active"
}
], - "state_tax": {
- "allowances_exemptions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "tax_form": "string",
- "state": "string",
- "tax_form_details": { }
}, - "federal_tax": {
- "deductions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "other_income": 0,
- "qualifying_children_num": 0,
- "qualifying_other_num": 0,
- "two_jobs": true
}, - "eligibility": {
- "allowances_exemptions": 0,
- "extra_withholding": 0,
- "filing_status": "string",
- "tax_form": "string"
}, - "custom_fields": [
- {
- "uuid": "509a251a-93af-41e3-8416-23b29dc293cc",
- "title": "custom field title",
- "value": "custom field value"
}
]
}
]
}Creates a new Team Member resource.
object (Team Member Creation Payload) |
Returns the newly created Team Member.
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "team_member": {
- "first_name": "Ryan",
- "middle_initial": "J",
- "last_name": "Folk",
- "preferred_name": "Johnny",
- "dob": "2020-04-01",
- "phone": "+17789882873",
- "email": "wadam@example.fr",
- "gender": "male",
- "status": "hired",
- "start_date": "2023-05-01",
- "location": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "job_title": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "department": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "government_ids": [
- {
- "type": "SSN",
- "value": "222521248"
}
], - "metadata": { }
}
}{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}Employee Documents represent documents that are associated with employees within your company.
Download employee document with document id.
Note: This endpoint requires the document-public-api feature flag. Please contact our support team to request access.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "error_code": 13401,
- "message": "Unauthorized"
}Lists existing employee documents with the input parameters.
Note: This endpoint requires the document-public-api feature flag. Please contact our support team to request access.
OK
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "data": [
- {
- "employee_uuid": "d404e957-af95-4776-af16-bae088e49165",
- "documents": [
- {
- "type": "w4",
- "created_at": "2022-09-30T00:00:00.000Z"
}
]
}
]
}Imported Employee Infos represent imported employee information that is associated with employees within your company.
List existing Imported Employee Infos
Returns the imported employee info list.
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "imported_employee_infos": [
- {
- "first_name": "Tom",
- "last_name": "string",
- "phone": "+17789882873",
- "email": "string",
- "rehire_eligiblity": "eligible",
- "termination_reason": "string"
}
]
}Custom field config for location, department, job posting, employee and job within your company.
List existing Custom Fields
Returns all custom field values for an entity
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "custom_fields": [
- {
- "id": "1300622b-1bfa-41b2-b182-ca9425d140ca",
- "entity_type": "location",
- "title": "Location Reference No.",
- "description": "This is reference number on ADP side",
- "is_required": true,
- "field_type": "select",
- "options": "string",
- "sequence": 0
}
]
}Create Custom Field
object Custom field create or update content |
Returns new created custom field
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "custom_field": {
- "entity_type": "location",
- "title": "string",
- "field_type": "text",
- "is_required": true,
- "options": [
- "option1",
- "option2"
], - "config": {
- "character_blacklist": true,
- "digit_length": 2
}
}
}{- "custom_field": {
- "id": "1300622b-1bfa-41b2-b182-ca9425d140ca",
- "entity_type": "location",
- "title": "Location Reference No.",
- "description": "This is reference number on ADP side",
- "is_required": true,
- "field_type": "select",
- "options": "string",
- "sequence": 0
}
}Update an existing Custom Field
Update a custom field successfully
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
{- "custom_field": {
- "entity_type": "location",
- "title": "string",
- "field_type": "text",
- "is_required": true,
- "options": [
- "option1",
- "option2"
], - "config": {
- "character_blacklist": true,
- "digit_length": 2
}
}
}{- "custom_field": {
- "id": "1300622b-1bfa-41b2-b182-ca9425d140ca",
- "entity_type": "location",
- "title": "Location Reference No.",
- "description": "This is reference number on ADP side",
- "is_required": true,
- "field_type": "select",
- "options": "string",
- "sequence": 0
}
}Create or update the custom field values of one entity. A non-empty
custom_field_values replaces the entity's whole value list: a field left out
of it is cleared. A request with a missing or empty custom_field_values
changes nothing. To clear one field, send the full list with that field's
value empty.
For job, entity_id is the HRIS job id, as returned in
job_assignments[].job_id (for example job_01h46z1k2cf2av8mp4r7we4697).
For location, department and employee_record it is the entity uuid.
job_posting_template is not supported on this endpoint yet. For job, the job is checked
with Workstream HRIS, so the request returns 503 if HRIS is unavailable.
Array of objects Custom field values of entity |
Returns new created custom field
Bad request. error_code is 40060 for an invalid entity_type. For job,
value errors return 40000 (bad body), 40061 (required field blank), 40062
(invalid value format) or 40063 (field is not a job field of this company).
For the other entity types, value errors return 50000 with the joined messages.
Unauthorized - Credentials are not valid for the target resource.
Forbidden - The user is not authorized to use this resource.
Not found - The requested resource is not found.
Unprocessable Entity - Invalid query params or request body.
Too many requests.
Service Unavailable - a service this request depends on (Workstream HRIS, Workstream Payroll, or the tax withholding service) is temporarily unavailable. The request did not fail because of anything in it and is safe to retry.
{- "custom_field_values": [
- {
- "id": "509a251a-93af-41e3-8416-23b29dc293cc",
- "value": "string"
}
]
}{- "entity_id": "string",
- "entity_type": "string",
- "custom_field_value": [
- {
- "id": "string",
- "title": "string",
- "value": "string"
}
]
}