Home / Servers / X (Twitter) API / add_conversation_keys

Add Conversation Keys

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

Add Conversation Keys Adds (initializes or rotates) the encryption keys for a Chat conversation. Call this before sending messages in a new 1:1 conversation, and again with a newer key version to rotate the conversation… [POST /2/chat/conversations/{id}/keys]

Name on the gateway: x_api__add_conversation_keys · may change things.

Parameters

NameTypeDescription
id requiredstringid parameter
action_signaturesarraySignatures for this action, forwarded in the order they are sent.
base64_encoded_key_rotationstringBase64-encoded key rotation payload for ratchet tree key management.
conversation_key_version requiredstringVersion of the conversation encryption key (typically a timestamp in…
conversation_participant_keys requiredarrayEncrypted conversation keys for each participant.

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__add_conversation_keys",
  "arguments": {
    "id": "…",
    "conversation_key_version": "…",
    "conversation_participant_keys": []
  }
}

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 add conversation keys tool with id set to ….

More from X (Twitter) API