Skip to content
gist.link ↗

createConnection

Mutation Automate API — POST https://automate.api.gist.link/graphql

Save a connector connection (OAuth token / API key / etc). Credentials are encrypted at rest. Authenticated org member.

automate:mutation:createConnection

The calling IAM key must hold this permission (or a wildcard that covers it: automate:mutation:* or automate:*) and the access token must have been minted with audience=automate. See Permissions.

type Mutation {
createConnection(input: CreateConnectionInput!): Connection!
}
Argument Type Required Description
input CreateConnectionInput! Yes —

Connection! — see the Automate types reference.

Terminal window
curl https://automate.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CreateConnection($input: CreateConnectionInput!) { createConnection(input: $input) { id uuid name status created_at updated_at } }",
"variables": {
"input": {
"connectorKey": "example",
"name": "Example"
}
}
}
JSON