Skip to main content
GET
/
vehicle
/
{vehicle_id}
/
action
Get a vehicle's actions
curl --request GET \
  --url https://ctechnology.io/api/v2.2/vehicle/{vehicle_id}/action \
  --header 'Authorization: <api-key>'
{
  "header": {
    "num_results": 123,
    "api_version": "<string>",
    "status": "<string>",
    "message": "<string>",
    "permission_via": [
      {
        "permission": "<string>",
        "via": "me",
        "organization_id": "<string>"
      }
    ],
    "offset": 123,
    "limit": 123
  },
  "data": [
    {
      "id": "<string>",
      "vehicle_id": "<string>",
      "trip_id": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "type": "<string>",
      "message": "<string>",
      "data": {},
      "user_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Note that the API key has to be sent as Token 123 where 123 is the key you received after logging in or by creating on the developer dashboard.

Path Parameters

vehicle_id
string
required

ID of vehicle to retrieve actions for.

Query Parameters

from
string<date-time>

Limit the actions to those which timestamp is after from.

to
string<date-time>

Limit the actions to those which timestamp is before to.

limit
number

Limit the number of returned actions.

offset
number

Offset the returned actions.

rt
string

A request token for shared actions.

type
string

The type of action to filter for. Can be mutliple types separated by comma.

Response

Successful retrieval of this vehicle's actions.

header
API Header Paginated · object
required

Default header sent along with multi-resource responses (lists of resources).

data
Vehicle Action · object[]
required