---
agentTools:
  projectIndex: https://developer-docs.gomotive.com/llms.txt
---

# Search for a specific user

**Purpose**: Use this API to search for a specific user and see their information.

> 📘 NOTE
>
> This API requires you to specify any one of the following as a query parameter: Refer to the **Query Parameters** section for more info.
>
> * Email
> * User Name
> * Driver's Company ID
> * Phone

## Response Parameters

### id

* **Type**: Integer
* **Description**: Unique identifier for the user.

### email

* **Type**: String
* **Description**: User's email address.

### first\_name

* **Type**: String
* **Description**: User's first name.

### last\_name

* **Type**: String
* **Description**: User's last name.

### phone

* **Type**: String
* **Description**: User's phone number.

### phone\_ext

* **Type**: String
* **Description**: Phone extension.

### time\_zone

* **Type**: String
* **Description**: Time zone of the user.

### metric\_units

* **Type**: Boolean
* **Description**: Indicates if metric units are used.

### carrier\_name

* **Type**: String
* **Description**: Name of the carrier.

### carrier\_street

* **Type**: String
* **Description**: Street address of the carrier.

### carrier\_city

* **Type**: String
* **Description**: City of the carrier.

### carrier\_state

* **Type**: String
* **Description**: State of the carrier.

### carrier\_zip

* **Type**: String
* **Description**: Zip code of the carrier.

### violation\_alerts

* **Type**: String
* **Description**: Frequency of violation alerts (e.g., `1_hour`, `2_hours`).

### terminal\_street

* **Type**: String
* **Description**: Street address of the terminal.

### terminal\_city

* **Type**: String
* **Description**: City of the terminal.

### terminal\_state

* **Type**: String
* **Description**: State of the terminal.

### terminal\_zip

* **Type**: String
* **Description**: Zip code of the terminal.

### cycle

* **Type**: String
* **Description**: Cycle type associated with the user.

### exception\_24\_hour\_restart

* **Type**: Boolean
* **Description**: Indicates if the 24-hour restart exception is enabled.

### exception\_8\_hour\_break

* **Type**: Boolean
* **Description**: Indicates if the 8-hour break exception is enabled.

### exception\_wait\_time

* **Type**: Boolean
* **Description**: Indicates if the wait time exception is enabled.

### exception\_short\_haul

* **Type**: Boolean
* **Description**: Indicates if the short haul exception is enabled.

### exception\_ca\_farm\_school\_bus

* **Type**: Boolean
* **Description**: Indicates if the California farm school bus exception is enabled.

### cycle2

* **Type**: String
* **Description**: Secondary cycle type.

### exception\_24\_hour\_restart2

* **Type**: Boolean
* **Description**: Indicates if the 24-hour restart exception is enabled (secondary).

### exception\_8\_hour\_break2

* **Type**: Boolean
* **Description**: Indicates if the 8-hour break exception is enabled (secondary).

### exception\_wait\_time2

* **Type**: Boolean
* **Description**: Indicates if the wait time exception is enabled (secondary).

### exception\_short\_haul2

* **Type**: Boolean
* **Description**: Indicates if the short haul exception is enabled (secondary).

### exception\_ca\_farm\_school\_bus2

* **Type**: Boolean
* **Description**: Indicates if the California farm school bus exception is enabled (secondary).

### export\_combined

* **Type**: Boolean
* **Description**: Indicates if combined export is enabled.

### export\_recap

* **Type**: Boolean
* **Description**: Indicates if recap export is enabled.

### export\_odometers

* **Type**: Boolean
* **Description**: Indicates if odometer export is enabled.

### username

* **Type**: String
* **Description**: Username of the user.

### driver\_company\_id

* **Type**: String
* **Description**: Driver's company ID.

### minute\_logs

* **Type**: Boolean
* **Description**: Indicates if minute logs are enabled.

### duty\_status

* **Type**: String
* **Description**: Current duty status of the user.

### eld\_mode

* **Type**: String
* **Description**: ELD mode of the user.

### drivers\_license\_number

* **Type**: String
* **Description**: Driver's license number.

### drivers\_license\_state

* **Type**: String
* **Description**: State where the driver's license was issued.

### yard\_moves\_enabled

* **Type**: Boolean
* **Description**: Indicates if yard moves are enabled.

### personal\_conveyance\_enabled

* **Type**: Boolean
* **Description**: Indicates if personal conveyance is enabled.

### manual\_driving\_enabled

* **Type**: Boolean
* **Description**: Indicates if manual driving is enabled.

### role

* **Type**: String
* **Description**: Role of the user (e.g., `driver`).

### status

* **Type**: String
* **Description**: Status of the user (e.g., `active`).

### created\_at

* **Type**: String
* **Description**: Timestamp when the user was created.

### updated\_at

* **Type**: String
* **Description**: Timestamp when the user was last updated.

### external\_ids

* **Type**: Array
* **Description**: External IDs associated with the user.

***

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Motive",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.gomotive.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/users/lookup": {
      "get": {
        "summary": "Search for a specific user",
        "description": "",
        "operationId": "search-for-a-specific-user",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "description": "Specify the email address of the user.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "Specify the username of the user that you are searching for.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "driver_company_id",
            "in": "query",
            "description": "Specify the driver's company ID. NOTE: This parameter is only applicable for drivers.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "phone",
            "in": "query",
            "description": "Enter the user's phone number.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Time-Zone",
            "in": "header",
            "description": "Specify the timezone for formatting the timestamps.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Metric-Units",
            "in": "header",
            "description": "Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "X-User-Id",
            "in": "header",
            "description": "Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Search for a user": {
                    "value": "  {\n  \"user\": {\n    \"id\": 294979,\n    \"email\": null,\n    \"first_name\": \"John\",\n    \"last_name\": \"Connor\",\n    \"phone\": \"\",\n    \"phone_ext\": null,\n    \"time_zone\": \"Pacific Time (US & Canada)\",\n    \"metric_units\": false,\n    \"carrier_name\": \"Demo Carrier\",\n    \"carrier_street\": \"415 Truckin St.\",\n    \"carrier_city\": \"San Francisco\",\n    \"carrier_state\": \"CA\",\n    \"carrier_zip\": \"94105\",\n    \"violation_alerts\": \"1_hour\",\n    \"terminal_street\": \"350 Sansome St\",\n    \"terminal_city\": \"San Francisco\",\n    \"terminal_state\": \"CA\",\n    \"terminal_zip\": \"94104\",\n    \"cycle\": \"70_8\",\n    \"exception_24_hour_restart\": false,\n    \"exception_8_hour_break\": false,\n    \"exception_wait_time\": false,\n    \"exception_short_haul\": false,\n    \"exception_ca_farm_school_bus\": false,\n    \"cycle2\": null,\n    \"exception_24_hour_restart2\": false,\n    \"exception_8_hour_break2\": false,\n    \"exception_wait_time2\": false,\n    \"exception_short_haul2\": false,\n    \"exception_ca_farm_school_bus2\": false,\n    \"export_combined\": true,\n    \"export_recap\": true,\n    \"export_odometers\": true,\n    \"username\": \"demo_driver_1_kt3647454\",\n    \"driver_company_id\": null,\n    \"minute_logs\": true,\n    \"duty_status\": \"off_duty\",\n    \"eld_mode\": \"logs\",\n    \"drivers_license_number\": \"\",\n    \"drivers_license_state\": \"\",\n    \"yard_moves_enabled\": true,\n    \"personal_conveyance_enabled\": true,\n    \"role\": \"driver\",\n    \"status\": \"active\",\n    \"created_at\": \"2016-08-09T00:43:40Z\",\n    \"updated_at\": \"2017-04-20T21:08:32.134197Z\",\n    \"external_ids\": []\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 294979,
                          "default": 0
                        },
                        "email": {},
                        "first_name": {
                          "type": "string",
                          "example": "John"
                        },
                        "last_name": {
                          "type": "string",
                          "example": "Connor"
                        },
                        "phone": {
                          "type": "string",
                          "example": ""
                        },
                        "phone_ext": {},
                        "time_zone": {
                          "type": "string",
                          "example": "Pacific Time (US & Canada)"
                        },
                        "metric_units": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "carrier_name": {
                          "type": "string",
                          "example": "Demo Carrier"
                        },
                        "carrier_street": {
                          "type": "string",
                          "example": "415 Truckin St."
                        },
                        "carrier_city": {
                          "type": "string",
                          "example": "San Francisco"
                        },
                        "carrier_state": {
                          "type": "string",
                          "example": "CA"
                        },
                        "carrier_zip": {
                          "type": "string",
                          "example": "94105"
                        },
                        "violation_alerts": {
                          "type": "string",
                          "example": "1_hour"
                        },
                        "terminal_street": {
                          "type": "string",
                          "example": "350 Sansome St"
                        },
                        "terminal_city": {
                          "type": "string",
                          "example": "San Francisco"
                        },
                        "terminal_state": {
                          "type": "string",
                          "example": "CA"
                        },
                        "terminal_zip": {
                          "type": "string",
                          "example": "94104"
                        },
                        "cycle": {
                          "type": "string",
                          "example": "70_8"
                        },
                        "exception_24_hour_restart": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "exception_8_hour_break": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "exception_wait_time": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "exception_short_haul": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "exception_ca_farm_school_bus": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "cycle2": {},
                        "exception_24_hour_restart2": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "exception_8_hour_break2": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "exception_wait_time2": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "exception_short_haul2": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "exception_ca_farm_school_bus2": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "export_combined": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "export_recap": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "export_odometers": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "username": {
                          "type": "string",
                          "example": "demo_driver_1_kt3647454"
                        },
                        "driver_company_id": {},
                        "minute_logs": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "duty_status": {
                          "type": "string",
                          "example": "off_duty"
                        },
                        "eld_mode": {
                          "type": "string",
                          "example": "logs"
                        },
                        "drivers_license_number": {
                          "type": "string",
                          "example": ""
                        },
                        "drivers_license_state": {
                          "type": "string",
                          "example": ""
                        },
                        "yard_moves_enabled": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "personal_conveyance_enabled": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "role": {
                          "type": "string",
                          "example": "driver"
                        },
                        "status": {
                          "type": "string",
                          "example": "active"
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2016-08-09T00:43:40Z"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2017-04-20T21:08:32.134197Z"
                        },
                        "external_ids": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {}
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "User Not Found": {
                    "value": "{\n  \"error_message\": \"user not found\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_message": {
                      "type": "string",
                      "example": "user not found"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66acf64a829e88001980fbf2:66ccc5ceecdefa002161fdc7"
}
```