/v1/mgmt/outbound/app/user/oauthtoken/batch/uploadAuthorization
Descope Project ID and Management Key Project ID:Management Key as bearer token.
In: header
Request Body
application/json
Batch upload user OAuth tokens for an outbound application
Import pre-existing user-scoped OAuth tokens in a single request. This operation is all-or-nothing: if any token fails validation, the entire batch is rejected and no tokens are committed. Fix the reported failures and retry the full batch. Requires a management key.
curl -X POST "https://api.descope.com/v1/mgmt/outbound/app/user/oauthtoken/batch/upload" \ -H "Content-Type: application/json" \ -d '{}'{ "failures": [ { "appId": "string", "userId": "string", "tenantId": "string", "errorCode": "string", "reason": "string" } ]}/** * Shared response for both user and tenant batch endpoints. */export interface Response {failures?: SaveOAuthAppTokenFailure[]}/** * Shared failure descriptor for batch endpoints (response-only, never validated as input). * The SAME message is returned by both the user and tenant batch endpoints, so userId and tenantId * are `optional`: only the one relevant to the variant is populated, and the other is absent (not an * empty string) on the wire — callers of the user endpoint never see a stray tenantId and vice versa. */export interface SaveOAuthAppTokenFailure {appId?: stringuserId?: stringtenantId?: stringerrorCode?: stringreason?: string}Upload Outbound App Tenant OAuth Token POST
### Upload a tenant OAuth token for an outbound application Import a pre-existing tenant-scoped OAuth token into an outbound application without requiring the user to re-run the OAuth flow. Requires a management key.
Batch Upload Outbound App Tenant OAuth Tokens POST
### Batch upload tenant OAuth tokens for an outbound application Import pre-existing tenant-scoped OAuth tokens in a single request. This operation is all-or-nothing: if any token fails validation, the entire batch is rejected and no tokens are committed. Fix the reported failures and retry the full batch. Requires a management key.