Test a Workspace Connection
const url = 'https://api.agentaab.com/api/app/example/workflow/connections/example/test/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
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/example/test/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Test the stored credential through the bounded provider adapter and atomically record sanitized test state and capabilities. The request body must be an empty object.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{}Responses
Section titled “Responses”The tested redacted Connection summary with sanitized cached capabilities.
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 request body is not an exact empty object.
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 Connection is unavailable or not mutable by this caller.
The Agent Business is not a Workflow, the creator identity conflicts, or a concurrent Connection mutation invalidated this test result.
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"}Creator session verification or Connection provider/credential verification failed. Raw upstream failures are not returned.
Creator auth, control-plane storage, mutation, credential decryption, outbound policy, or atomic test-state storage is unavailable.