> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Collaborations

> Grant users and groups role-based access to files and folders, manage pending invitations, and apply collaboration domain restrictions.

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = localizeLink(href);
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

Collaborations define access permissions for users and groups on files and folders, similar to access control lists. A collaboration object grants a user or group access to a file or folder with permissions defined by a specific role.

Use the guides in this section when you need to invite collaborators, share with groups, handle pending invitations, or manage enterprise collaboration domain restrictions through the API.

## How collaborations work

When you create a collaboration, you specify three things:

1. **Item** — The file or folder being shared (`type` of `file` or `folder`, plus its `id`).
2. **Accessible by** — Who receives access: a `user` (by ID or email login) or a `group` (by ID).
3. **Role** — The permission level granted to that user or group.

Box applies the same permission model through the API as in the Box web app. You cannot bypass content permissions or the [waterfall folder structure][waterfall] by using the API. Access tokens only succeed against content the authenticated user owns or is a collaborator on — see the <Link href="/guides/security">security overview</Link>.

Collaborations are distinct from <Link href="/guides/shared-links/index">shared links</Link>. Shared links provide URL-based access to an item. Collaborations grant role-based access to a specific user or group and appear in the item's collaborator list.

## Roles

The collaboration roles are `editor`, `viewer`, `previewer`, `uploader`, `previewer uploader`, `viewer uploader`, `co-owner`, and `owner`.

For a full description of each role, see the [collaborator permission levels][support documentation] support article.

## Collaboration status

A collaboration invitation can be in one of these states:

| Status     | Meaning                             |
| ---------- | ----------------------------------- |
| `pending`  | The invitee has not accepted yet    |
| `accepted` | The collaborator has access         |
| `rejected` | The invitee declined the invitation |

You can list pending invitations for the current user with <Link href="/guides/collaborations/pending">`GET /collaborations?status=pending`</Link>.

## Users and groups

* **Users** — Share with a managed or external user by user ID or email. See <Link href="/guides/collaborations/share-content">Share content with a user</Link>.
* **Groups** — Share once with a Box group so every group member inherits the same role. See <Link href="/guides/collaborations/groups">Sharing with groups</Link>.

You can also build integrations that create Box groups from external systems and collaborate those groups on folders — for example, the <Link href="/guides/collaborations/connect-slack-to-group-collabs/index">Slack group collaborations</Link> tutorial.

## Enterprise domain restrictions

Admins can limit who can be invited as collaborators by allowing only specific email domains. Applications with the right permissions can add, list, and delete those allowed domains programmatically. See <Link href="/guides/collaborations/allowed-domains/index">Allowed collaboration domains</Link>.

## Quick example

Invite a user as an editor on a folder:

```bash theme={null}
curl -X POST https://api.box.com/2.0/collaborations \
  -H "Authorization: Bearer ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "item": { "type": "folder", "id": "FOLDER_ID" },
    "accessible_by": { "type": "user", "login": "user@example.com" },
    "role": "editor"
  }'
```

## Guides in this section

<CardGroup cols={2}>
  <Card title="Share content with a user" icon="user-plus" href={localizeLink("/guides/collaborations/share-content")}>
    Create a collaboration on a file or folder for a user by ID or email.
  </Card>

  <Card title="Sharing with groups" icon="users" href={localizeLink("/guides/collaborations/groups")}>
    Grant the same role to every member of a Box group in one collaboration.
  </Card>

  <Card title="Pending collaborations" icon="clock" href={localizeLink("/guides/collaborations/pending")}>
    List invitations the current user has not accepted yet.
  </Card>

  <Card title="Allowed collaboration domains" icon="globe" href={localizeLink("/guides/collaborations/allowed-domains/index")}>
    Manage enterprise allow-lists that restrict which email domains can collaborate.
  </Card>

  <Card title="Connect Slack to group collaborations" icon="slack" href={localizeLink("/guides/collaborations/connect-slack-to-group-collabs/index")}>
    Sync Slack channels to Box groups and share files with the channel in one command.
  </Card>
</CardGroup>

[support documentation]: https://support.box.com/hc/en-us/articles/360044196413-Understanding-Collaborator-Permission-Levels

[waterfall]: https://support.box.com/hc/en-us/articles/360043697254-Understanding-Folder-Permissions
