pydo.connections.create()
Generated on 1 Oct 2026
from pydo version
v0.43.0
Usage
client.connections.create(
body={
"provider": "jira",
"user_id": "alice",
"scopes": [...],
...,
},
)Description
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.
Parameters
providerstring requiredExample:
jiraRequired provider slug, from the provider list.
user_idstring requiredExample:
aliceRequired. Your identifier for the user the connection acts for: 1 to 64 characters from
[A-Za-z0-9._-]. A session whoseactor_idequals it uses this connection.scopesarray of strings optionalExample:
['write:jira-work']Optional OAuth scopes to request. Defaults to every scope the provider offers; scopes outside that set are rejected. Ignored for API-key credentials.
connection_parametersobject optionalExample:
{'site_url': 'https://example.atlassian.net'}Values for the provider's
connection_parameters, validated against their specifications.credentialobject optionalOptional credential to connect through. Omitted uses DigitalOcean's shared OAuth application.
Show child properties
digitalocean_oauthobject optionalUse DigitalOcean's shared OAuth application.
team_credentialobject optionalUse one of your team's provider credentials.
Show child properties
credential_idstring optionalExample:
8d6f2b1a-3c4e-4d5f-9a8b-7c6d5e4f3a2bRequired. ID of an active provider credential for the same provider that you can use.
networkobject optionalOptional private network for the connection's calls. Requires VPC networking to be enabled for your account (403 otherwise).
Show child properties
vpcobject optionalRoute through a VPC.
Show child properties
vpc_uuidstring optionalExample:
5a4981aa-9653-4bd1-bef5-d6bff52042e4UUID of a VPC owned by your team.
destinationsarray of objects optionalPrivate hosts the connection's calls may reach through the VPC. At least one is required.
Show child properties
hoststring optionalExample:
jira.internal.example.comHost name or IP address. It must resolve only to private addresses.
portinteger optionalExample:
443Port, 1 to 65535.
allowed_ip_cidrsarray of strings optionalExample:
['10.116.0.0/20']Optional CIDR ranges; when set, every address the host resolves to must fall within one of them.
Request Sample
Response Example
More Information
See /v2/action-gateway/connections in the API reference for additional detail on responses, headers, parameters, and more.