> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rewind.rest/llms.txt
> Use this file to discover all available pages before exploring further.

# Get an attended event

> Returns a single attended event with its venue, tickets, performers, and event_data.



## OpenAPI

````yaml get /v1/attending/events/{id}
openapi: 3.1.0
info:
  title: Rewind API
  version: 1.0.0
  description: >-
    Personal data aggregation API. Syncs and serves data from Last.fm, Apple
    Music, Strava, Plex, Letterboxd, Discogs, Trakt, Instapaper, Google
    Calendar, and Gmail.


    ## Domains


    | Domain | Source | Description |

    |--------|--------|-------------|

    | **Listening** | Last.fm, Apple Music | Scrobbles, top
    artists/albums/tracks, streaks, stats |

    | **Running** | Strava | Activities, splits, gear, personal records, year
    summaries |

    | **Watching** | Plex, Letterboxd | Movies, TV shows, watch history,
    ratings, reviews |

    | **Collecting** | Discogs, Trakt | Vinyl/CD collection, physical media,
    wantlist |

    | **Reading** | Instapaper | Articles, highlights, reading progress, word
    count |

    | **Attending** | Google Calendar, Gmail | Live events, tickets, sports
    games, concerts, venues |


    ## Authentication


    All endpoints require a Bearer token. There are two key types:


    - **Read keys** (`rw_live_...`) — access all GET endpoints

    - **Admin keys** (`rw_admin_...`) — access all endpoints including sync
    triggers and data management


    Pass your key in the Authorization header: `Authorization: Bearer
    rw_live_...`


    ## Pagination


    List endpoints return paginated responses:


    ```json

    {
      "data": [...],
      "pagination": { "page": 1, "limit": 20, "total": 150, "total_pages": 8 }
    }

    ```


    The activity feed uses cursor-based pagination instead.


    ## Quick Start


    ```bash

    # Check the API is up

    curl https://api.rewind.rest/v1/health


    # Fetch recent scrobbles (requires read key)

    curl -H "Authorization: Bearer rw_live_..." \
      https://api.rewind.rest/v1/listening/recent

    # Fetch running stats

    curl -H "Authorization: Bearer rw_live_..." \
      https://api.rewind.rest/v1/running/stats
    ```


    ## Errors


    All errors follow the same envelope:


    ```json

    { "error": "Not found", "status": 404 }

    ```


    Common status codes: 400 (bad request), 401 (unauthorized), 404 (not found),
    500 (server error).
  contact:
    url: https://github.com/pdugan20/rewind
servers:
  - url: https://api.rewind.rest
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Listening
    description: Last.fm scrobbles, top charts, streaks, and stats.
  - name: Running
    description: Strava activities, splits, gear, records, and year summaries.
  - name: Watching
    description: >-
      Movies, TV shows, watch history, ratings, and reviews from Plex and
      Letterboxd.
  - name: Collecting
    description: Vinyl/CD collection from Discogs and physical media from Trakt.
  - name: Reading
    description: Articles, highlights, and reading stats from Instapaper.
  - name: Attending
    description: >-
      Live events you bought tickets for — sports games, concerts, theater.
      Sourced from Google Calendar and ticket-vendor email.
  - name: Feed
    description: Cross-domain activity feed with cursor-based pagination.
  - name: Search
    description: Full-text search across all domains.
  - name: Images
    description: Image proxy with on-the-fly transforms via Cloudflare Images.
  - name: System
    description: Health checks and sync status.
  - name: Admin
    description: >-
      API key management, sync triggers, and data administration. Requires admin
      key.
  - name: Webhooks
    description: Inbound webhook receivers for Strava and Plex. No auth required.
paths:
  /v1/attending/events/{id}:
    get:
      tags:
        - Attending
      summary: Get an attended event
      description: >-
        Returns a single attended event with its venue, tickets, performers, and
        event_data.
      operationId: getAttendedEvent
      parameters:
        - schema:
            type:
              - integer
              - 'null'
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Event detail
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                    example: 142
                  category:
                    type: string
                    example: sports
                  event_type:
                    type: string
                    example: mlb_game
                  event_date:
                    type: string
                    example: '2024-08-12'
                  event_datetime:
                    type:
                      - string
                      - 'null'
                    example: '2024-08-12T19:10:00Z'
                  title:
                    type: string
                    example: Seattle Mariners vs Houston Astros
                  subtitle:
                    type:
                      - string
                      - 'null'
                    example: Mariners 4, Astros 2
                  series_id:
                    type:
                      - string
                      - 'null'
                    example: mlb-2024-mariners
                  external_id:
                    type:
                      - string
                      - 'null'
                    example: '745423'
                  external_source:
                    type:
                      - string
                      - 'null'
                    example: mlb_stats_api
                  event_data:
                    type:
                      - object
                      - 'null'
                    additionalProperties: {}
                    example:
                      season: 2024
                      home_team: Seattle Mariners
                      away_team: Houston Astros
                      home_score: 4
                      away_score: 2
                      my_team_won: true
                      winning_pitcher: Logan Gilbert
                  notes:
                    type:
                      - string
                      - 'null'
                    example: null
                  attended:
                    type: boolean
                    example: true
                  venue:
                    type:
                      - object
                      - 'null'
                    properties:
                      id:
                        type: number
                        example: 12
                      name:
                        type: string
                        example: T-Mobile Park
                      city:
                        type:
                          - string
                          - 'null'
                        example: Seattle
                      state:
                        type:
                          - string
                          - 'null'
                        example: WA
                      country:
                        type:
                          - string
                          - 'null'
                        example: US
                      latitude:
                        type:
                          - number
                          - 'null'
                        example: 47.5914
                      longitude:
                        type:
                          - number
                          - 'null'
                        example: -122.3325
                      capacity:
                        type:
                          - number
                          - 'null'
                        example: 47929
                    required:
                      - id
                      - name
                      - city
                      - state
                      - country
                      - latitude
                      - longitude
                      - capacity
                  tickets:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                          example: 871
                        vendor:
                          type: string
                          example: ticketmaster
                        order_id:
                          type:
                            - string
                            - 'null'
                          example: 32-43215/SEA
                        section:
                          type:
                            - string
                            - 'null'
                          example: '147'
                        row:
                          type:
                            - string
                            - 'null'
                          example: '15'
                        seat:
                          type:
                            - string
                            - 'null'
                          example: '12'
                        quantity:
                          type: number
                          example: 2
                        total_price_cents:
                          type:
                            - number
                            - 'null'
                          example: 8400
                        currency:
                          type: string
                          example: USD
                        purchased_at:
                          type:
                            - string
                            - 'null'
                          example: '2024-06-15T18:42:11Z'
                      required:
                        - id
                        - vendor
                        - order_id
                        - section
                        - row
                        - seat
                        - quantity
                        - total_price_cents
                        - currency
                        - purchased_at
                  players:
                    type: array
                    items:
                      type: object
                      properties:
                        player:
                          type: object
                          properties:
                            id:
                              type: number
                              example: 42
                            league:
                              type: string
                              example: mlb
                            mlb_stats_id:
                              type:
                                - number
                                - 'null'
                              example: 663728
                            espn_id:
                              type:
                                - string
                                - 'null'
                              example: '41292'
                            full_name:
                              type: string
                              example: Cal Raleigh
                            primary_position:
                              type:
                                - string
                                - 'null'
                              example: C
                            primary_number:
                              type:
                                - string
                                - 'null'
                              example: '29'
                            birth_date:
                              type:
                                - string
                                - 'null'
                              example: '1996-11-26'
                            birth_city:
                              type:
                                - string
                                - 'null'
                              example: Harrisonburg
                            birth_state_province:
                              type:
                                - string
                                - 'null'
                              example: VA
                            birth_country:
                              type:
                                - string
                                - 'null'
                              example: USA
                            height:
                              type:
                                - string
                                - 'null'
                              example: 6' 2"
                            weight:
                              type:
                                - integer
                                - 'null'
                              example: 235
                            bats:
                              type:
                                - string
                                - 'null'
                              example: B
                            throws:
                              type:
                                - string
                                - 'null'
                              example: R
                            primary_team:
                              $ref: '#/components/schemas/Team'
                            debut_date:
                              type:
                                - string
                                - 'null'
                              example: '2021-07-11'
                            college_name:
                              type:
                                - string
                                - 'null'
                              example: Florida State
                            awards:
                              type: array
                              items:
                                type: object
                                properties:
                                  season:
                                    type: string
                                    example: '2025'
                                  id:
                                    type: string
                                    example: ALSS
                                  name:
                                    type: string
                                    example: AL Silver Slugger
                                required:
                                  - season
                                  - id
                                  - name
                              description: >-
                                Filtered to honors that matter (Silver Slugger,
                                Gold Glove, MVP, All-MLB, Cy Young, etc.).
                                Newest season first. Empty array when no
                                qualifying awards or bio not yet enriched.
                            photo_silo:
                              type:
                                - object
                                - 'null'
                              properties:
                                cdn_url:
                                  type: string
                                  example: https://cdn.rewind.rest/.../players/silo/123
                                thumbhash:
                                  type:
                                    - string
                                    - 'null'
                                dominant_color:
                                  type:
                                    - string
                                    - 'null'
                                  example: '#1a3a6c'
                                accent_color:
                                  type:
                                    - string
                                    - 'null'
                                  example: '#c4ced4'
                              required:
                                - cdn_url
                                - thumbhash
                                - dominant_color
                                - accent_color
                            photo_full:
                              type:
                                - object
                                - 'null'
                              properties:
                                cdn_url:
                                  type: string
                                  example: https://cdn.rewind.rest/.../players/silo/123
                                thumbhash:
                                  type:
                                    - string
                                    - 'null'
                                dominant_color:
                                  type:
                                    - string
                                    - 'null'
                                  example: '#1a3a6c'
                                accent_color:
                                  type:
                                    - string
                                    - 'null'
                                  example: '#c4ced4'
                              required:
                                - cdn_url
                                - thumbhash
                                - dominant_color
                                - accent_color
                          required:
                            - id
                            - league
                            - mlb_stats_id
                            - espn_id
                            - full_name
                            - primary_position
                            - primary_number
                            - birth_date
                            - birth_city
                            - birth_state_province
                            - birth_country
                            - height
                            - weight
                            - bats
                            - throws
                            - primary_team
                            - debut_date
                            - college_name
                            - awards
                            - photo_silo
                            - photo_full
                        team:
                          $ref: '#/components/schemas/Team'
                        is_home:
                          type: boolean
                        batting_line:
                          type:
                            - object
                            - 'null'
                          additionalProperties: {}
                        pitching_line:
                          type:
                            - object
                            - 'null'
                          additionalProperties: {}
                        fielding_line:
                          type:
                            - object
                            - 'null'
                          additionalProperties: {}
                        decision:
                          type:
                            - string
                            - 'null'
                          example: W
                        notable:
                          type: boolean
                      required:
                        - player
                        - team
                        - is_home
                        - batting_line
                        - pitching_line
                        - fielding_line
                        - decision
                        - notable
                required:
                  - id
                  - category
                  - event_type
                  - event_date
                  - event_datetime
                  - title
                  - subtitle
                  - series_id
                  - external_id
                  - external_source
                  - event_data
                  - notes
                  - attended
                  - venue
                  - tickets
                  - players
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Team:
      type:
        - object
        - 'null'
      properties:
        id:
          type: integer
          example: 136
        league:
          type: string
          example: mlb
        abbreviation:
          type: string
          example: SEA
        location:
          type:
            - string
            - 'null'
          example: Seattle
        name:
          type: string
          example: Mariners
        full_name:
          type:
            - string
            - 'null'
          example: Seattle Mariners
        primary_color:
          type:
            - string
            - 'null'
          example: '#0C2C56'
        secondary_color:
          type:
            - string
            - 'null'
          example: '#005C5C'
        tertiary_color:
          type:
            - string
            - 'null'
          example: null
        ui_tint_color:
          type:
            - string
            - 'null'
          example: '#0C2C56'
        logo_url:
          type:
            - string
            - 'null'
          example: https://www.mlbstatic.com/team-logos/136.svg
        logo_dark_url:
          type:
            - string
            - 'null'
          example: https://www.mlbstatic.com/team-logos/team-cap-on-dark/136.svg
        logo_light_url:
          type:
            - string
            - 'null'
          example: https://www.mlbstatic.com/team-logos/team-cap-on-light/136.svg
        conference:
          type:
            - string
            - 'null'
          example: AL
        division:
          type:
            - string
            - 'null'
          example: AL West
      required:
        - id
        - league
        - abbreviation
        - location
        - name
        - full_name
        - primary_color
        - secondary_color
        - tertiary_color
        - ui_tint_color
        - logo_url
        - logo_dark_url
        - logo_light_url
        - conference
        - division
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Not found
        status:
          type: integer
          example: 404
      required:
        - error
        - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key. Read keys (rw_live_...) access GET endpoints. Admin keys
        (rw_admin_...) access all endpoints.

````