Get an activity
GET /v1/activities/{activity_id}
Authentication
Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.
Path parameters
| Name | Type | Required |
|---|---|---|
activity_id | string | yes |
Query parameters
| Name | Type | Required |
|---|---|---|
select | array of "actual_amounts" | "attributes" | "created_at" | "created_by" | "deleted_at" | "deleted_by" | "id" | "job" | "location_id" | "logs" | "modified_at" | "modified_by" | "owners" | "route_id" | "status" | "status_at" | "status_description" | "status_reason" | "tags" | "task_id" | "time" | "type" | "type_alias" |
Responses
200
resource: PartialActivityWithId
| Field | Type | Required |
|---|---|---|
time | array of tuple | |
attributes | object | |
type | "break" | "delivery" | "end" | "pickup" | "replacement" | "service" | "start" | |
status | "COMPLETED" | "CREATED" | "FAILED" | |
route_id | null or string | |
created_at | string | |
modified_at | null or string | |
deleted_at | null or string | |
created_by | string | |
modified_by | null or string | |
deleted_by | null or string | |
owners | array of string | |
tags | array of string | |
status_description | null or string | |
type_alias | null or string | |
logs | array of string | |
job | null or string | |
status_at | null or string | |
status_reason | null or string | |
actual_amounts | object or null | |
task_id | null or string | |
location_id | null or string | |
id | string | yes |
Example
curl -X GET 'https://routes-api.cloud.zoopit.no/v1/activities/{activity_id}'
-H 'Authorization: Bearer <token>'
Try it in the interactive Routes API reference.
Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.