Attach CV or cover letter
attach_fileAttach a CV or cover letter to a job application, replacing any existing file of the same type. Provide base64-encoded file bytes and specify the kind.
Instructions
Attach or replace a file on an application so the user sees it in the dashboard: a CV/resume (kind: 'cv') or a cover letter (kind: 'cover_letter'). Pass the file bytes as base64 in data_base64. One file per (application, kind) - a new call REPLACES the previous one. Max ~5 MB; pdf/doc/docx/txt/md (MIME is inferred from the filename if you omit it). Call this whenever you generate a tailored CV or cover letter for an application. Example: attach_file({application_id: "...", kind: "cv", filename: "CV_Cursor.pdf", data_base64: "JVBERi0..."}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| mime | No | Optional; inferred from the filename extension when omitted | |
| filename | Yes | ||
| data_base64 | Yes | Base64-encoded file bytes | |
| application_id | Yes |