Ask for a referral to a job
request_referralRequires techjobs.vn sign-in. Asks the referrers the user chose (from list_company_referrers, 1 to 5) at the job's company to refer the signed-in user, with a copy of their CV chính (primary CV) and their message. Only the chosen referrers receive it; the first to take it handles it. If list_company_referrers returns nobody, call it without referrer_handles: the request joins the company's waiting list and a referrer who joins later sees it. Two steps: call without confirm_token to get a preview (nothing is sent) and show it to the user; only after the user explicitly agrees, call again with the same job_id, message and referrer_handles plus the confirm_token. A sent request goes to real people and cannot be taken back. Limited to a few requests per week.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job id from search_jobs, get_job or suggest_jobs_for_me. | |
| message | Yes | The user's message to the referrer, in their own words (why they fit the job). Sent exactly as given; it may be empty. | |
| confirm_token | No | Omit to get a preview. Pass the confirm_token from the preview, with the same job_id, message and referrer_handles, only after the user explicitly agreed to send. | |
| share_outcome | No | true = the referrer who refers the user is told later, without details, when the user records being contacted, interviewing, an offer or the job in their tracker (never rejections). Default false; ask the user. | |
| referrer_handles | No | Handles of the referrers the user chose from list_company_referrers (1 to 5). Only these referrers receive the request; the first one to take it handles it. Omit it only when list_company_referrers returned nobody: the request then joins the company's waiting list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| preview | No | What would be sent (result preview). Nothing was sent yet. | |
| request | No | The request that was sent (result sent). | |
| requests_url | Yes | Where the user follows their referral requests on techjobs.vn. | |
| confirm_token | No | Valid 10 minutes, for this user, job, message and chosen referrers. |