connectIntegrationWithCredentials
Connects an existing integration using a username/password credential pair. The integration class exchanges the credentials for an access token (and any refresh material) and persists the resulting tokens encrypted on the integration record. Username and password are NOT persisted.
Use this mutation when the WMS exposes a /auth/token-style endpoint
that accepts username + password and returns a token pair.
Authentication Requirements
- Header
Authorizationmust be provided - Header
X-Company-Idmust be provided
Possible Errors
- Integration not found in the requesting company
- Integration of the given type does not support credential exchange
- Upstream auth failure (bad credentials, MFA, rate limit) — surfaces
as
Error::Authenticationwith HTTP 401
connectIntegrationWithCredentials(
input: ConnectIntegrationWithCredentialsInput!
): Integration!
Arguments
connectIntegrationWithCredentials.input ● ConnectIntegrationWithCredentialsInput! non-null input common
Parameters for ConnectIntegrationWithCredentials