Get the resumes folder
const url = 'http://127.0.0.1:8765/api/resumes-folder';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://127.0.0.1:8765/api/resumes-folderThe resumes folder: where master.md and the headerless PDFs are kept. One visible folder (default ~/Documents/GigAI/resumes; a GigAI home other than ~/.gigai defaults to <home>/resumes) that holds the master resume’s file (master.md) and the PDFs rendered without a header, named <company>-<role>-<YYYY-MM-DD>.pdf. Since 0.1.11.4 a job’s resume markdown is no longer written here: it is resume.md in the job’s own folder (GET /api/jobs-folder); the <company>-<role>-<YYYY-MM-DD>.md files already there are left as they are. It never holds a name or contact details: a PDF made with the Generate PDF form’s header is saved only where the user saves it. GigAI replaces a file there only when it is exactly what GigAI last wrote. source is default or setting. files is {markdown, pdf}: a file name or null (markdown: only a file written before 0.1.11.4).
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional (0.1.11.9: the job names its files); taken with job_identity and picks nothing.
The job: adds files, the names of that job’s files in the folder.
Responses
Section titled “Responses”Success.
object
Example
{ "default": "~/Documents/GigAI/resumes", "exists": true, "path": "/home/you/Documents/GigAI/resumes", "schema_version": "scout-resumes-folder-response:1", "shown": "~/Documents/GigAI/resumes", "source": "default"}Forbidden / forbidden_origin: loopback peer and Host 127.0.0.1:<port> or localhost:<port> only (Origin too on writes).
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Target_unavailable
object
object
Example
{ "error": { "code": "target_unavailable", "message": "..." }}Unknown_key, invalid_value
object
object
Example
{ "error": { "code": "unknown_key", "message": "..." }}