Skip to content

PluginAuthCodeExchangeRequest

HTTP API schema

PluginAuthCodeExchangeRequest fields

pluginIdstringRequired

The ID of the plugin for which we are attempting to exchange the code for an access token for.

minLength: 1

authLinkIdstring

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.

principalIdstringRequired

The authenticated Port OS principal, addressed as ~self.

pattern: "^~self$"

authorizationVariantIdstring

Authorization variant being established. Optional when the plugin has one variant; a renewal keeps the link's stored variant and rejects a different one.

regionalizationIdstring

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.

pluginAuthenticationDataobjectRequired

The data to exchange the code with. This is opaque data that is bespoke to the plugin and the plugin's authentication flow.

View source specification ↗