Home / Servers / X (Twitter) API / enable_chat_group_invite

Enable a Chat Group Invite Link

An MCP tool from the X (Twitter) API server, hosted on mcp.hjlabs.in.

Enable a Chat Group Invite Link Turns on the invite link for an encrypted Chat group conversation and returns the link details. The client builds the link and sends it as invite_url, in the form https://x.com/i/chat/group_join/ /… [POST /2/chat/conversations/{id}/invite]

Name on the gateway: x_api__enable_chat_group_invite · may change things.

Parameters

NameTypeDescription
id requiredstringThe ID of the group conversation, starting with g.
action_signaturesarraySignatures for this action, forwarded in the order they are sent.
affiliate_user_idstringID of the affiliate account to associate with the link.
decrypted_avatar_urlstringGroup avatar URL (https) to show on the invite preview.
decrypted_titlestringGroup name to show on the invite preview.
invite_urlstringInvite link built by the client, in the form https://x.com/i/chat/group_join/…
validity_duration_msecstringHow long the link stays valid, in milliseconds, from the time of the request.…
validity_expiry_timestamp_msecstringWhen the link expires, in epoch milliseconds. Must be in the future. If…
welcome_messagestringMessage shown to people who open the link.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "x_api__enable_chat_group_invite",
  "arguments": {
    "id": "…"
  }
}

Or connect the X (Twitter) API server directly, which lists 258 tools including this one:

Run in your terminal
claude mcp add --transport http hj-x-api https://mcp.hjlabs.in/mcp/x-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the enable a chat group invite link tool with id set to ….

More from X (Twitter) API