How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

X Chat API

Endpoints related to Chat encrypted messaging — 16 operation(s) in the X-published contract.

X Chat API is one of 23 APIs that X publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Chat. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 16 operations across 16 paths, and defines 103 schemas. It is described by OpenAPI 3.2.0, at version 2.168.

Requests are made against a single base URL, https://api.x.com.

16 operations 16 paths 103 schemas 4 GET12 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2.168
Base URL
https://api.x.com
Authentication
HTTP Bearer, OAuth 2.0, HTTP Oauth
Terms of Service
Resource Areas
1

Authentication & Security 3

X Chat API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (BearerToken). It supports OAuth 2.0 (OAuth2UserToken) using the authorizationCode flow, exposing 26 scopes. It uses HTTP oauth authentication (UserToken).

Paths & Operations 16

Across 16 paths, the API surfaces 16 operations — 4 GET, 12 POST. Each is listed below with its method, path, parameters, and response codes.

Chat 16

Endpoints related to Chat encrypted messaging

GET
/2/chat/conversations
Get Chat Conversations
getChatConversations 5 params → 200default
POST
/2/chat/conversations/group
Create Chat Group Conversation
createChatConversation body → 201default
POST
/2/chat/conversations/group/initialize
Initialize Chat Group
initializeChatGroup → 200default
GET
/2/chat/conversations/{id}
Get Chat Conversation
getChatConversation 4 params → 200default
GET
/2/chat/conversations/{id}/events
Get Chat Conversation Events
getChatConversationEvents 4 params → 200default
POST
/2/chat/conversations/{id}/keys
Add Conversation Keys
addConversationKeys 1 param body → 200default
POST
/2/chat/conversations/{id}/members
Add members to a Chat group conversation
addChatGroupMembers 1 param body → 200default
POST
/2/chat/conversations/{id}/messages
Send Chat Message
sendChatMessage 1 param body → 201default
POST
/2/chat/conversations/{id}/messages/delete
Delete Chat messages
deleteChatMessages 1 param body → 200default
POST
/2/chat/conversations/{id}/read
Mark Conversation as Read
markChatConversationRead 1 param body → 200default
POST
/2/chat/conversations/{id}/typing
Send Typing Indicator
sendChatTypingIndicator 1 param → 200default
POST
/2/chat/media/upload/initialize
Initialize Chat Media Upload
chatMediaUploadInitialize body → 200default
POST
/2/chat/media/upload/{id}/append
Append Chat Media Upload
chatMediaUploadAppend 1 param body → 200default
POST
/2/chat/media/upload/{id}/finalize
Finalize Chat Media Upload
chatMediaUploadFinalize 1 param body → 200default
GET
/2/chat/media/{id}/{media_hash_key}
Download Chat Media
chatMediaDownload 2 params → 200default
POST
/2/users/{id}/public_keys
Add public key
addUserPublicKey 1 param body → 200default

Schemas 103

The contract defines 103 schemas that model the data the API accepts and returns. The most detailed are Post (36 properties), User (28 properties), Media (13 properties), ChatConversation (13 properties). Each schema is shown below with its type and property counts.

AddConversationKeysActionSignaturesMessageEventSignature
object
5 properties 3 required
FieldHydrationFailureProblem
object
7 properties 4 required
CreateChatConversationActionSignatures
object
4 properties 3 required
DeleteChatMessagesActionSignaturesMessageEventSignature
object
5 properties 3 required
Poll
object
5 properties
UserWithheld
object
Withholding details for withheld content.
2 properties
Error
object
2 properties 2 required
ResourceUnavailableProblem
object
6 properties 4 required
MarkChatConversationReadResponseData
object
1 property 1 required
AddChatGroupMembersActionSignaturesMessageEventSignatureMessageSigningKeyInfoList
object
3 properties
UserEntities
object
A list of metadata found in the User's profile description.
2 properties
PostMediaMetadata
array
Metadata for media attached to this Post.
CreateChatConversationConversationParticipantKeys
object
3 properties
InternalErrorProblem
object
4 properties 3 required
AddUserPublicKeyResponse
object
2 properties
PostEditControls
object
Indicates how much longer (if at all) this Post can be edited.
3 properties
AddConversationKeysResponseData
object
2 properties
UserAffiliation
object
Metadata about a user's affiliation.
4 properties
Problem
UserSubscription
object
The subscription relationship between this User and you.
1 property 1 required
DeleteChatMessagesActionSignatures
object
4 properties 3 required
CreateChatConversationActionSignaturesMessageEventSignatureMessageSigningKeyInfoList
object
3 properties
AddConversationKeysConversationParticipantKeys
object
3 properties
InitializeChatGroupResponse
object
2 properties
AddChatGroupMembersConversationParticipantKeys
object
3 properties
GetChatConversationEventsResponse
object
3 properties
DeleteChatMessagesRequest
object
4 properties 3 required
DeleteChatMessagesResponseData
object
1 property 1 required
PostReferencedPosts
array
A list of Posts this Post refers to. If the Post is a Retweet, Quote or Reply, it includes the referenced Post's type and ID.
CreateChatConversationResponseData
object
2 properties 1 required
PostNotePost
object
The full content of the Post, including text beyond 280 characters.
2 properties 1 required
UserId
string
Unique identifier of a User
SendChatTypingIndicatorResponse
object
2 properties
GetChatConversationsResponse
object
4 properties
PostScopes
object
The scopes for this Post.
1 property 1 required
DisallowedResourceProblem
object
7 properties 3 required
PostSuggestedSourceLinksWithCounts
array
Suggested source URLs for this Post, each with the number of times it was suggested.
AddConversationKeysActionSignatures
object
4 properties 3 required
Topic
object
3 properties
ChatMediaUploadFinalizeRequest
object
5 properties 3 required
SendChatMessageResponse
object
2 properties
InitializeChatGroupResponseData
object
1 property 1 required
MarkChatConversationReadRequest
object
1 property 1 required
CreateChatConversationRequest
object
11 properties 4 required
PlaceContainedWithin
array
A list of unique identifiers of the Places that contain this place.
MediaPublicMetrics
object
Public engagement metrics for the media at the time of the request.
1 property 1 required
PostDisplayTextRange
array
The inclusive start and exclusive end indices of the displayable content of the Post.
Expansions
object
6 properties
AddConversationKeysRequest
object
4 properties 2 required
PostGeo
object
The location tagged on the Post, if the user provided one.
2 properties
ChatMediaUploadFinalizeResponseData
object
1 property 1 required
ChatMediaUploadInitializeResponseData
object
3 properties 3 required
AddUserPublicKeyRequest
object
3 properties 2 required
PostEntities
object
A list of metadata entities (hashtags, mentions, URLs) found in the Post text.
4 properties
MediaVariants
array
Each media object may have multiple display or playback variants, with different resolutions or formats.
ChatConversation
object
13 properties
ChatMediaUploadInitializeRequest
object
2 properties 2 required
NotAuthorizedForFieldProblem
object
10 properties 4 required
PostNoteRequestSuggestions
array
Community-Notes request suggestions for this Post.
MediaPromotedMetrics
object
Promoted nonpublic engagement metrics for the media at the time of the request.
6 properties
GetChatConversationResponse
object
3 properties
ChatMediaUploadAppendRequest
object
4 properties 4 required
AddConversationKeysActionSignaturesMessageEventSignatureMessageSigningKeyInfoList
object
3 properties
User
object
28 properties
AddChatGroupMembersResponse
object
2 properties
ChatMediaUploadFinalizeResponse
object
2 properties
UserPublicMetrics
object
A list of metrics for this User.
6 properties 4 required
Place
object
8 properties
ChatMessageEvent
object
9 properties
CreateChatConversationActionSignaturesMessageEventSignature
object
5 properties 3 required
ChatMediaUploadAppendResponseData
object
1 property
AddUserPublicKeyResponseData
object
2 properties
PostPublicMetrics
object
Engagement metrics for the Post at the time of the request.
6 properties 6 required
DeleteChatMessagesResponse
object
2 properties
Media
object
13 properties
ChatMediaUploadInitializeResponse
object
2 properties
PostSuggestedSourceLinks
array
URLs suggested as sources for this Post.
NotAuthorizedForResourceProblem
object
9 properties 4 required
SendChatMessageRequest
object
4 properties 2 required
AddConversationKeysResponse
object
2 properties
AddChatGroupMembersRequest
object
6 properties 1 required
SendChatMessageResponseData
object
1 property 1 required
MediaNonPublicMetrics
object
Nonpublic engagement metrics for the media at the time of the request.
5 properties
UserConnectionStatus
array
Returns detailed information about the relationship between two users.
Post
object
36 properties
SendChatTypingIndicatorResponseData
object
1 property 1 required
InvalidRequestProblem
object
6 properties 3 required
PostAttachments
object
Specifies the type of attachments (if any) present in this Post.
3 properties
PostContextAnnotations
array
Annotations inferred about the Post (domain and entity context).
AddUserPublicKeyPublicKey
object
6 properties
PollOptions
array
The list of options (choices) available in this poll.
DeleteChatMessagesActionSignaturesMessageEventSignatureMessageSigningKeyInfoList
object
3 properties
ChatMediaUploadAppendResponse
object
2 properties
PlaceGeo
object
The geographic location of this place, expressed as a GeoJSON Feature.
3 properties 3 required
MarkChatConversationReadResponse
object
2 properties
AddChatGroupMembersActionSignaturesMessageEventSignature
object
5 properties 3 required
PostWithheld
object
Withholding details for withheld content.
3 properties 2 required
MediaOrganicMetrics
object
Organic nonpublic engagement metrics for the media at the time of the request.
6 properties
CreateChatConversationResponse
object
2 properties
ResourceNotFoundProblem
object
8 properties 4 required
PostMatchedMediaNotes
array
Community-Notes media matches for this Post.
AddChatGroupMembersActionSignatures
object
4 properties 3 required
FieldUnauthorizedProblem
object
7 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

x-chat-api-openapi.yml Raw ↑

Other APIs X publishes across the network.

X Account Activity API
X Account API
X Activity API
X Articles API
X Bots API
X Broadcasts API
X Communities API
X Community Notes API
X Compliance API
X Connections API
X Direct Messages API
X General API
Where this information came from

This is an independent, third-party profile of X Chat API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.