Box Developer Documentation

Join BoxWorks 2024 to discover what's possible with content and AI!

Register now!

Get allowed collaboration domain

get
https://api.box.com/2.0
/collaboration_whitelist_entries/:collaboration_whitelist_entry_id

Returns a domain that has been deemed safe to create collaborations for within the current enterprise.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
213123

The ID of the entry in the list.

Response

Returns an entry on the list of allowed domains.

application/jsonClient error

An unexpected client error.

get
Get allowed collaboration domain
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -i -X GET "https://api.box.com/2.0/collaboration_whitelist_entries/213123" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.collaborationAllowlistEntries.getCollaborationWhitelistEntryById(
  entry.id!,
);
Python Gen
client.collaboration_allowlist_entries.get_collaboration_whitelist_entry_by_id(entry.id)
.NET Gen
await client.CollaborationAllowlistEntries.GetCollaborationWhitelistEntryByIdAsync(collaborationWhitelistEntryId: NullableUtils.Unwrap(entry.Id));
Swift Gen (Beta)
try await client.collaborationAllowlistEntries.getCollaborationWhitelistEntryById(collaborationWhitelistEntryId: entry.id!)
.NET
string entryID = "11111";
BoxCollaborationWhitelistEntry entry = await client.CollaborationWhitelistManager.GetCollaborationWhitelistEntryAsync(
    entryID
);
Node
client.collaborationAllowlist.getAllowlistedDomain('12345', {}, callback);

Response Example

{
  "id": "11446498",
  "type": "collaboration_whitelist_entry",
  "created_at": "2012-12-12T10:53:43-08:00",
  "direction": "both",
  "domain": "example.com",
  "enterprise": {
    "id": "11446498",
    "type": "enterprise",
    "name": "Acme Inc."
  }
}