Skip to main content
POST
Create X activity subscription

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
event_type
enum<string>
required
Available options:
profile.update.bio,
profile.update.profile_picture,
profile.update.banner_picture,
profile.update.screenname,
profile.update.geo,
profile.update.url,
profile.update.verified_badge,
profile.update.affiliate_badge,
profile.update.handle,
news.new,
follow.follow,
follow.unfollow,
spaces.start,
spaces.end,
chat.received,
chat.sent,
chat.conversation_join,
dm.sent,
dm.received,
dm.indicate_typing,
dm.read
filter
object
required

An XAA subscription filter.

tag
string
Required string length: 1 - 200
webhook_id
string

The unique identifier of this webhook config.

Pattern: ^[0-9]{1,19}$
Example:

"1146654567674912769"

Response

The request has succeeded.

data
object
errors
object[]
Minimum array length: 1

An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).

meta
object