OpenSocialDocumentation

agents_connection

Inspect the current connection, installation version, scopes and expiry.

REST · POST /api/v1/operations/agents_connection · MCP · agents_connection

Required scope · read. This operation reads data.

Example request body

{}

REST returns the output below directly. In MCP read structuredContent.result. Check the current installation at /api/v1/openapi.json.

For 401 check credential validity. For 403 inspect the role, scopes and selected accounts. For 409 reread the record before retrying.

JSON Schema · Input

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

JSON Schema · Output

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "installation": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string"
        },
        "apiVersion": {
          "type": "string"
        },
        "maxUploadBytes": {
          "type": "number"
        },
        "features": {
          "type": "object",
          "properties": {
            "batches": {
              "type": "number"
            },
            "agentOAuth": {
              "type": "boolean"
            },
            "tiktokPosting": {
              "type": "string"
            }
          },
          "required": [
            "batches",
            "agentOAuth",
            "tiktokPosting"
          ],
          "additionalProperties": {}
        }
      },
      "required": [
        "version",
        "apiVersion",
        "maxUploadBytes",
        "features"
      ],
      "additionalProperties": {}
    },
    "workspace": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": {}
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "accounts": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "grantId": {
      "type": [
        "string",
        "null"
      ]
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "auth": {
      "type": "string"
    }
  },
  "required": [
    "installation",
    "workspace",
    "scopes",
    "accounts",
    "grantId",
    "expiresAt",
    "auth"
  ],
  "additionalProperties": {}
}