Registers a provider profile for a configuration home on this node's execution environment; the homes are validated on the server and must already exist.
const url = 'https://example.com/v1/m/sessions/provider-profiles';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"auth_source":"","config_home":"example","display_name":"example","driver":"example","environment_ref":"example","provider_record_ref":"example","session_egress_hosts":["example"],"session_programs":["example"],"session_registries":[{"kind":"npm","scope":"example","secret":"example","url":"example"}],"session_work_grant":{"capabilities":["work.read"],"role":"orchestrator","workspace_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"},"user_home":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/m/sessions/provider-profiles \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "auth_source": "", "config_home": "example", "display_name": "example", "driver": "example", "environment_ref": "example", "provider_record_ref": "example", "session_egress_hosts": [ "example" ], "session_programs": [ "example" ], "session_registries": [ { "kind": "npm", "scope": "example", "secret": "example", "url": "example" } ], "session_work_grant": { "capabilities": [ "work.read" ], "role": "orchestrator", "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "user_home": "example" }'Registers a provider profile for a configuration home on this node’s execution environment; the homes are validated on the server and must already exist.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ”object
Authorized authentication source for this profile: provider_account_home (the child uses the saved login inside its own homes) or managed_injection (a provider-compatible credential minted by that driver’s governed adapter). They are distinct authorizations with no fallback between them; empty authorizes neither and refuses every launch whose driver requires one.
Absolute path of the provider configuration directory on this node; symlinks are resolved and the canonical path is stored.
Provider driver key, lower-cased ([a-z0-9][a-z0-9._-]*). Open set; only drivers with an operated runner on this node are launchable.
HTTPS hosts a confined session may reach beside its bound provider (a Git host, a module mirror); none by default. Each is admitted only at public addresses, whatever its name resolves to. Declaring hosts needs tenant administration and is recorded in the audit ledger. On PATCH, [] withdraws the declaration and null or omission keeps it.
Installed third-party programs (the tool installer’s program names) put first on each session’s PATH. A launch whose program is not installed is refused 409. Declaring programs needs tenant administration. On PATCH, [] withdraws the declaration and null or omission keeps it.
Npm registries each native session installs from. The token travels in a per-launch npm configuration file, never in the environment or argv, and a confined session’s network reaches the registry hosts. Declaring registries needs tenant administration. On PATCH, [] withdraws the declaration and null or omission keeps it.
object
An npm scope (@name) routed to this registry; empty makes it the default registry, one per profile.
The tenant vault secret (env/…) holding the registry token. Empty sends none.
The registry’s base URL: https, or http on a loopback host.
Absolute path used as HOME for the launched process; validated like config_home.
Responses
Section titled “ Responses ”OK
object
Example generated
{}Bad request
object
Example generated
{}Unauthenticated
object
Example generated
{}Forbidden
object
Example generated
{}Not found
object
Example generated
{}Conflict / setup required
object
Example generated
{}Rate limited
object
Example generated
{}