Broadcasts

Publish or End a User's Broadcast

Changed on

Publishes or ends one of the authenticated user's broadcasts. id must be the authenticated user. PUBLISH takes a broadcast created with POST /2/users/:id/broadcasts live once its source is receiving video, and posts it unless should_not_tweet is true. END ends the broadcast. Deprecated: use PUT /2/broadcasts/:id/state to end a broadcast.

put/2/users/{id}/broadcasts/{broadcast_id}/state

Request

  • Base URL
    https://api.x.com
  • URL
    https://api.x.com/2/users/{id}/broadcasts/{broadcast_id}/state
  • Auth
    • OAuth 2
      Authorization code: https://api.x.com/2/oauth2/authorize
      Token URL: https://api.x.com/2/oauth2/token scopes: broadcast.write, broadcast.read
    • or HTTP oauth

Path parameters

idstring required

Unique identifier of a User

Example:2244994945
broadcast_idstring required

Request body

localestring

Broadcast language. PUBLISH only.

statestring required

PUBLISH or END.

titlestring

Broadcast title. PUBLISH only.

Response

The request has succeeded.

Changes