Skip to content

Pin a chat message on behalf of a streamer. Requires 'message.pin' permission. Creates a place.stream.chat.pinnedRecord in the streamer's repo, replacing any existing pin.

POST
/xrpc/place.stream.moderation.createPin
curl --request POST \
--url https://example.com/xrpc/place.stream.moderation.createPin \
--header 'Content-Type: application/json' \
--data '{ "streamer": "example", "messageUri": "https://example.com", "expiresAt": "2026-04-15T12:00:00Z" }'
Media typeapplication/json
object
streamer
required

The DID of the streamer.

string format: did
messageUri
required

The AT-URI of the chat message to pin.

string format: uri
expiresAt

Optional expiration time for this pin.

string format: date-time

Example generated

{
"streamer": "example",
"messageUri": "https://example.com",
"expiresAt": "2026-04-15T12:00:00Z"
}

Success

Media typeapplication/json
object
uri
required

The AT-URI of the created pinned record.

string format: uri
cid
required

The CID of the created pinned 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"
}