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

# Get Folder Breadcrumbs

GET https://business.me-mate.net/partners/wp-gallery/manage/folders/%7Bfolder_id%7D/breadcrumbs

## Get Folder Breadcrumbs

Retrieves the **breadcrumb path** for a specific folder.\
This helps build navigation showing the folder hierarchy from the root to the selected folder.

**Method:** `GET`\
**URL:** `{{base_url}}/folders/{{folder_id}}/breadcrumbs`

***

## Authentication

This endpoint requires authentication.

Use a **Bearer token** in the `Authorization` header:

```http
Authorization: Bearer {{access_token}}
```

***

## Headers

| Header        | Value                      |
| ------------- | -------------------------- |
| Authorization | Bearer \{\{access\_token}} |

***

## Path Parameters

| Parameter   | Type    | Required | Description                                         |
| ----------- | ------- | -------- | --------------------------------------------------- |
| `folder_id` | integer | Yes      | ID of the folder for which breadcrumbs are required |

Example endpoint:

```
{{base_url}}/folders/{{folder_id}}/breadcrumbs
```

***

## Required Variables

| Variable       | Required | Description                           |
| -------------- | -------- | ------------------------------------- |
| `base_url`     | Yes      | Base API URL                          |
| `access_token` | Yes      | Authentication access token           |
| `folder_id`    | Yes      | Folder ID to retrieve breadcrumb path |

***

## Sample Request

```bash
curl --request GET "{{base_url}}/folders/{{folder_id}}/breadcrumbs" \
  --header "Authorization: Bearer {{access_token}}"
```

***

## Sample Success Response

A successful request typically returns **HTTP 200 OK**.

```json
{
  "success": true,
  "data": [
    {
      "id": 9,
      "name": "test"
    },
    {
      "id": 10,
      "name": "test2"
    }
  ]
}
```

***

## Response Fields

| Field  | Type    | Description                      |
| ------ | ------- | -------------------------------- |
| `id`   | integer | Folder ID in the breadcrumb path |
| `name` | string  | Folder name                      |

***

## Notes

* The breadcrumb list is returned **in hierarchical order**.
* The first item is the **top-level parent folder**, and the last item is the **current folder**.
* Useful for building **folder navigation UI**, such as:

```
test / test2
```

Example UI usage:

```javascript
breadcrumbs.map(folder => {
  return `<a href="/folders/${folder.id}">${folder.name}</a>`;
});
```

Reference: https://apidocs.me-mate.net/business-me-mate-net-ap-is-document-v-1-0/messenger-mate-gallery-app-file-upload-folder-management-api/folder-management-ap-is/get-folder-breadcrumbs

## Response

### 200

OK

- `data` (list of object, required)
  - `id` (integer, required)
  - `name` (string, required)
- `success` (boolean, required)

## Examples

**Response**

```json
{
  "data": [
    {
      "id": 9,
      "name": "test"
    },
    {
      "id": 10,
      "name": "test2"
    }
  ],
  "success": true
}
```

**SDK Code**

```python
import requests

url = "https://business.me-mate.net/partners/wp-gallery/manage/folders/%7Bfolder_id%7D/breadcrumbs"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://business.me-mate.net/partners/wp-gallery/manage/folders/%7Bfolder_id%7D/breadcrumbs';
const options = {method: 'GET'};

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

```go
package main

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

func main() {

	url := "https://business.me-mate.net/partners/wp-gallery/manage/folders/%7Bfolder_id%7D/breadcrumbs"

	req, _ := http.NewRequest("GET", url, nil)

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://business.me-mate.net/partners/wp-gallery/manage/folders/%7Bfolder_id%7D/breadcrumbs")

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

request = Net::HTTP::Get.new(url)

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

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://business.me-mate.net/partners/wp-gallery/manage/folders/%7Bfolder_id%7D/breadcrumbs")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://business.me-mate.net/partners/wp-gallery/manage/folders/%7Bfolder_id%7D/breadcrumbs');

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

```csharp
using RestSharp;

var client = new RestClient("https://business.me-mate.net/partners/wp-gallery/manage/folders/%7Bfolder_id%7D/breadcrumbs");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://business.me-mate.net/partners/wp-gallery/manage/folders/%7Bfolder_id%7D/breadcrumbs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
```