Skip to main content
Solved

403 Error When Accessing the docgen_batches Endpoint

  • January 15, 2026
  • 1 reply
  • 98 views

Chandler Hansen
Forum|alt.badge.img

I have been attempting to initiate a DocGen process through the API, and am being met with a 403 error indicating insufficient permissions. According to the developer console, ‘Manage Doc Gen’ is checked and enabled. I even forced a token refresh to see if that would make things update. Those efforts have had no effect, and the 403 error is still present. Are there any further steps I can take?

The error response in full:
{"message":"Insufficient permissions: Document Generation scope not enabled for this OAuth application","status":"error","fileId":null}

The app’s service account is the one performing the action, and I have verified that it has access to all of the relevant folders and files the call is attempting to interact with.

Best answer by Chandler Hansen

For future reference, the solution was to give the service account explicit permissions to AI features in Box. While this issue was occurring, the account was in a group that had those permissions. However, it seems that service accounts do not inherit permissions from groups.

1 reply

Chandler Hansen
Forum|alt.badge.img
  • Author
  • New Participant
  • Answer
  • April 3, 2026

For future reference, the solution was to give the service account explicit permissions to AI features in Box. While this issue was occurring, the account was in a group that had those permissions. However, it seems that service accounts do not inherit permissions from groups.