{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/breakreach-com/json-schema/breakreach-com-connect-link-schema.json",
  "title": "ConnectLink",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/breakreach-com-connect-links-api-openapi.yml#/components/schemas/ConnectLink",
  "type": "object",
  "required": [
    "id",
    "workspace",
    "platforms",
    "redirectUrl",
    "expiresAt",
    "status",
    "connected"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The page to send, only returned at creation"
    },
    "workspace": {
      "type": "string",
      "description": "Workspace slug"
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "redirectUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "expired",
        "revoked"
      ]
    },
    "connected": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "accountId",
          "platform",
          "displayName",
          "connectedAt"
        ],
        "properties": {
          "accountId": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "connectedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}