/v2/action-gateway/connectionsCreate a Connection
Connects one of your users, identified by user_id, to a provider so tools can act on their
account. An OAuth connection starts pending, and authorization carries the URL to send the user to;
read the connection until it is active or expired. A connection through a team API-key credential is
active immediately.
There is one connection per provider and user_id for each DigitalOcean user who creates
connections. Repeating the request returns the existing connection when its scopes cover the
request, reusing a pending connection's link, and restarts an expired or revoked connection under
the same ID. Requesting scopes beyond an existing connection's, or a different credential, returns
400 until that connection is deleted.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
A 400 is returned: There was an error parsing the request body. A 401 is returned: Authentication failed due to invalid credentials. A 409 is returned: The request could not be completed due to a conflict. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. Any other status is an error: There was an unexpected error.