[Python] Autodesk APS/Forge OAuth Token Request always returns 404 with both v1 and v2...

Discussão em 'Python' iniciado por Stack, Setembro 2, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to connect to the Autodesk Construction Cloud (ACC) API using a server-to-server app created in the official Autodesk APS (Forge) developer portal. My goal is to automate asset upload (and other tasks) via Python using 2-legged OAuth (grant_type=client_credentials). Despite following the official documentation and community guidelines, I always receive a 404 Not Found error when trying to fetch an access token – regardless of which of the documented URLs I use.

    What I have done:

    Created a Server-to-Server (client credentials) app in the APS/Forge developer portal My client ID: tA9HQv5AKK8nnd1IbO3hIVcXk6Z3ckcMCGuzjHaNarQ45W8I Registered the app as a Custom Integration in ACC Account Admin Enabled the necessary modules ("Assets"), selected my target project, etc. Double-checked the client ID and secret (manually, no copy/paste glitches) Tried both documented token endpoints: https://developer.api.autodesk.com/authentication/v1/authenticate https://developer.api.autodesk.com/oauth/v2/token Made the token request using the simplest possible Python code (see below) Tried various networks (corporate, home, mobile hotspot) Tried with additional scopes relevant for construction services

    Used both endpoints (v1 and v2) multiple times Double-checked for typos, whitespace, hidden chars in credentials Tried from several machines and Internet connections Validated all app settings, permissions, module/project assignment in ACC (via Account Admin) Checked that the app is "active" and is a Server-to-Server app in the developer portal

    Continue reading...

Compartilhe esta Página