# profiles.bookmarks

`GET /api/public/v1/profiles/{id}/bookmarks`

One profile's bookmark revision and its last 50 imports: waiting, applying, applied (added / already there / removed) or failed with the browser's reason.

- Capability: `profile.read`
- Command: no
- MCP tool: `profiles_bookmarks`

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes | Profile id |

## Response

`200` with `{ data, correlation_id }`.

| Field | Type | Always present | Description |
|---|---|---|---|
| `data` | array<object> | yes |  |
| `data[].id` | string (uuid) | yes |  |
| `data[].profile_id` | string (uuid) | yes |  |
| `data[].profile_name` | string | no |  |
| `data[].profile_number` | integer | no | (min -9007199254740991, max 9007199254740991) |
| `data[].set_id` | string (uuid) | no |  |
| `data[].set_name` | string | yes |  |
| `data[].mode` | "merge" \| "replace" | yes |  |
| `data[].scope` | "folder" \| "all" | yes |  |
| `data[].folder` | string | no |  |
| `data[].state` | "pending" \| "applying" \| "applied" \| "failed" \| "cancelled" | yes |  |
| `data[].rev` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data[].session_id` | string (uuid) | no |  |
| `data[].result` | object | no |  |
| `data[].result.added` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data[].result.duplicates` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data[].result.removed` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data[].reason` | string | no |  |
| `data[].created_at` | string | yes |  |
| `data[].updated_at` | string | yes |  |
| `correlation_id` | string (uuid) | yes |  |
| `rev` | integer | no | (min -9007199254740991, max 9007199254740991) |
| `can_import` | boolean | no |  |

New fields can appear at any time; ignore the ones you do not know.

## Errors

| Code | HTTP | Retryable |
|---|---|---|
| `UNAUTHENTICATED` | 401 | no |
| `FORBIDDEN` | 403 | no |
| `RATE_LIMITED` | 429 | yes |
| `VALIDATION_FAILED` | 422 | no |
| `NOT_FOUND` | 404 | no |
| `DEPENDENCY_UNAVAILABLE` | 503 | yes |
| `UNKNOWN` | 500 | no |

## Example (curl)

```bash
curl "https://browlix.com/api/public/v1/profiles/<id>/bookmarks" \
  -H "Authorization: Bearer $BROWLIX_API_KEY"
```

## Example (TypeScript SDK)

```ts
import { Browlix } from "@browlix/sdk";

const bx = new Browlix({ apiKey: process.env.BROWLIX_API_KEY! });
const reply = await bx.call("profiles.bookmarks", { path: { id: "<id>" } });
console.log(reply.data);
```

## Example (Python)

```python
import os
import requests

r = requests.get(
    "https://browlix.com/api/public/v1/profiles/<id>/bookmarks",
    headers={"Authorization": f"Bearer {os.environ['BROWLIX_API_KEY']}"},
    timeout=60,
)
print(r.status_code, r.json())
```

## Example (MCP)

```json
{
  "method": "tools/call",
  "params": {
    "name": "profiles_bookmarks",
    "arguments": {
      "id": "<id>"
    }
  }
}
```
