Skip to content
Everruns Cloud is open in early access. Run agents without operating the platform.

Create api key connection.

POST
/v1/virtual-users/{identity_id}/connections/{provider}
curl --request POST \
--url https://app.everruns.com/api/v1/virtual-users/example/connections/example \
--header 'Content-Type: application/json' \
--data '{ "api_key": "example-api-key" }'
identity_id
required
string
provider
required
string
Media typeapplication/json

Request body for API-key connection creation (plugin-based providers). Accepts api_key plus any additional form fields as extra_fields.

object
api_key
required

Provider API key, encrypted before storage.

string
Example
example-api-key
key
additional properties

Additional provider-specific form fields (e.g. org_slug for Deno personal tokens).

Success

Media typeapplication/json

Connection info returned in API responses (never includes token)

object
connected_at
required

Time the grant was created.

string format: date-time
connection_type
required

Credential mechanism used by this connection.

string
provider
required

Stable provider identifier.

string
provider_username

Display name on the provider.

string | null
scopes

Provider scopes granted to this account.

string | null
Example
{
"connected_at": "2026-09-29T12:00:00Z",
"connection_type": "oauth",
"provider": "github",
"provider_username": "octocat",
"scopes": "read:user"
}

Authentication required

Permission denied

Virtual user not found