getIntegrationsConnectorsByIdTokenWithHttpInfo method
Hands the custodied access token to its owner — the ONE place custody exits.
Hands the custodied access token to its owner — the ONE place custody exits. The (org,user)-keyed row IS the same-user gate: another user's id is simply "no row" → 404. fresh() auto-rotates within the refreshSkew window; static providers degenerate to a plain kmsGet of Secrets0. Refresh tokens are NEVER returned — custody keeps the sink. The token is never logged.
Note: This method returns the HTTP Response.
Parameters:
- String id (required): ID is the connector id, provider + ":" + label ("openai:default") — the auth-profile-id shape. Another user's id is simply no row, so 404.
Implementation
Future<Response> getIntegrationsConnectorsByIdTokenWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/v1/integrations/connectors/{id}/token'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}