Skip to main content
Chandler Hansen
New Participant
Jan 15, 2026 4:59 PM UTC
Solved

403 Error When Accessing the docgen_batches Endpoint

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.

Chandler Hansen
New Participant
Apr 3, 2026 10:48 PM UTC

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
Chandler HansenAuthorAnswer
New Participant
Apr 3, 2026 10:48 PM UTC

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.

Translate