OAuth
Import OAuth tokens
Stores OAuth tokens you obtained yourself (e.g. via the SDK's runOAuthLogin — interactive loopback, headless, or client-credentials) for this server, scoped to your user, project, and server. Subsequent API calls against the server inject the stored access token automatically, and 401s from the server trigger a server-side refresh — no further caller involvement.
This closes the loop after an OAUTH_REQUIRED error.
post/projects/{projectId}/servers/{serverId}/oauth/import-tokens
Path parameters
projectIdstring required
ID of the hosted project that contains the server.
serverIdstring required
ID of the server inside the project.
Request body
Response
Tokens stored.