Skip to content

Docs

get_billing

Show the account's plan (a running trial shows as Team trial), its limits and usage per social set (workspace): channels, members, X posts this month; the monthly credit allowance (spent first, resets), credits that never expire, and the `credits.available` balance (minus what running AI holds); trial end and renewal. Check it before a tool that costs credits and tell the person when it's too low, or to explain a plan limit. Credits pay only for heyeveryone's own AI; MCP and API calls are free. Read-only; only the person changes billing.

Show the account's plan (a running trial shows as Team trial), its limits and usage per social set (workspace): channels, members, X posts this month; the monthly credit allowance (spent first, resets), credits that never expire, and the credits.available balance (minus what running AI holds); trial end and renewal. Check it before a tool that costs credits and tell the person when it's too low, or to explain a plan limit. Credits pay only for heyeveryone's own AI; MCP and API calls are free. Read-only; only the person changes billing.

Access and cost

  • Kind: query
  • Scope: account
  • Actors: member, agent
  • Credits: Free
  • Requires confirmation: false
  • Accepts idempotency key: false

Input schema

{
  "properties": {
    "accountId": {
      "format": "uuid",
      "type": "string"
    }
  },
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "accountId": {
      "format": "uuid",
      "type": "string"
    },
    "billing": {
      "enum": [
        "live",
        "not_configured"
      ],
      "type": "string"
    },
    "checkout": {
      "additionalProperties": false,
      "properties": {
        "open": {
          "type": "boolean"
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "open",
        "note"
      ],
      "type": "object"
    },
    "plan": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "tagline": {
          "type": "string"
        },
        "monthlyCredits": {
          "type": "integer"
        },
        "prices": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "month": {
                  "additionalProperties": false,
                  "properties": {
                    "amount": {
                      "type": "integer"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "display": {
                      "type": "string"
                    },
                    "interval": {
                      "enum": [
                        "month",
                        "year"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "currency",
                    "display",
                    "interval"
                  ],
                  "type": "object"
                },
                "year": {
                  "additionalProperties": false,
                  "properties": {
                    "amount": {
                      "type": "integer"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "display": {
                      "type": "string"
                    },
                    "interval": {
                      "enum": [
                        "month",
                        "year"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "currency",
                    "display",
                    "interval"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "month",
                "year"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "extraSetPrices": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "month": {
                  "additionalProperties": false,
                  "properties": {
                    "amount": {
                      "type": "integer"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "display": {
                      "type": "string"
                    },
                    "interval": {
                      "enum": [
                        "month",
                        "year"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "currency",
                    "display",
                    "interval"
                  ],
                  "type": "object"
                },
                "year": {
                  "additionalProperties": false,
                  "properties": {
                    "amount": {
                      "type": "integer"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "display": {
                      "type": "string"
                    },
                    "interval": {
                      "enum": [
                        "month",
                        "year"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "currency",
                    "display",
                    "interval"
                  ],
                  "type": "object"
                },
                "monthlyCredits": {
                  "type": "integer"
                }
              },
              "required": [
                "month",
                "year",
                "monthlyCredits"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "limits": {
          "additionalProperties": false,
          "properties": {
            "workspaces": {
              "anyOf": [
                {
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "channelAccounts": {
              "anyOf": [
                {
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "channelAccountsPerWorkspace": {
              "anyOf": [
                {
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "membersPerWorkspace": {
              "anyOf": [
                {
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "activeShareLinks": {
              "anyOf": [
                {
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "aiAccess": {
              "type": "boolean"
            },
            "xPostsPerWorkspacePerMonth": {
              "anyOf": [
                {
                  "minimum": 0,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "xLinkPostsPerWorkspacePerMonth": {
              "anyOf": [
                {
                  "minimum": 0,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "workspaces",
            "channelAccounts",
            "channelAccountsPerWorkspace",
            "membersPerWorkspace",
            "activeShareLinks",
            "aiAccess",
            "xPostsPerWorkspacePerMonth",
            "xLinkPostsPerWorkspacePerMonth"
          ],
          "type": "object"
        },
        "basePlanId": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "tagline",
        "monthlyCredits",
        "prices",
        "extraSetPrices",
        "limits",
        "basePlanId"
      ],
      "type": "object"
    },
    "subscription": {
      "additionalProperties": false,
      "properties": {
        "planId": {
          "type": "string"
        },
        "status": {
          "enum": [
            "active",
            "trialing",
            "past_due",
            "canceled",
            "incomplete"
          ],
          "type": "string"
        },
        "interval": {
          "anyOf": [
            {
              "enum": [
                "month",
                "year"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "currentPeriodEnd": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "cancelAtPeriodEnd": {
          "type": "boolean"
        },
        "renewsAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "hasBillingAccount": {
          "type": "boolean"
        },
        "hasSubscription": {
          "type": "boolean"
        },
        "source": {
          "enum": [
            "stripe",
            "staff",
            "trial",
            "free"
          ],
          "type": "string"
        }
      },
      "required": [
        "planId",
        "status",
        "interval",
        "currentPeriodEnd",
        "cancelAtPeriodEnd",
        "renewsAt",
        "hasBillingAccount",
        "hasSubscription",
        "source"
      ],
      "type": "object"
    },
    "trial": {
      "additionalProperties": false,
      "properties": {
        "active": {
          "type": "boolean"
        },
        "endsAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "daysLeft": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "active",
        "endsAt",
        "daysLeft"
      ],
      "type": "object"
    },
    "socialSets": {
      "additionalProperties": false,
      "properties": {
        "included": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "type": "integer"
        },
        "max": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "used": {
          "type": "integer"
        },
        "sets": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "workspaceId": {
                "format": "uuid",
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "readOnly": {
                "type": "boolean"
              },
              "channels": {
                "additionalProperties": false,
                "properties": {
                  "used": {
                    "type": "integer"
                  },
                  "max": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "used",
                  "max"
                ],
                "type": "object"
              },
              "members": {
                "additionalProperties": false,
                "properties": {
                  "used": {
                    "type": "integer"
                  },
                  "max": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "used",
                  "max"
                ],
                "type": "object"
              },
              "x": {
                "additionalProperties": false,
                "properties": {
                  "month": {
                    "type": "string"
                  },
                  "posts": {
                    "additionalProperties": false,
                    "properties": {
                      "used": {
                        "type": "integer"
                      },
                      "max": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "used",
                      "max"
                    ],
                    "type": "object"
                  },
                  "linkPosts": {
                    "additionalProperties": false,
                    "properties": {
                      "used": {
                        "type": "integer"
                      },
                      "max": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "used",
                      "max"
                    ],
                    "type": "object"
                  },
                  "resetsAt": {
                    "format": "date-time",
                    "type": "string"
                  }
                },
                "required": [
                  "month",
                  "posts",
                  "linkPosts",
                  "resetsAt"
                ],
                "type": "object"
              }
            },
            "required": [
              "workspaceId",
              "name",
              "readOnly",
              "channels",
              "members",
              "x"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "included",
        "extra",
        "max",
        "used",
        "sets"
      ],
      "type": "object"
    },
    "usage": {
      "additionalProperties": false,
      "properties": {
        "workspaces": {
          "additionalProperties": false,
          "properties": {
            "used": {
              "type": "integer"
            },
            "max": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "used",
            "max"
          ],
          "type": "object"
        },
        "channelAccounts": {
          "additionalProperties": false,
          "properties": {
            "used": {
              "type": "integer"
            },
            "max": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "used",
            "max"
          ],
          "type": "object"
        },
        "activeShareLinks": {
          "additionalProperties": false,
          "properties": {
            "used": {
              "type": "integer"
            },
            "max": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "used",
            "max"
          ],
          "type": "object"
        }
      },
      "required": [
        "workspaces",
        "channelAccounts",
        "activeShareLinks"
      ],
      "type": "object"
    },
    "credits": {
      "additionalProperties": false,
      "properties": {
        "balance": {
          "type": "integer"
        },
        "held": {
          "minimum": 0,
          "type": "integer"
        },
        "available": {
          "type": "integer"
        },
        "monthlyAllowance": {
          "type": "integer"
        },
        "allowance": {
          "additionalProperties": false,
          "properties": {
            "granted": {
              "type": "integer"
            },
            "used": {
              "type": "integer"
            },
            "remaining": {
              "type": "integer"
            },
            "periodStart": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "resetsAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "granted",
            "used",
            "remaining",
            "periodStart",
            "resetsAt"
          ],
          "type": "object"
        },
        "nonExpiring": {
          "type": "integer"
        }
      },
      "required": [
        "balance",
        "held",
        "available",
        "monthlyAllowance",
        "allowance",
        "nonExpiring"
      ],
      "type": "object"
    },
    "availablePlans": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "monthlyCredits": {
            "type": "integer"
          },
          "prices": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "month": {
                    "additionalProperties": false,
                    "properties": {
                      "amount": {
                        "type": "integer"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "display": {
                        "type": "string"
                      },
                      "interval": {
                        "enum": [
                          "month",
                          "year"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "amount",
                      "currency",
                      "display",
                      "interval"
                    ],
                    "type": "object"
                  },
                  "year": {
                    "additionalProperties": false,
                    "properties": {
                      "amount": {
                        "type": "integer"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "display": {
                        "type": "string"
                      },
                      "interval": {
                        "enum": [
                          "month",
                          "year"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "amount",
                      "currency",
                      "display",
                      "interval"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "month",
                  "year"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "extraSetPrices": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "month": {
                    "additionalProperties": false,
                    "properties": {
                      "amount": {
                        "type": "integer"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "display": {
                        "type": "string"
                      },
                      "interval": {
                        "enum": [
                          "month",
                          "year"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "amount",
                      "currency",
                      "display",
                      "interval"
                    ],
                    "type": "object"
                  },
                  "year": {
                    "additionalProperties": false,
                    "properties": {
                      "amount": {
                        "type": "integer"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "display": {
                        "type": "string"
                      },
                      "interval": {
                        "enum": [
                          "month",
                          "year"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "amount",
                      "currency",
                      "display",
                      "interval"
                    ],
                    "type": "object"
                  },
                  "monthlyCredits": {
                    "type": "integer"
                  }
                },
                "required": [
                  "month",
                  "year",
                  "monthlyCredits"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "limits": {
            "additionalProperties": false,
            "properties": {
              "workspaces": {
                "anyOf": [
                  {
                    "minimum": 1,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "channelAccounts": {
                "anyOf": [
                  {
                    "minimum": 1,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "channelAccountsPerWorkspace": {
                "anyOf": [
                  {
                    "minimum": 1,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "membersPerWorkspace": {
                "anyOf": [
                  {
                    "minimum": 1,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "activeShareLinks": {
                "anyOf": [
                  {
                    "minimum": 1,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "aiAccess": {
                "type": "boolean"
              },
              "xPostsPerWorkspacePerMonth": {
                "anyOf": [
                  {
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "xLinkPostsPerWorkspacePerMonth": {
                "anyOf": [
                  {
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "workspaces",
              "channelAccounts",
              "channelAccountsPerWorkspace",
              "membersPerWorkspace",
              "activeShareLinks",
              "aiAccess",
              "xPostsPerWorkspacePerMonth",
              "xLinkPostsPerWorkspacePerMonth"
            ],
            "type": "object"
          },
          "current": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "tagline",
          "monthlyCredits",
          "prices",
          "extraSetPrices",
          "limits",
          "current"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "creditPacks": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "credits": {
            "type": "integer"
          },
          "price": {
            "additionalProperties": false,
            "properties": {
              "amount": {
                "type": "integer"
              },
              "currency": {
                "type": "string"
              },
              "display": {
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency",
              "display"
            ],
            "type": "object"
          }
        },
        "required": [
          "id",
          "name",
          "credits",
          "price"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "accountId",
    "billing",
    "checkout",
    "plan",
    "subscription",
    "trial",
    "socialSets",
    "usage",
    "credits",
    "availablePlans",
    "creditPacks"
  ],
  "type": "object"
}

Errors

[]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true,
  "title": "Get plan and billing"
}