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

# Get the rolling 12-month sea-time trend



## OpenAPI

````yaml /api-reference/openapi.json get /v1/me/sea-time/recent
openapi: 3.1.0
info:
  title: DSS Public API
  description: >-
    Public OAuth 2.0 API for Digital Sea Service. See
    https://docs.digitalseaservice.com for the developer guide.
  version: 1.0.0
  contact:
    name: DSS Developer Support
    email: admin@digitalseaservice.com
    url: https://docs.digitalseaservice.com
  license:
    name: Proprietary
  termsOfService: https://digitalseaservice.com/terms
servers:
  - url: https://api.digitalseaservice.com
    description: Production
  - url: https://api.dev.digitalseaservice.com
    description: Sandbox (dev)
security: []
paths:
  /v1/me/sea-time/recent:
    get:
      tags:
        - sea-time
      summary: Get the rolling 12-month sea-time trend
      operationId: get_sea_time_recent_v1_me_sea_time_recent_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SeaTimeRecentResponse'
        '304':
          description: Resource has not changed since the conditional header.
        '401':
          description: >-
            `invalid_token` — bearer token missing, malformed, expired, or
            revoked.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: '`insufficient_scope` — the token lacks the required scope.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: '`not_found` — no matching record for the authenticated user.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: '`rate_limit_exceeded` — per-client request budget exhausted.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: >-
            `internal_error` — an unexpected error occurred; reference
            `instance`.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - oauth2:
            - seatime:read
        - bearerAuth: []
components:
  schemas:
    SeaTimeRecentResponse:
      properties:
        user_id:
          type: string
          title: User Id
        months:
          items:
            $ref: '#/components/schemas/_RecentMonth'
          type: array
          title: Months
          description: Most-recent month first; max 12.
        record_updated_at:
          type: string
          format: date-time
          title: Record Updated At
      type: object
      required:
        - user_id
        - months
        - record_updated_at
      title: SeaTimeRecentResponse
      description: Rolling 12-month trend of declared sea time.
      example:
        months:
          - days_at_sea: 18
            month: 2026-05
            nautical_miles: 1240
          - days_at_sea: 22
            month: 2026-04
            nautical_miles: 1480
        record_updated_at: '2026-05-22T14:21:00Z'
        user_id: 65a1f0e2c3b4d5e6f7a8b9c0
    ProblemDetails:
      type: object
      description: >-
        RFC 7807 Problem Details. Returned with the `application/problem+json`
        content type on every resource (`/v1/*`) error.
      properties:
        type:
          type: string
          format: uri
          description: Stable URL identifying the error type; resolves to its docs page.
        title:
          type: string
          description: Short, human-readable summary of the error type.
        status:
          type: integer
          description: HTTP status code.
        detail:
          type: string
          description: Explanation specific to this occurrence.
        instance:
          type: string
          description: Request correlation id; matches the `X-Request-Id` header.
      required:
        - type
        - title
        - status
        - detail
        - instance
    _RecentMonth:
      properties:
        month:
          type: string
          pattern: ^\d{4}-(0[1-9]|1[0-2])$
          title: Month
          description: ISO year-month.
        days_at_sea:
          type: integer
          minimum: 0
          title: Days At Sea
        nautical_miles:
          type: integer
          minimum: 0
          title: Nautical Miles
      type: object
      required:
        - month
        - days_at_sea
        - nautical_miles
      title: _RecentMonth
      description: One month's contribution to the rolling 12-month trend.
      example:
        days_at_sea: 18
        month: 2026-05
        nautical_miles: 1240
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth 2.0 Authorization Code flow with PKCE. See the integration guide
        at docs.digitalseaservice.com for the full step-by-step.
      flows:
        authorizationCode:
          authorizationUrl: https://api.digitalseaservice.com/oauth/authorize
          tokenUrl: https://api.digitalseaservice.com/oauth/token
          refreshUrl: https://api.digitalseaservice.com/oauth/token
          scopes:
            profile:read: Read the crew member's name, role, country, and photo URL.
            seatime:read: Read aggregate sea-time totals and the 12-month trend.
            vessels:read: Read the crew member's vessel history.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Opaque

````