# connect_sandbox_account

Source: https://heyeveryone.ai/docs/mcp/connect_sandbox_account

> Connect a Sandbox account: heyeveryone's own test network, which behaves like a real social network but posts only to a public test feed page (feedUrl) inside heyeveryone. For trying scheduling and publishing end to end, demos, or before any real channel is connected; no sign-in is needed. Each call creates a new account named `label`. `emulates` makes it follow that platform's post formats, text limits, media rules, required settings and result metrics, with format ids prefixed by the platform (x__text, x__thread, tiktok__video, youtube__short...; list them with get_channel_capabilities { platform: 'sandbox', emulates }). It never posts to the real platform, and what it emulates is fixed once connected. Failure switches (fail the next publish, expire the token, slow responses): update_sandbox_settings. With emulates 'linkedin', accountType 'page' stands in for a LinkedIn company page (named "LinkedIn company page (Sandbox)" by default); the formats are the same.

Connect a Sandbox account: heyeveryone's own test network, which behaves like a real social network but posts only to a public test feed page (feedUrl) inside heyeveryone. For trying scheduling and publishing end to end, demos, or before any real channel is connected; no sign-in is needed. Each call creates a new account named `label`. `emulates` makes it follow that platform's post formats, text limits, media rules, required settings and result metrics, with format ids prefixed by the platform (x__text, x__thread, tiktok__video, youtube__short...; list them with get_channel_capabilities { platform: 'sandbox', emulates }). It never posts to the real platform, and what it emulates is fixed once connected. Failure switches (fail the next publish, expire the token, slow responses): update_sandbox_settings. With emulates 'linkedin', accountType 'page' stands in for a LinkedIn company page (named "LinkedIn company page (Sandbox)" by default); the formats are the same.

## Access and cost

- Kind: mutation
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false

## Input schema

```json
{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "label": {
      "maxLength": 60,
      "minLength": 1,
      "type": "string"
    },
    "emulates": {
      "anyOf": [
        {
          "enum": [
            "x",
            "linkedin",
            "threads",
            "bluesky",
            "instagram",
            "facebook",
            "tiktok",
            "youtube"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "accountType": {
      "pattern": "^[a-z][a-z_]{0,30}$",
      "type": "string"
    }
  },
  "required": [
    "workspaceId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "channelAccount": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "workspaceId": {
          "format": "uuid",
          "type": "string"
        },
        "platform": {
          "enum": [
            "x",
            "linkedin",
            "threads",
            "bluesky",
            "instagram",
            "facebook",
            "tiktok",
            "youtube",
            "sandbox"
          ],
          "type": "string"
        },
        "externalId": {
          "type": "string"
        },
        "handle": {
          "type": [
            "string",
            "null"
          ]
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ]
        },
        "avatarUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "accountType": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "enum": [
            "active",
            "reconnect_required",
            "disconnected"
          ],
          "type": "string"
        },
        "statusReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "tokenExpiresAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "lastHealthCheckAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metadata": {
          "type": "object"
        },
        "createdByAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAgentClientId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "platformLabel": {
          "type": "string"
        },
        "access": {
          "enum": [
            "available",
            "pending_review",
            "private_only"
          ],
          "type": "string"
        },
        "feedUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "emulates": {
          "anyOf": [
            {
              "enum": [
                "x",
                "linkedin",
                "threads",
                "bluesky",
                "instagram",
                "facebook",
                "tiktok",
                "youtube"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "workspaceId",
        "platform",
        "externalId",
        "handle",
        "displayName",
        "avatarUrl",
        "accountType",
        "status",
        "statusReason",
        "scopes",
        "tokenExpiresAt",
        "lastHealthCheckAt",
        "metadata",
        "createdByAccountId",
        "createdByAgentClientId",
        "createdAt",
        "updatedAt",
        "platformLabel",
        "access",
        "feedUrl",
        "emulates"
      ],
      "type": "object"
    }
  },
  "required": [
    "channelAccount"
  ],
  "type": "object"
}
```

## Errors

```json
[
  "plan_limit_reached"
]
```

## Annotations

```json
{
  "destructiveHint": false,
  "idempotentHint": false,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Connect a Sandbox account"
}
```
