> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.biposervice.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.biposervice.com/_mcp/server.

# Attachment - LIST (Retrieve FileID)

POST https://server.bipocloud.com/tenant/api2/BIPOExport/GetListItem#postApi2BipoexportGetlistitem24
Content-Type: application/json

This API is used to extract list of **employee attachments** data (e.g., resume, profile photo, etc.). It retrieves attachment from TblEmployeeAttachment table, joined with TblAttachment.

Note: this API does not return the actual file or binary content. In order to get actual file (in binary format), use the **FileID** returned from this API in the **GetAttachment** API.

It can also filter with EmployeeCode parameter for a specific employee. If EmployeeCode is not provided, the API returns attachments uploaded in the past 30 days.

Reference: https://developer.biposervice.com/bipo-portal/hrms-v-1/hrms-v-1-personnel/hrms-v-1-hrms-v-1-personnel-personnel/hrms-v-1-hrms-v-1-personnel-hrms-v-1-hrms-v-1-personnel-personnel-details/attachment-list-retrieve-file-id

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (application/json)

This endpoint expects an object.

- `InterfaceCode` (string, required)

## Response

### 200

OK

- `list of Api2BipoExportGetListItemPostApi2BipoexportGetlistitem24PostResponsesContentApplicationJsonSchemaItems`

## Types

### Api2BipoExportGetListItemPostApi2BipoexportGetlistitem24PostResponsesContentApplicationJsonSchemaItems

- `FileID` (string, required)
- `Source` (string, required)
- `FileName` (string, required)
- `DateCreated` (datetime, required)
- `AttachmentID` (string, required)
- `EmployeeCode` (string, required)
- `FileSizeInBytes` (integer, required)
- `OriginalFileName` (string, required)

## Examples

**Request**

```json
{
  "InterfaceCode": "BIPO-EMP-ATTCH"
}
```

**Response**

```json
[
  {
    "FileID": "6fddb54d-5575-4da0-a46f-315a565c37a5",
    "Source": "Profile",
    "FileName": "397c26cf-6cfa-40f8-8a18-62485cc88f12__Mobile_Profile_Picture_LZD0005.jpeg",
    "DateCreated": "2024-06-04T17:22:43.903",
    "AttachmentID": "397c26cf-6cfa-40f8-8a18-62485cc88f12",
    "EmployeeCode": "LZD0005",
    "FileSizeInBytes": 665439,
    "OriginalFileName": "Mobile_Profile_Picture_LZD0005.jpeg"
  },
  {
    "FileID": "74c2c9e1-39ad-4f38-bf7f-465ee7407024",
    "Source": "string",
    "FileName": "f9f5c608-056e-46c2-96d7-c38f966b22fe__download.png",
    "DateCreated": "2024-06-11T13:56:02.88",
    "AttachmentID": "ba688788-57d2-4d2a-af0c-41555368c6df",
    "EmployeeCode": "string",
    "FileSizeInBytes": 410,
    "OriginalFileName": "download.png"
  },
  {
    "FileID": "3c2866d9-ba7f-47b7-bb7b-52caac82faf6",
    "Source": "string",
    "FileName": "bbcb3c71-ec05-4727-9d56-73c57c354ab5__qr code transit.png",
    "DateCreated": "2024-06-11T14:29:29.66",
    "AttachmentID": "381889fb-1ec6-49af-96ed-bf496743bedc",
    "EmployeeCode": "string",
    "FileSizeInBytes": 117775,
    "OriginalFileName": "qr code transit.png"
  },
  {
    "FileID": "356b4492-2561-4fe1-8cea-419f3f898f7a",
    "Source": "string",
    "FileName": "b11a84d2-4ace-447a-9617-41dadf301156__2024-06-11_14-37-06.png",
    "DateCreated": "2024-06-11T14:37:34.66",
    "AttachmentID": "716c8b00-0970-46a3-b811-52b9d118fedb",
    "EmployeeCode": "string",
    "FileSizeInBytes": 47724,
    "OriginalFileName": "2024-06-11_14-37-06.png"
  }
]
```

**SDK Code**

```python Attachment - LIST (Retrieve FileID)
import requests

url = "https://server.bipocloud.com/tenant/api2/BIPOExport/GetListItem#postApi2BipoexportGetlistitem24"

payload = { "InterfaceCode": "BIPO-EMP-ATTCH" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Attachment - LIST (Retrieve FileID)
const url = 'https://server.bipocloud.com/tenant/api2/BIPOExport/GetListItem#postApi2BipoexportGetlistitem24';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"InterfaceCode":"BIPO-EMP-ATTCH"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Attachment - LIST (Retrieve FileID)
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://server.bipocloud.com/tenant/api2/BIPOExport/GetListItem#postApi2BipoexportGetlistitem24"

	payload := strings.NewReader("{\n  \"InterfaceCode\": \"BIPO-EMP-ATTCH\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Attachment - LIST (Retrieve FileID)
require 'uri'
require 'net/http'

url = URI("https://server.bipocloud.com/tenant/api2/BIPOExport/GetListItem#postApi2BipoexportGetlistitem24")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"InterfaceCode\": \"BIPO-EMP-ATTCH\"\n}"

response = http.request(request)
puts response.read_body
```

```java Attachment - LIST (Retrieve FileID)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://server.bipocloud.com/tenant/api2/BIPOExport/GetListItem#postApi2BipoexportGetlistitem24")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"InterfaceCode\": \"BIPO-EMP-ATTCH\"\n}")
  .asString();
```

```php Attachment - LIST (Retrieve FileID)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://server.bipocloud.com/tenant/api2/BIPOExport/GetListItem#postApi2BipoexportGetlistitem24', [
  'body' => '{
  "InterfaceCode": "BIPO-EMP-ATTCH"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Attachment - LIST (Retrieve FileID)
using RestSharp;

var client = new RestClient("https://server.bipocloud.com/tenant/api2/BIPOExport/GetListItem#postApi2BipoexportGetlistitem24");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"InterfaceCode\": \"BIPO-EMP-ATTCH\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Attachment - LIST (Retrieve FileID)
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["InterfaceCode": "BIPO-EMP-ATTCH"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://server.bipocloud.com/tenant/api2/BIPOExport/GetListItem#postApi2BipoexportGetlistitem24")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```