# place.stream.playback.getPlaybackSession

> Mint the caller's own playback session for their live stream. Every playback URL carries a signed session as `sid`; the anonymous one a playlist hands out opens published streams only, while the owner session this returns also opens the caller's unpublished (pre-live) stream to their own player. Requires an authenticated session; the result is bound to the caller's DID. Pass it as `sid` on getLivePlaylist.

- Kind: query
- Authority: playback.stream.place
- Lexicon: 1
- Published by [stream.place](https://lexicon.garden/identity/did:plc:rbvrr34edl5ddpuwcubjiost), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.playback.getPlaybackSession)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.playback.getPlaybackSession/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.playback.getPlaybackSession/analytics)

## Query (`place.stream.playback.getPlaybackSession`)

Type: query · GET

### Output (application/json)

- `expiresAt` (string · datetime, required): When the session stops opening the stream unless renewed; fetch a new one before then.
- `sid` (string, required): The signed session to pass as the `sid` query parameter.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Mint the caller's own playback session for their live stream. Every playback URL carries a signed session as `sid`; the anonymous one a playlist hands out opens published streams only, while the owner session this returns also opens the caller's unpublished (pre-live) stream to their own player. Requires an authenticated session; the result is bound to the caller's DID. Pass it as `sid` on getLivePlaylist.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expiresAt": {
              "description": "When the session stops opening the stream unless renewed; fetch a new one before then.",
              "format": "datetime",
              "type": "string"
            },
            "sid": {
              "description": "The signed session to pass as the `sid` query parameter.",
              "type": "string"
            }
          },
          "required": [
            "sid",
            "expiresAt"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "place.stream.playback.getPlaybackSession",
  "lexicon": 1
}
```
