Skip to content

Create a gate (hide message) on behalf of a streamer. Requires 'hide' permission. Creates a place.stream.chat.gate record in the streamer's repository.

POST
/xrpc/place.stream.moderation.createGate
curl --request POST \
--url https://example.com/xrpc/place.stream.moderation.createGate \
--header 'Content-Type: application/json' \
--data '{ "streamer": "example", "messageUri": "https://example.com" }'
Media typeapplication/json
object
streamer
required

The DID of the streamer.

string format: did
messageUri
required

The AT-URI of the chat message to hide.

string format: uri

Example generated

{
"streamer": "example",
"messageUri": "https://example.com"
}

Success

Media typeapplication/json
object
uri
required

The AT-URI of the created gate record.

string format: uri
cid
required

The CID of the created gate record.

string format: cid

Example generated

{
"uri": "https://example.com",
"cid": "example"
}

Bad Request

Media typeapplication/json
object
error
required
One of:
string
Allowed value: Unauthorized
message
required
string

Example

{
"error": "Unauthorized"
}