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

# Publish Trip



## OpenAPI

````yaml /openapi.json post /v1/trips/{trip_id}/publish
openapi: 3.1.0
info:
  title: Stardrift API
  description: >-
    Read and edit the authenticated user's trips, itineraries, recorded
    bookings, and saved lists. Private records are owner-scoped. MCP tool names
    are documented separately from these HTTP operations.
  version: v1
servers:
  - url: https://stardrift.ai/api
security: []
paths:
  /v1/trips/{trip_id}/publish:
    post:
      tags:
        - mcp-server
      summary: Publish Trip
      operationId: publish_trip_v1_trips__trip_id__publish_post
      parameters:
        - name: trip_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Trip Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublishRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TripSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PublishRequest:
      properties:
        visibility:
          type: string
          enum:
            - draft
            - private
            - public
          title: Visibility
        slug:
          anyOf:
            - type: string
              pattern: ^[a-z0-9][a-z0-9-]{0,99}$
            - type: 'null'
          title: Slug
      type: object
      required:
        - visibility
      title: PublishRequest
    TripSummary:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Slug
        visibility:
          type: string
          title: Visibility
        is_published:
          type: boolean
          title: Is Published
      type: object
      required:
        - id
        - title
        - slug
        - visibility
        - is_published
      title: TripSummary
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````