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
| Name | Type | Description |
|---|---|---|
id required | string | The ID of the group conversation, starting with g. |
action_signatures | array | Signatures for this action, forwarded in the order they are sent. |
affiliate_user_id | string | ID of the affiliate account to associate with the link. |
decrypted_avatar_url | string | Group avatar URL (https) to show on the invite preview. |
decrypted_title | string | Group name to show on the invite preview. |
invite_url | string | Invite link built by the client, in the form https://x.com/i/chat/group_join/… |
validity_duration_msec | string | How long the link stays valid, in milliseconds, from the time of the request.… |
validity_expiry_timestamp_msec | string | When the link expires, in epoch milliseconds. Must be in the future. If… |
welcome_message | string | Message 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:
{
"name": "x_api__enable_chat_group_invite",
"arguments": {
"id": "…"
}
}Or connect the X (Twitter) API server directly, which lists 258 tools including this one:
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 ….