> For the complete documentation index, see [llms.txt](https://104ha-docs.gitbook.io/104-ha-openapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://104ha-docs.gitbook.io/104-ha-openapi/clients/104-lli-chuan-shu-fu-wu/l-li-da-tou-zhao-fu-jian.md).

# 履歷大頭照/附件

## GET /files/headshot

> 取得大頭照 (Get profile picture)

```json
{"openapi":"3.1.1","info":{"title":"Ehrweb Resume API","version":"1.4.0"},"servers":[{"url":"https://ehrwebapi.104.com.tw/external"}],"security":[{"oauth2_auth":["ehrweb_resume"]}],"components":{"securitySchemes":{"oauth2_auth":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://apis.104api.com.tw/oauth2/token","scopes":{"ehrweb_resume":"提供操作 ehrweb resume API 權限"}}}}},"schemas":{"FileAccessError":{"title":"FileAccessError","type":"object","properties":{"code":{"description":"900:Token 與所屬公司統編不符，請檢查設定。 \n895:檔案已過期或是暫時無法取得檔案，請稍後再試","type":"integer","format":"int32"},"message":{"description":"依照錯誤代碼(code)，顯示對應的錯誤提示。 \n900:Token 與所屬公司統編不符，請檢查設定。 \n895:檔案已過期或是暫時無法取得檔案，請稍後再試","type":"string"}},"required":["code","message"]}}},"paths":{"/files/headshot":{"get":{"parameters":[{"schema":{"type":"string"},"name":"104-Additional-Info","in":"header","description":"傳遞參數格式：guiNum={統編}","required":true},{"schema":{"type":"string"},"name":"fileId","in":"query","required":true,"description":"取檔token，會以連結形式附在履歷內容的headshotUrl欄位裡頭 \n Retrieve the file token, which will be included as a link in the headshotUrl field of the resume content"}],"responses":{"200":{"description":"操作成功 \nSuccess","headers":{},"content":{"image/png":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}}}},"500":{"description":"系統異常，Header沒有帶到必填參數、可能會是因為缺少必填參數、超過搜尋天數或是無法滿足搜尋條件等等\nError, which could be due to missing required parameters, exceeding the search days limit, or failure to meet search criteria, etc.","headers":{},"content":{"image/png":{"schema":{"$ref":"#/components/schemas/FileAccessError"}}}}},"tags":["履歷大頭照/附件"],"operationId":"apiHeadshot","summary":"取得大頭照 (Get profile picture)"}}}}
```

## GET /files/attachment

> 下載履歷附件 (Download resume attachment)

```json
{"openapi":"3.1.1","info":{"title":"Ehrweb Resume API","version":"1.4.0"},"servers":[{"url":"https://ehrwebapi.104.com.tw/external"}],"security":[{"oauth2_auth":["ehrweb_resume"]}],"components":{"securitySchemes":{"oauth2_auth":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://apis.104api.com.tw/oauth2/token","scopes":{"ehrweb_resume":"提供操作 ehrweb resume API 權限"}}}}},"schemas":{"FileAccessError":{"title":"FileAccessError","type":"object","properties":{"code":{"description":"900:Token 與所屬公司統編不符，請檢查設定。 \n895:檔案已過期或是暫時無法取得檔案，請稍後再試","type":"integer","format":"int32"},"message":{"description":"依照錯誤代碼(code)，顯示對應的錯誤提示。 \n900:Token 與所屬公司統編不符，請檢查設定。 \n895:檔案已過期或是暫時無法取得檔案，請稍後再試","type":"string"}},"required":["code","message"]}}},"paths":{"/files/attachment":{"get":{"parameters":[{"schema":{"type":"string"},"name":"104-Additional-Info","in":"header","description":"傳遞參數格式：guiNum={統編}","required":true},{"schema":{"type":"string"},"name":"type","in":"query","required":true,"description":"附件類型，1:附件 , 2:自訂內容, 3:專案成就  \n Attachment Type"},{"schema":{"type":"string"},"name":"fileId","in":"query","required":true,"description":"取檔token，會以連結形式附在履歷內容欄位 \n The file retrieval token will be attached as a link in the resume content field."}],"responses":{"200":{"description":"操作成功,會將請求fileId的檔案 binary string回傳\nSuccess, the file requested by fileId will be returned as a binary string.","headers":{},"content":{"image/png":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}},"image/gif":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}},"image/jpg":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}},"application/octet-stream":{}}},"500":{"description":"系統異常，Header沒有帶到必填參數、可能會是因為缺少必填參數、超過搜尋天數或是無法滿足搜尋條件等等\nError, which could be due to missing required parameters, exceeding the search days limit, or failure to meet search criteria, etc.","headers":{},"content":{"image/png":{"schema":{"$ref":"#/components/schemas/FileAccessError"}},"image/gif":{"schema":{"$ref":"#/components/schemas/FileAccessError"}},"image/jpg":{"schema":{"$ref":"#/components/schemas/FileAccessError"}},"application/octet-stream":{}}}},"tags":["履歷大頭照/附件"],"operationId":"apiAttachments","summary":"下載履歷附件 (Download resume attachment)"}}}}
```
