> ## Documentation Index
> Fetch the complete documentation index at: https://api-doc.track.graviton.ma/llms.txt
> Use this file to discover all available pages before exploring further.

# Get stop segments

> Requires the history permission for subaccounts. Supply from and to with explicit timezones; the interval must not exceed 93 days. Calculation uses at most 10,000 points. Stops use speed below 1; driving uses speed of 1 or greater.



## OpenAPI

````yaml /openapi.json get /objects/{imei}/stops
openapi: 3.0.3
info:
  title: Graviton Geo V1 Client API
  version: 2.0.0
  description: >-
    Client API for Graviton Geo V1. Use an API token to access your fleet,
    tracking, resources, commands, and reports. The REST API base path is
    /api/v2.
servers:
  - url: https://fleet.graviton.ma/api/v2
    description: Production
security:
  - ApiKey: []
tags:
  - name: System
  - name: Account
  - name: Fleet
  - name: Tracking
  - name: Commands
  - name: Places
  - name: People and groups
  - name: Events
  - name: Maintenance
  - name: Sensors
  - name: Reports
  - name: Templates
paths:
  /objects/{imei}/stops:
    parameters:
      - $ref: '#/components/parameters/Imei'
      - $ref: '#/components/parameters/From'
      - $ref: '#/components/parameters/To'
    get:
      tags:
        - Tracking
      summary: Get stop segments
      description: >-
        Requires the history permission for subaccounts. Supply from and to with
        explicit timezones; the interval must not exceed 93 days. Calculation
        uses at most 10,000 points. Stops use speed below 1; driving uses speed
        of 1 or greater.
      operationId: get_objects_imei_stops
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      imei:
                        type: string
                      from:
                        type: string
                      to:
                        type: string
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            from:
                              type: string
                            to:
                              type: string
                            start_lat:
                              type: number
                            start_lng:
                              type: number
                            end_lat:
                              type: number
                            end_lng:
                              type: number
                            max_speed:
                              type: number
                            duration_seconds:
                              type: integer
                          additionalProperties: true
                    additionalProperties: true
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
components:
  parameters:
    Imei:
      name: imei
      in: path
      required: true
      schema:
        type: string
        pattern: ^[A-Za-z0-9_-]{1,20}$
    From:
      name: from
      in: query
      required: true
      schema:
        type: string
        format: date-time
    To:
      name: to
      in: query
      required: true
      schema:
        type: string
        format: date-time
  schemas:
    Meta:
      type: object
      properties:
        request_id:
          type: string
        page:
          type: integer
        per_page:
          type: integer
        total:
          type: integer
        pages:
          type: integer
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
              additionalProperties: true
        meta:
          $ref: '#/components/schemas/Meta'
  responses:
    Error:
      description: API error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Your Graviton API token. Send Authorization: Bearer YOUR_API_TOKEN or
        Authorization: YOUR_API_TOKEN. Each token has individual permissions; a
        valid token without the permission required by the method and route
        returns 403 TOKEN_PERMISSION_DENIED.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.