/v1/mgmt/outbound/app/tenant/oauthtoken/batch/uploadAuthorization
Descope Project ID and Management Key Project ID:Management Key as bearer token.
In: header
Request Body
application/json
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.
curl -X POST "https://api.descope.com/v1/mgmt/outbound/app/tenant/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}Batch Upload Outbound App User OAuth Tokens POST
### 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.
Rotate Access Key POST
Rotate an access key — regenerates the secret for an existing access key while preserving the same key ID, name, roles, tenants, expiry and metadata. The new cleartext is returned exactly once and the previous secret stops working immediately.