place.stream.moderation.createPin

did:web:stream.place

Documentation

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.

main procedure

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.

Input

Encodingapplication/json
expiresAt stringdatetime Optional

Optional expiration time for this pin.

messageUri stringat-uri Required

The AT-URI of the chat message to pin.

streamer stringdid Required

The DID of the streamer.

Output

Encodingapplication/json
cid stringcid Required

The CID of the created pinned record.

uri stringat-uri Required

The AT-URI of the created pinned record.

Errors

Unauthorized The request lacks valid authentication credentials.
Forbidden The caller does not have permission to pin messages for this streamer.
SessionNotFound The streamer's OAuth session could not be found or is invalid.
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "streamer",
        "messageUri"
      ],
      "properties": {
        "streamer": {
          "type": "string",
          "format": "did",
          "description": "The DID of the streamer."
        },
        "expiresAt": {
          "type": "string",
          "format": "datetime",
          "description": "Optional expiration time for this pin."
        },
        "messageUri": {
          "type": "string",
          "format": "at-uri",
          "description": "The AT-URI of the chat message to pin."
        }
      }
    },
    "encoding": "application/json"
  },
  "errors": [
    {
      "name": "Unauthorized",
      "description": "The request lacks valid authentication credentials."
    },
    {
      "name": "Forbidden",
      "description": "The caller does not have permission to pin messages for this streamer."
    },
    {
      "name": "SessionNotFound",
      "description": "The streamer's OAuth session could not be found or is invalid."
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "uri",
        "cid"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid",
          "description": "The CID of the created pinned record."
        },
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "The AT-URI of the created pinned record."
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": null,
  "description": "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."
}

Lexicon Garden

@