Web link

Web links are objects that point to URLs. These objects are also known as bookmarks within the Box web application.

Web link objects are treated similarly to file objects, they will also support most actions that apply to regular files.

Base
Mini
Standard

This resource has a few variations that can be encountered when using the API.

The fields that are part of the standard variant are generally returned when the resource is requested via its own API endpoints. For example, when retrieving a file by ID, it will return these fields unless the fields parameter has been specified.

string
1

The entity tag of this web link. Used with If-Match headers.

string
11446498

The unique identifier for this object

string
web_link

web_link

Value is one of file,folder,web_link,web_link

string
My Bookmark

The name of the web link

3

A numeric identifier that represents the most recent user event that has been applied to this item.

This can be used in combination with the GET /events-endpoint to filter out user events that would have occurred before this identifier was read.

An example would be where a Box Drive-like application would fetch an item via the API, and then listen to incoming user events for changes to the item. The application would ignore any user events where the sequence_id in the event is smaller than or equal to the sequence_id in the originally fetched resource.

string
https://www.example.com/example/1234

The URL this web link points to

string / date-time
2012-12-12T10:53:43-08:00

When this file was created on Box’s servers.

The user who created this web link

Example page

The description accompanying the web link. This is visible within the Box web application.

active

Whether this item is deleted or not. Values include active, trashed if the file has been moved to the trash, and deleted if the file has been permanently deleted

Value is one of active,trashed,deleted

string / date-time
2012-12-12T10:53:43-08:00

When this file was last updated on the Box servers.

The user who last modified this web link

The user who owns this web link

The parent object the web link belongs to

The path of folders to this link, starting at the root

string / date-time
2012-12-12T10:53:43-08:00

When this file will be permanently deleted.

string / date-time
2012-12-12T10:53:43-08:00

When this file was last moved to the trash.

Full

Response Example

{
  "created_at": "2012-12-12T10:53:43-08:00",
  "created_by": {
    "id": 11446498,
    "login": "ceo@example.com",
    "name": "Aaron Levie",
    "type": "user"
  },
  "description": "Example page",
  "etag": 1,
  "id": 11446498,
  "item_status": "active",
  "modified_at": "2012-12-12T10:53:43-08:00",
  "modified_by": {
    "id": 11446498,
    "login": "ceo@example.com",
    "name": "Aaron Levie",
    "type": "user"
  },
  "name": "My Bookmark",
  "owned_by": {
    "id": 11446498,
    "login": "ceo@example.com",
    "name": "Aaron Levie",
    "type": "user"
  },
  "parent": {
    "etag": 1,
    "id": 12345,
    "name": "Contracts",
    "sequence_id": 3,
    "type": "folder"
  },
  "path_collection": [
    {
      "id": 12345,
      "etag": 1,
      "type": "folder",
      "sequence_id": 3,
      "name": "Contracts"
    }
  ],
  "purged_at": "2012-12-12T10:53:43-08:00",
  "sequence_id": 3,
  "shared_link": {
    "access": "open",
    "download_count": 3,
    "download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg",
    "effective_access": "company",
    "effective_permission": "can_download",
    "is_password_enabled": true,
    "permissions": {
      "can_download": true,
      "can_preview": true
    },
    "preview_count": 3,
    "unshared_at": "2018-04-13T13:53:23-07:00",
    "url": "https://www.box.com/s/vspke7y05sb214wjokpk",
    "vanity_url": "https://acme.app.box.com/v/my_url/"
  },
  "trashed_at": "2012-12-12T10:53:43-08:00",
  "type": "web_link",
  "url": "https://www.example.com/example/1234"
}