> ## 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.

# List services

> Works with resources accessible to your account.



## OpenAPI

````yaml /openapi.json get /services
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:
  /services:
    get:
      tags:
        - Maintenance
      summary: List services
      description: Works with resources accessible to your account.
      operationId: get_services
      parameters:
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/PerPage'
        - $ref: '#/components/parameters/Search'
        - $ref: '#/components/parameters/Order'
        - name: sort
          in: query
          description: Registered field used for sorting.
          schema:
            type: string
            enum:
              - service_id
              - imei
              - name
              - odo
              - odo_interval
              - odo_last
              - engh
              - engh_interval
              - engh_last
              - days
              - days_interval
              - days_last
              - odo_left
              - odo_left_num
              - engh_left
              - engh_left_num
              - days_left
              - days_left_num
              - update_last
              - notify_service_expire
            default: service_id
        - name: imei
          in: query
          description: Exact-match filter for imei.
          schema:
            type: string
        - name: name
          in: query
          description: Exact-match filter for name.
          schema:
            type: string
        - name: odo
          in: query
          description: Exact-match filter for odo.
          schema:
            type: string
        - name: odo_interval
          in: query
          description: Exact-match filter for odo_interval.
          schema:
            type: string
        - name: odo_last
          in: query
          description: Exact-match filter for odo_last.
          schema:
            type: string
        - name: engh
          in: query
          description: Exact-match filter for engh.
          schema:
            type: string
        - name: engh_interval
          in: query
          description: Exact-match filter for engh_interval.
          schema:
            type: string
        - name: engh_last
          in: query
          description: Exact-match filter for engh_last.
          schema:
            type: string
        - name: days
          in: query
          description: Exact-match filter for days.
          schema:
            type: string
        - name: days_interval
          in: query
          description: Exact-match filter for days_interval.
          schema:
            type: string
        - name: days_last
          in: query
          description: Exact-match filter for days_last.
          schema:
            type: string
        - name: odo_left
          in: query
          description: Exact-match filter for odo_left.
          schema:
            type: string
        - name: odo_left_num
          in: query
          description: Exact-match filter for odo_left_num.
          schema:
            type: string
        - name: engh_left
          in: query
          description: Exact-match filter for engh_left.
          schema:
            type: string
        - name: engh_left_num
          in: query
          description: Exact-match filter for engh_left_num.
          schema:
            type: string
        - name: days_left
          in: query
          description: Exact-match filter for days_left.
          schema:
            type: string
        - name: days_left_num
          in: query
          description: Exact-match filter for days_left_num.
          schema:
            type: string
        - name: update_last
          in: query
          description: Exact-match filter for update_last.
          schema:
            type: string
        - name: notify_service_expire
          in: query
          description: Exact-match filter for notify_service_expire.
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        service_id:
                          oneOf:
                            - type: number
                            - type: string
                          description: >-
                            Numeric value; legacy values may be serialized as
                            strings.
                        imei:
                          description: Imei.
                        name:
                          description: Name.
                        odo:
                          description: Odo.
                        odo_interval:
                          description: Odo interval.
                        odo_last:
                          description: Odo last.
                        engh:
                          description: Engh.
                        engh_interval:
                          description: Engh interval.
                        engh_last:
                          description: Engh last.
                        days:
                          description: Days.
                        days_interval:
                          description: Days interval.
                        days_last:
                          description: Days last.
                        odo_left:
                          description: Odo left.
                        odo_left_num:
                          description: Odo left num.
                        engh_left:
                          description: Engh left.
                        engh_left_num:
                          description: Engh left num.
                        days_left:
                          description: Days left.
                        days_left_num:
                          description: Days left num.
                        update_last:
                          description: Update last.
                        notify_service_expire:
                          description: Notify service expire.
                      additionalProperties: true
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
components:
  parameters:
    Page:
      name: page
      in: query
      schema:
        type: integer
        minimum: 1
        default: 1
    PerPage:
      name: per_page
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 500
        default: 50
    Search:
      name: search
      in: query
      description: >-
        Partial text search across the resource's registered safe search fields.
        Whitespace is trimmed; literal percent and underscore characters are
        escaped. Search is applied after account, ownership, privilege, and
        object scope.
      schema:
        type: string
        minLength: 2
        maxLength: 100
    Order:
      name: order
      in: query
      schema:
        type: string
        enum:
          - asc
          - desc
        default: asc
  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.