Skip to main content

Documents & contracts

What is on file for an employee, and what has been issued to them. The files themselves are never exposed — only whether they exist, whether anyone has verified them, and when they were issued.

List document types

GET/v1/document_types

Query parameters

NameTypeRequiredDescription
limitintegerNoPage size. Values above 100 are clamped.
starting_afterstringNoOpaque cursor from a previous response’s next_cursor.
updated_sincetimestampNoReturn records changed at or after this instant. Tracks the record itself, not its child collections.
codestringNoLook up one type by its code.

Responses

StatusMeaning
200A page of document types.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
429Rate limit exceeded. See the RateLimit-* headers.

Retrieve a document type

GET/v1/document_types/{id}

Path parameters

NameTypeRequiredDescription
idstringYesThe identifier returned as id on the object.

Responses

StatusMeaning
200The document type.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
404No such document type in this workspace.
429Rate limit exceeded. See the RateLimit-* headers.

List employee documents

GET/v1/employee_documents

Query parameters

NameTypeRequiredDescription
limitintegerNoPage size. Values above 100 are clamped.
starting_afterstringNoOpaque cursor from a previous response’s next_cursor.
updated_sincetimestampNoReturn records changed at or after this instant. Tracks the record itself, not its child collections.
employee_idstringNoOnly records for this employee.
document_type_idstringNoOnly documents of this type.
verification_statusstringNopending, verified, or rejected.

Responses

StatusMeaning
200A page of employee documents.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
429Rate limit exceeded. See the RateLimit-* headers.

Retrieve an employee document

GET/v1/employee_documents/{id}

Path parameters

NameTypeRequiredDescription
idstringYesThe identifier returned as id on the object.

Responses

StatusMeaning
200The employee document.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
404No such employee document in this workspace.
429Rate limit exceeded. See the RateLimit-* headers.

List contracts

GET/v1/contracts

Query parameters

NameTypeRequiredDescription
limitintegerNoPage size. Values above 100 are clamped.
starting_afterstringNoOpaque cursor from a previous response’s next_cursor.
updated_sincetimestampNoReturn records changed at or after this instant. Tracks the record itself, not its child collections.
employee_idstringNoOnly records for this employee.
statusstringNoOnly contracts in this state.
typestringNoOnly contracts of this kind.
start_date_fromdateNoInclusive lower bound on the contract start date.
start_date_todateNoInclusive upper bound — the named day is included.
end_date_fromdateNoInclusive lower bound on the contract end date.
end_date_todateNoInclusive upper bound — the named day is included.

Responses

StatusMeaning
200A page of contracts.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
429Rate limit exceeded. See the RateLimit-* headers.

Retrieve a contract

GET/v1/contracts/{id}

Path parameters

NameTypeRequiredDescription
idstringYesThe identifier returned as id on the object.

Responses

StatusMeaning
200The contract.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
404No such contract in this workspace.
429Rate limit exceeded. See the RateLimit-* headers.

List hr letters

GET/v1/hr_letters

Query parameters

NameTypeRequiredDescription
limitintegerNoPage size. Values above 100 are clamped.
starting_afterstringNoOpaque cursor from a previous response’s next_cursor.
employee_idstringNoOnly records for this employee.
letter_typestringNoOnly letters of this kind.
reference_numberstringNoLook up one letter by its reference.
issued_date_fromdateNoInclusive lower bound on the issue date.
issued_date_todateNoInclusive upper bound — the named day is included.

Responses

StatusMeaning
200A page of hr letters.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
429Rate limit exceeded. See the RateLimit-* headers.

Retrieve a hr letter

GET/v1/hr_letters/{id}

Path parameters

NameTypeRequiredDescription
idstringYesThe identifier returned as id on the object.

Responses

StatusMeaning
200The hr letter.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
404No such hr letter in this workspace.
429Rate limit exceeded. See the RateLimit-* headers.

List hr letter requests

GET/v1/hr_letter_requests

Query parameters

NameTypeRequiredDescription
limitintegerNoPage size. Values above 100 are clamped.
starting_afterstringNoOpaque cursor from a previous response’s next_cursor.
updated_sincetimestampNoReturn records changed at or after this instant. Tracks the record itself, not its child collections.
employee_idstringNoOnly records for this employee.
letter_typestringNoOnly requests for this kind of letter.
statusstringNoOnly requests in this state.

Responses

StatusMeaning
200A page of hr letter requests.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
429Rate limit exceeded. See the RateLimit-* headers.

Retrieve a hr letter request

GET/v1/hr_letter_requests/{id}

Path parameters

NameTypeRequiredDescription
idstringYesThe identifier returned as id on the object.

Responses

StatusMeaning
200The hr letter request.
401The API key is missing, malformed, revoked or expired.
403The key does not carry the required scopes.
404No such hr letter request in this workspace.
429Rate limit exceeded. See the RateLimit-* headers.