Create a Workspace Connection
const url = 'https://api.agentaab.com/api/app/example/workflow/connections/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"display_name":"example","provider":"web_search","credential_mode":"x_api_key","secret":"example","configuration":{}}'};
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://api.agentaab.com/api/app/example/workflow/connections/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "display_name": "example", "provider": "web_search", "credential_mode": "x_api_key", "secret": "example", "configuration": {} }'Encrypt and store one Workspace Connection. Use Idempotency-Key so an ambiguous create can be recovered safely. Organization-scoped mutation requires the organization owner.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Stable create mutation identifier used for exact replay and recovery.
Request Bodyrequired
Section titled “Request Bodyrequired”object
A non-empty, well-formed UTF-16 write-only credential of at most 65,536 UTF-8 encoded bytes. It is encrypted by the service and never returned.
Bounded non-secret provider configuration.
object
object
A non-empty, well-formed UTF-16 write-only credential of at most 65,536 UTF-8 encoded bytes. It is encrypted by the service and never returned.
Exact canonical HTTPS URL serialization accepted unchanged by the Runtime URL parser. Authority and a slash-prefixed path are required; user information, query parameters, fragments, and whitespace are forbidden.
Bounded non-secret provider configuration.
object
Responses
Section titled “Responses”The Connection was created. The submitted credential is not returned.
object
Redacted Workspace Connection state. It contains a server-managed reference and sanitized capabilities, never private credential material.
object
Opaque server-managed reference used by materialized v1 Tool bindings.
object
Bounded provider configuration with credential-shaped fields forbidden.
object
Sanitized bounded capability marker or MCP Tool manifest from the last successful test.
object
Example
{ "connection": { "scope": { "kind": "creator" }, "provider": "web_search", "credential_mode": "bearer", "status": "active", "last_error_code": "workspace_connection_test_required" }}The bounded request or Connection fields are invalid.
object
Stable public-safe Workspace Connection error identifier.
Example
{ "code": "workspace_connection_failed"}The creator session is missing, invalid, expired, or does not have a verified email.
object
Example
{ "code": "creator_session_required"}A public Agent Business runtime credential cannot access creator control-plane APIs.
object
Example
{ "code": "runtime_token_not_allowed"}The Workflow or mutable Connection scope is unavailable to this creator.
The Agent Business is not a Workflow, the creator identity conflicts, the idempotency key conflicts, the scope is at capacity, or a concurrent mutation won.
The bounded request exceeds 96 KiB.
object
Stable public-safe Workspace Connection error identifier.
Example
{ "code": "workspace_connection_failed"}An unexpected Workspace Connection failure was sanitized before returning it.
object
Example
{ "code": "workspace_connection_failed"}The configured creator identity service failed while verifying the session.
object
Example
{ "code": "creator_session_verification_failed"}Creator auth, control-plane storage, mutations, encryption, or authoritative Connection storage is unavailable.