> ## 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.

# Get Pending Collaborations

To get the pending collaborations for a user, call the `GET /collaborations` API
with a `status` of `pending`.

<CodeGroup>
  ```sh cURL theme={null}
  curl -i -X GET "https://api.box.com/2.0/collaborations?status=pending" \
       -H "authorization: Bearer <ACCESS_TOKEN>"
  ```

  ```typescript Node/TypeScript v10 theme={null}
  await client.listCollaborations.getCollaborations({
    status: 'pending' as GetCollaborationsQueryParamsStatusField,
  } satisfies GetCollaborationsQueryParams);
  ```

  ```python Python v10 theme={null}
  client.list_collaborations.get_collaborations(GetCollaborationsStatus.PENDING)
  ```

  ```cs .NET v10 theme={null}
  await client.ListCollaborations.GetCollaborationsAsync(queryParams: new GetCollaborationsQueryParams(status: GetCollaborationsQueryParamsStatusField.Pending));
  ```

  ```swift Swift v10 theme={null}
  try await client.listCollaborations.getCollaborations(queryParams: GetCollaborationsQueryParams(status: GetCollaborationsQueryParamsStatusField.pending))
  ```

  ```java Java v10 theme={null}
  client.getListCollaborations().getCollaborations(new GetCollaborationsQueryParams(GetCollaborationsQueryParamsStatusField.PENDING))
  ```

  ```java Java v5 theme={null}
  Collection<BoxCollaboration.Info> pendingCollaborations =
      BoxCollaboration.getPendingCollaborations(api);
  ```

  ```python Python v4 theme={null}
  pending_collaborations = client.get_pending_collaborations()
  for pending_collaboration in pending_collaborations:
      print(f'Collaboration {pending_collaboration.id} is pending')
  ```

  ```cs .NET v6 theme={null}
  BoxCollection<BoxCollaboration> pendingCollabs = await CollaborationsManager
      .GetPendingCollaborationAsync();
  ```

  ```javascript Node v4 theme={null}
  client.collaborations.getPending()
  	.then(collaborations => {
  		/* collaborations -> {
  			total_count: 1,
  			entries: [
  				{
  					type: 'collaboration',
  					id: '11111',
  					created_by: {
  						type: 'user',
  						id: '22222',
  						name: 'Example User',
  						login: 'user@example.com'
  					},
  					created_at: '2011-11-29T12:56:35-08:00',
  					modified_at: '2012-09-11T15:12:32-07:00',
  					expires_at: null,
  					status: 'pending',
  					accessible_by: {
  						type: 'user',
  						id: '33333',
  						name: 'Collaborator User',
  						login: 'collaborator@example.com'
  					},
  					role: 'editor',
  					acknowledged_at: '2011-11-29T12:59:40-08:00',
  					item: null
  				}
  			]
  		}
  		*/
  	});
  ```
</CodeGroup>

<Warning>
  This only returns the current list of pending collaborations for a user. This
  API does not allow for returning all collaborations for a user.
</Warning>
