godo.HostedAgents.StartProviderAuth()
Generated on 5 Nov 2026
from godo version
v1.236.0
Usage
client.HostedAgents.StartProviderAuth(ctx context.Context, provider string) (*godo.HostedAgentProviderAuthStart, *godo.Response, error)Description
StartProviderAuth begins (or resumes) the team-scoped connect flow for an
external provider. The server derives the team from the authenticated
principal, so the POST carries an empty JSON object body.
Parameters
providerstring required
Returns
- *godo.HostedAgentProviderAuthStart
- *godo.Response
The HTTP response, with pagination
Links,Meta, andRatelimit information.- error
Non-nil when the request fails. API errors are returned as
*godo.ErrorResponse.
Fields of godo.HostedAgentProviderAuthStart
HostedAgentProviderAuthStart is returned by POST /v2/harness-runtime/auth/{provider}.
Status is “pending” when the user must still authorize in a browser
(ConnectURL/PollURL/VerificationCode are set), or “success” when the team is
already connected (those fields are empty). It is a free-form connect-flow
status, distinct from the HostedAgentProviderAuthState session field. The
authorization handle is never exposed: tokens are exchanged server-side at
session time.
ProviderstringStatusstringConnectURLstringPollURLstringVerificationCodestringExpiresAt*godo.Timestamp
Request Sample
More Information
See the Go package documentation for the source of this method.