List Hires
Returns hires ordered by hire date (newest first) using the standard list envelope. prospectId and hire date window filters are optional. Results are paginated with limit and pageToken.
query Parameters
prospectIdstringExample: c1a7e9d34b8f4c2aa6d15e0f7b3c9d42hiredAfterOptional lower bound for hireDate as Unix epoch milliseconds (integer) or ISO 8601 date string.
hiredBeforeOptional upper bound for hireDate as Unix epoch milliseconds (integer) or ISO 8601 date string.
limitinteger · max: 200Example: 25Default: 50pageTokenstringExample: eyJpZCI6ImhpcmVfMDFIVjZXOEZKMlA3UjJNNVQ5WTFRNEMifQ==fieldsstringOptional comma-separated list of top-level field names to include in each list item. Use this to reduce response payload size for large list requests.
idis always included when present on the source document. Nested paths are not supported. Unknown field names or invalid syntax (for example nested selectors) return HTTP 400 withinvalidFieldsand/orinvalidSyntaxin the error body.Example: id,prospectId,hireDate
Responses
OK
successboolean · requireditemsobject[] · requiredpaginationobject · requiredPagination metadata. Fields are included only when that resource supports them.
Example: {"nextPageToken":"opaque-page-token-example","hasMore":true,"totalCount":125}
Create Hire
Creates a hire for a prospect and moves the prospect to the Hired stage when a matching stage exists. Each prospect may have at most one hire document.
Headers
X-Idempotency-Keystring · maxLength: 512Optional. Client-generated key used to make mutation retries safe. Reuse the same key only when retrying the exact same request.
Example: idem_prospect_create_01HV6W0J7Y7A5Q3T4J6N8M2P
Request Body
prospectIdstring · requiredProspect id the hire is associated with.
hireDaterequiredHire date/time as Unix epoch milliseconds (integer) or ISO 8601 date string.
hireDescriptionstringOptional hire description/notes.
Responses
Created
successboolean · requireditemobject · requiredExample: {"id":"a1b2c3d74e5f4a8eb6d05c1f9a7e2d45","prospectId":"c1a7e9d34b8f4c2aa6d15e0f7b3c9d42","hireDate":1717783200000,"hireDescription":"Started as sales associate","type":"hire","userId":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdAt":1717783200000,"updatedAt":1717783200000}
Get Hire
Retrieves a hire by document ID.
path Parameters
hireIdstring · requiredExample: a1b2c3d74e5f4a8eb6d05c1f9a7e2d45
Responses
OK
successboolean · requireditemobject · requiredExample: {"id":"a1b2c3d74e5f4a8eb6d05c1f9a7e2d45","prospectId":"c1a7e9d34b8f4c2aa6d15e0f7b3c9d42","hireDate":1717783200000,"hireDescription":"Started as sales associate","type":"hire","userId":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdAt":1717783200000,"updatedAt":1717783200000}
Update Hire
Updates an existing hire by document ID. At least one of hireDate or hireDescription is required.
path Parameters
hireIdstring · requiredExample: a1b2c3d74e5f4a8eb6d05c1f9a7e2d45
Headers
X-Idempotency-Keystring · maxLength: 512Optional. Client-generated key used to make mutation retries safe. Reuse the same key only when retrying the exact same request.
Example: idem_prospect_create_01HV6W0J7Y7A5Q3T4J6N8M2P
Request Body
hireDateHire date/time as Unix epoch milliseconds (integer) or ISO 8601 date string.
hireDescriptionstringHire description/notes.
Responses
OK
successboolean · requireditemobject · requiredExample: {"id":"a1b2c3d74e5f4a8eb6d05c1f9a7e2d45","prospectId":"c1a7e9d34b8f4c2aa6d15e0f7b3c9d42","hireDate":1717783200000,"hireDescription":"Started as sales associate","type":"hire","userId":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdAt":1717783200000,"updatedAt":1717783200000}
Delete Hire
Deletes a hire by document ID. Requires an authenticated user who created the hire or owns the associated prospect. The nested DELETE /prospects/{prospectId}/hire/{hireId} route remains available for legacy clients.
path Parameters
hireIdstring · requiredExample: a1b2c3d74e5f4a8eb6d05c1f9a7e2d45
Headers
X-Idempotency-Keystring · maxLength: 512Optional. Client-generated key used to make mutation retries safe. Reuse the same key only when retrying the exact same request.
Example: idem_prospect_create_01HV6W0J7Y7A5Q3T4J6N8M2P
Responses
OK
successboolean · requiredhireIdstring · required

