Skip to main content
Question

Accepting collaboration invite with service accounts

  • Oct 22, 2026 8:52 PM UTC
  • 3 replies
  • 83 views
  • Translate All

Forum|alt.badge.img

We’re new to Box and we have a client who wants to share files with us using the platform. On our side we want to integrate Box with our internal platform so we can pull the files in.  We created a platform app in the developer console and shared the service account email with the client.  The client then shared the folder with the service account.

On our side, we can connect successfully via API using the access credentials provided during the platform app setup, but we are unable to accept the collaboration invite from the client, which is preventing the app from being able to see the contents of the folder.

The documentation here says that we can just invite the service account like we would a normal user:

A Service Account has its own folder tree, which starts empty. To give it access to existing content:

  • By email: Invite the Service Account using its assigned email address, just as you would invite any other collaborator.

Can anyone help point us in the right direction on this?  Should we be approaching this differently?

3 replies

Viktar
  • Box Employee
  • Oct 27, 2026 10:44 AM UTC

Hi ​@weloit ,
please try the following:

  • Call GET https://api.box.com/2.0/collaborations?status=pending with your Service Account token to find the collaboration ID.
  • Call PUT https://api.box.com/2.0/collaborations/{collaboration_id} with {"status": "accepted"}.
Translate

Forum|alt.badge.img
  • Author
  • New Participant
  • Oct 27, 2026 9:36 PM UTC

​@Viktar thanks for the help.  The GET call succeeds, and we see the collaboration invite, but when we run the PUT with the collaboration_ID, we get an MFA error:

 

{
"type": "error",
"status": 400,
"code": "needs_two_factor_authentication",
"help_url": "http://developers.box.com/docs/#errors",
"message": "Two-factor authentication required to accept collaboration or change ownership",
"request_id": "<id>"
}

We’re assuming now that the client enterprise has a setting to require MFA for all collaboration invites.

Translate

Viktar
  • Box Employee
  • Oct 28, 2026 10:21 AM UTC

​@weloit , got it, I believe there are 3 workarounds:

  1. Invert ownership

    • Have your Service Account create the intake folder inside your Box enterprise.
    • Invite the client as an Editor or Uploader
    • The client accepts and uploads files directly into your folder
  2. Managed user with As-User

    • Have the client invite a managed user from your enterprise and accept the invitation.

    • Have your Service Account access the folder via API using the As-User: <managed_user_id> HTTP header.

  3. Box file request

    • If the client only needs to send files, create a Box file request link on a destination folder for direct, secure uploads without collaboration invites.
Translate