Register a BYO provider credential for the workspace [admin]

Changed on

Stores the encrypted provider credential and elects the provider for the workspace. The credential is write-only and never returned by any API. Setting a new credential replaces the old one. 404 when BYO_POD_PROVIDER is not enabled for this workspace. 503 not_migrated before the credential table exists.

put/universes/{slug}/pod-provider

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/universes/{slug}/pod-provider
  • Auth
    HTTP bearer

Path parameters

slugstring required

The workspace slug.

Request body

provider'e2b' | 'sandbox-oss' | 'daytona' required

The provider to elect.

credentialstring required

The provider API key (write-only; never returned).

labelstring

Optional human-readable label.

Response

Credential stored and provider elected.

provider'e2b' | 'sandbox-oss' | 'daytona'

The elected provider.

labelstring nullable

The admin-supplied label for this credential.

has_credentialboolean

Always true when the response is present.

Changes