{ "opencollection": "1.0.0", "info": { "name": "Barndoor Platform Agents Connections API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Connections", "type": "folder" }, "items": [ { "info": { "name": "Get Connection Status", "type": "http" }, "http": { "method": "GET", "url": "https://{organization_id}.platform.barndoor.ai/api/servers/:server_id/connection", "params": [ { "name": "server_id", "value": "123e4567-e89b-12d3-a456-426614174000", "type": "path", "description": "Server UUID" } ] }, "docs": "Get the user's connection status for a specific server.\nUsed to poll connection status during OAuth flows.\n" }, { "info": { "name": "Delete Connection", "type": "http" }, "http": { "method": "DELETE", "url": "https://{organization_id}.platform.barndoor.ai/api/servers/:server_id/connection", "params": [ { "name": "server_id", "value": "123e4567-e89b-12d3-a456-426614174000", "type": "path", "description": "Server UUID" } ] }, "docs": "Delete the current user's connection to this server.\n\nThis will remove the connection record and clean up any stored OAuth credentials.\nThe user will need to reconnect to use this server again.\n" }, { "info": { "name": "Initiate OAuth Connection", "type": "http" }, "http": { "method": "POST", "url": "https://{organization_id}.platform.barndoor.ai/api/servers/:server_id/connect", "params": [ { "name": "server_id", "value": "123e4567-e89b-12d3-a456-426614174000", "type": "path", "description": "Server UUID" }, { "name": "return_url", "value": "https://myapp.com/oauth/callback", "type": "query", "description": "Optional return URL after OAuth completion" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Initiate OAuth connection flow for a server. Returns an authorization URL\nthat the user should visit to complete the OAuth flow.\n\nThe server must have OAuth configuration set up by an admin.\n" } ] } ], "bundled": true }