# Endpoints

*Explore the current TrackSim API contract. Switch versions without leaving the reference.*

## Manage driver tracking

Update Truck and Coach Job settings for ETS2, plus Truck and Car Job settings for ATS.

`PATCH https://api.tracksim.app/v3/drivers/{steam_id}/manage`

### Request

```json
{
  "eut2_job_logging": false,
  "eut2_live_tracking": false,
  "eut2_coach_job_logging": false,
  "eut2_coach_live_tracking": false,
  "ats_job_logging": false,
  "ats_live_tracking": false,
  "ats_car_job_logging": false,
  "ats_car_live_tracking": false
}
```

### Response

```json
{
  "id": 7489,
  "steam_id": "76561198171686422",
  "username": "Nathan7471",
  "profile_photo_url": "https://avatars.akamai.steamstatic.com/8a7875512f066802864fc9946845cf24a0873193_full.jpg",
  "client": {
    "is_installed": true,
    "version": {
      "version": "2.2.1",
      "branch": "production",
      "platform": "windows"
    }
  },
  "settings": {
    "eut2": {
      "truck": {
        "job_logging": false,
        "live_tracking": false
      },
      "coach": {
        "job_logging": false,
        "live_tracking": false
      }
    },
    "ats": {
      "truck": {
        "job_logging": false,
        "live_tracking": false
      },
      "car": {
        "job_logging": false,
        "live_tracking": false
      }
    }
  },
  "is_banned": false,
  "last_active": "2026-11-13T02:19:58.153Z"
}
```

## Get driver details

Return driver information with settings grouped by game and vehicle type.

`GET https://api.tracksim.app/v3/drivers/{steam_id}/details`

### Response

```json
{
  "id": 7489,
  "steam_id": "76561198171686422",
  "username": "Nathan7471",
  "profile_photo_url": "https://avatars.akamai.steamstatic.com/8a7875512f066802864fc9946845cf24a0873193_full.jpg",
  "client": {
    "is_installed": true,
    "version": {
      "version": "2.2.1",
      "branch": "production",
      "platform": "windows"
    }
  },
  "settings": {
    "eut2": {
      "truck": {
        "job_logging": true,
        "live_tracking": false
      },
      "coach": {
        "job_logging": true,
        "live_tracking": true
      }
    },
    "ats": {
      "truck": {
        "job_logging": true,
        "live_tracking": false
      },
      "car": {
        "job_logging": true,
        "live_tracking": false
      }
    }
  },
  "is_banned": false,
  "last_active": "2026-11-13T02:19:58.153Z"
}
```

## Get a job route

Return the recorded coordinates for a Truck, Car, or Bus Job.

`GET https://api.tracksim.app/v2/jobs/<job_id>/route?job_type=<truck|car|bus>`

### Query parameters

- `job_type` (required) - The job type. Must be `truck`, `car`, or `bus`.

Store the returned array on your own systems if you request this endpoint frequently, to reduce the chance of rate limiting. Coordinates are returned in order from the beginning of the job to the end.

### Truck and Car response

The response for `truck` and `car` jobs is unchanged.

```json
[
  {
    "x": -104770.3412,
    "z": -4.7508,
    "time": 1677627692
  }
]
```

### Bus response

For a `bus` job, each item in the returned array includes speed, passenger satisfaction, and peak G-force values.

```json
[
  {
    "x": -13514.82,
    "z": -6209.26,
    "time": 1794507262,
    "speed_kmh": 67.4,
    "satisfaction": 0.0004,
    "peak_lateral_g": 0.0,
    "peak_braking_g": 0.0,
    "peak_acceleration_g": 0.0,
    "peak_vertical_g": 0.0
  }
]
```

### Errors

- `403 job_type_is_required` - The `job_type` query parameter was not provided.
- `403 job_type_is_invalid_must_be_truck_or_car_or_bus` - The provided `job_type` is not `truck`, `car`, or `bus`.
- `404 job_does_not_exist_in_company` - The requested job does not exist in the company.
- `404 route_not_found_for_this_job` - No route was found for the requested job.
