PluginAuthCodeExchangeRequest
HTTP API schema
PluginAuthCodeExchangeRequest fields
- pluginId
stringRequired The ID of the plugin for which we are attempting to exchange the code for an access token for.
minLength: 1
- authLinkId
string Optional existing auth link to renew. It must belong to the requester, reference this plugin, and permit auth-link-write; renewal preserves its endpoint and route identities.
- principalId
stringRequired The authenticated Port OS principal, addressed as ~self.
pattern: "^~self$"
- authorizationVariantId
string Authorization variant being established. Optional when the plugin has one variant; a renewal keeps the link's stored variant and rejects a different one.
- regionalizationId
string Regionalization being established. Optional only when the chosen variant allows exactly one; a renewal keeps the link's stored regionalization and rejects a different one. Changing region or variant requires connecting a new link.
- pluginAuthenticationData
objectRequired The data to exchange the code with. This is opaque data that is bespoke to the plugin and the plugin's authentication flow.