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

# List shared trip views

> Returns tokenized public share links generated for trips / map snapshots. The bearer of the link can view the trip without an account; revoke by setting `expires_at` in the dashboard.



## OpenAPI

````yaml /openapi.json get /shares
openapi: 3.1.0
info:
  title: United Logistics API
  version: 0.1.0
  description: >-
    Industry-grade public API for fleet, fuel, and toll operations. Every
    endpoint is scoped to the organization owning the API key. Authentication:
    bearer API key (`ulk_<prefix>_<secret>`). Rate limit: 60 requests/minute/key
    by default (override per key via the dashboard).
  contact:
    name: United Logistics Engineering
    email: sfuentes@assetmg.tech
servers:
  - url: https://app.unitedlogistics.com.do/api/v1
    description: Production
  - url: http://localhost:3000/api/v1
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /shares:
    get:
      tags:
        - Shares
      summary: List shared trip views
      description: >-
        Returns tokenized public share links generated for trips / map
        snapshots. The bearer of the link can view the trip without an account;
        revoke by setting `expires_at` in the dashboard.
      parameters:
        - schema:
            type: string
            pattern: ^\d+$
          required: false
          name: limit
          in: query
        - schema:
            type: string
          required: false
          name: cursor
          in: query
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
          required: false
          name: include_expired
          in: query
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SharedTripViewListResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorObject'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorObject'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SharedTripViewListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/SharedTripView'
        pagination:
          $ref: '#/components/schemas/PaginationCursor'
      required:
        - data
        - pagination
    ErrorObject:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: unauthorized
            message:
              type: string
              example: Missing Authorization header.
            details: {}
          required:
            - code
            - message
      required:
        - error
    SharedTripView:
      type: object
      properties:
        id:
          type: integer
        token:
          type: string
          format: uuid
        org_id:
          type: string
          format: uuid
        created_by:
          type:
            - string
            - 'null'
        filters: {}
        created_at:
          type: string
        expires_at:
          type:
            - string
            - 'null'
        last_accessed_at:
          type:
            - string
            - 'null'
        access_count:
          type:
            - integer
            - 'null'
        metadata: {}
      required:
        - id
        - token
        - org_id
        - created_by
        - created_at
        - expires_at
        - last_accessed_at
        - access_count
    PaginationCursor:
      type: object
      properties:
        next_cursor:
          type:
            - string
            - 'null'
          description: >-
            Opaque cursor for the next page. Null when there are no more
            results.
          example: eyJpZCI6IjAxQUI...
        has_more:
          type: boolean
      required:
        - next_cursor
        - has_more
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: ulk_<prefix>_<secret>
      description: >-
        Authorization: Bearer ulk_<prefix>_<secret>. Cree la clave en
        Configuración → API.

````