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
const url = 'https://example.com/xrpc/place.stream.moderation.createPin';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"streamer":"example","messageUri":"https://example.com","expiresAt":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Request Bodyrequired
Section titled “Request Bodyrequired”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"}Responses
Section titled “Responses”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
