# bookmarks.get

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

One import with every link (root bar/other, folder path, title, URL), examples of rejected links and its last 200 per-profile applications you can see.

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

## Parameters

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

## Response

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

| Field | Type | Always present | Description |
|---|---|---|---|
| `data` | object | yes |  |
| `data.id` | string (uuid) | yes |  |
| `data.name` | string | yes |  |
| `data.source_name` | string | no |  |
| `data.links` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.folders` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.rejected_count` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.rejected` | array<object> | no | Up to 50 examples (title and scheme only) |
| `data.rejected[].reason` | "unsafe_scheme" \| "invalid_url" \| "credentials" \| "too_long" \| "too_deep" \| "over_limit" | yes |  |
| `data.rejected[].title` | string | yes |  |
| `data.rejected[].scheme` | string | yes |  |
| `data.duplicates_in_file` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.sha256` | string | yes |  |
| `data.created_at` | string | yes |  |
| `data.pending` | integer | yes | Profiles that still wait for (or are applying) this import (min -9007199254740991, max 9007199254740991) |
| `data.applied` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.items` | array<object> | yes |  |
| `data.items[].root` | "bar" \| "other" | yes |  |
| `data.items[].path` | array<string> | yes |  |
| `data.items[].title` | string | yes |  |
| `data.items[].url` | string | yes |  |
| `data.applications` | array<object> | yes |  |
| `data.applications[].id` | string (uuid) | yes |  |
| `data.applications[].profile_id` | string (uuid) | yes |  |
| `data.applications[].profile_name` | string | no |  |
| `data.applications[].profile_number` | integer | no | (min -9007199254740991, max 9007199254740991) |
| `data.applications[].set_id` | string (uuid) | no |  |
| `data.applications[].set_name` | string | yes |  |
| `data.applications[].mode` | "merge" \| "replace" | yes |  |
| `data.applications[].scope` | "folder" \| "all" | yes |  |
| `data.applications[].folder` | string | no |  |
| `data.applications[].state` | "pending" \| "applying" \| "applied" \| "failed" \| "cancelled" | yes |  |
| `data.applications[].rev` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.applications[].session_id` | string (uuid) | no |  |
| `data.applications[].result` | object | no |  |
| `data.applications[].result.added` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.applications[].result.duplicates` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.applications[].result.removed` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.applications[].reason` | string | no |  |
| `data.applications[].created_at` | string | yes |  |
| `data.applications[].updated_at` | string | yes |  |
| `correlation_id` | string (uuid) | yes |  |

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/bookmarks/imports/<id>" \
  -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("bookmarks.get", { path: { id: "<id>" } });
console.log(reply.data);
```

## Example (Python)

```python
import os
import requests

r = requests.get(
    "https://browlix.com/api/public/v1/bookmarks/imports/<id>",
    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": "bookmarks_get",
    "arguments": {
      "id": "<id>"
    }
  }
}
```
