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

# List recent routes

> Returns the mileage routes the current user used recently in the organization, most recently used first. The list holds at most 10 routes. The list is empty when the user has no recent routes or the recent routes are not accessible.



## OpenAPI

````yaml /openapi/findity-expense-api.json get /me/organizations/{organizationId}/recentroutes
openapi: 3.0.3
info:
  title: Findity Expense API
  description: Findity Expense API
  version: 1.0.0
servers:
  - url: https://stage-api.findity.com/api/v1/expense
  - url: https://api.findity.com/api/v1/expense
security:
  - bearerAuth: []
paths:
  /me/organizations/{organizationId}/recentroutes:
    get:
      tags:
        - Route
      summary: List recent routes
      description: >-
        Returns the mileage routes the current user used recently in the
        organization, most recently used first. The list holds at most 10
        routes. The list is empty when the user has no recent routes or the
        recent routes are not accessible.
      operationId: listRecentRoutes
      parameters:
        - $ref: '#/components/parameters/recentRouteOrganizationId'
        - $ref: '#/components/parameters/recentRoutesSearchText'
        - $ref: '#/components/parameters/filter'
        - $ref: '#/components/parameters/max'
        - $ref: '#/components/parameters/offset'
        - name: sort
          in: query
          required: false
          description: >
            Optional. The property and direction to sort the recent routes by,
            as a string in the `property:direction` format, where property is
            `lastUsed` and direction is `asc` or `desc` (for example
            `lastUsed:asc`). Several criteria can be given as a comma-separated
            list or by repeating the parameter, and the first accepted criterion
            applies. Any other value is ignored. Defaults to `lastUsed:desc`
            (most recently used first) when omitted. Routes used at the same
            time are ordered by `id`.
          schema:
            type: string
            default: lastUsed:desc
          example: lastUsed:asc
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecentRoutes'
              example:
                meta:
                  total: 2
                  count: 2
                data:
                  - id: 9f2c41b7d3a84e5c8b6a1d0e7f394a52
                    name: Stockholm – Uppsala – Stockholm (Round trip)
                  - id: 3b7e0a95c1d24f68a2e4b9d70c5f1a86
                    name: Stockholm – Västerås
        '400':
          description: >-
            A `max` or `offset` value is invalid. It is checked after the
            organization access check.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
              example:
                result: error
                code: INVALID_PARAMETER
                description: 'max must be an integer between 1 and 1000, was: 0'
        '401':
          description: The access token is missing, invalid or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/401Error'
              example:
                result: unauthorized
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
              example:
                result: error
                code: ORGANIZATION_NOT_FOUND
                description: Organization not found
components:
  parameters:
    recentRouteOrganizationId:
      name: organizationId
      in: path
      description: >-
        Required. String in UUID format (32 hex characters, no dashes). The id
        of the organization the recent routes belong to.
      required: true
      schema:
        $ref: '#/components/schemas/Uuid'
      example: 05b8daba9ba14a49846fe77883248cf0
    recentRoutesSearchText:
      name: searchText
      in: query
      description: >-
        Optional. String. Case-insensitive text to look for in the route name.
        Only routes whose name contains the text are returned. The backend
        enforces no minimum or maximum length and does not trim the text. An
        empty value is the same as omitting the parameter and returns all
        routes.
      required: false
      schema:
        type: string
      example: Uppsala
    filter:
      name: filter
      in: query
      description: filters values by passed id
      required: false
      schema:
        type: string
    max:
      name: max
      in: query
      description: max records to return
      required: false
      schema:
        type: integer
        format: int
        minimum: 1
        maximum: 1000
        default: 10
    offset:
      name: offset
      in: query
      description: the offset to be used in list
      required: false
      schema:
        type: integer
        format: int
        minimum: 0
        default: 0
  schemas:
    RecentRoutes:
      type: object
      properties:
        meta:
          type: object
          properties:
            total:
              type: integer
              description: >-
                Number of recent routes that match `searchText`, before `max`
                and `offset` apply.
              example: 2
            count:
              type: integer
              description: Number of recent routes in this response.
              example: 2
        data:
          type: array
          items:
            $ref: '#/components/schemas/RecentRoute'
    400Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
        requestId:
          type: string
          description: >-
            Identifier of the request in the server logs. Included when the
            server assigned one.
          example: 47b17d6f18b84c5b8c9460c55d98c108
    401Error:
      type: object
      properties:
        result:
          type: string
        description:
          type: string
    404Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
    Uuid:
      type: string
      pattern: ^[0-9a-fA-F]{32}$
      description: UUID without dashes (32-character hex string)
    RecentRoute:
      type: object
      description: A route the user recently used on a mileage expense.
      properties:
        id:
          type: string
          description: >-
            String in UUID format. The id of the recent route. Use it in `DELETE
            /me/organizations/{organizationId}/recentroutes/{recentRouteId}`.
          example: 9f2c41b7d3a84e5c8b6a1d0e7f394a52
        name:
          type: string
          description: >-
            String. Display name of the route: the places joined with ` – `,
            followed by the localized round trip label in parentheses when the
            route is a round trip.
          example: Stockholm – Uppsala – Stockholm (Round trip)
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````