Broadcasts

Create a Stream Source for a User

Changed on

Creates a persistent RTMP/RTMPS ingest point for the authenticated user. id must be the authenticated user.

post/2/users/{id}/sources

Request

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

Path parameters

idstring required

Unique identifier of a User

Example:2244994945

Request body

namestring required

Label for the source.

regionstring

Ingest data center, atla or pdxa (default). The AWS regions us-west-1 and us-west-2 map to pdxa; us-east-1, us-east-2, ca-central-1, sa-east-1, eu-west-1, eu-west-2, eu-west-3, eu-central-1, eu-north-1, ap-south-1, ap-northeast-1, ap-northeast-2, ap-southeast-1 and ap-southeast-2 map to atla.

Response

The request has succeeded.

Changes