List Issues
GEThttps://secure.fleetio.com/api/v2/issues
Returns a list of Issues belonging to your account.
Request
Query Parameters
Possible values: [comments
, custom_fields
, documents
, images
, labels
]
A comma-separated list of additional attributes to include in the response.
Responses
- 200
- 401
- 500
OK
Response Headers
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
A unique identifier for the Issue.
Possible values: >= 1
A summary of the Issue.
A longer description of the Issue.
The Issue's current state.
Possible values: [open
, closed
, resolved
]
The date and time at which this Issue was reported.
2023-03-14T13:46:27-06:00
reported_by objectnullablerequired
The type of the object which can resolve this Issue.
Possible values: [ServiceEntry
, WorkOrder
]
The date and time at which this Issue was resolved.
2023-03-14T13:46:27-06:00
resolved_by objectnullablerequired
Any notes associated with resolving this Issue.
The date and time at which this Issue was closed.
2023-03-14T13:46:27-06:00
closed_by objectnullablerequired
Any notes associated with closing this Issue.
The date on which this Issue should be resolved by.
Formatted according to ISO-8601 in User
's local time zone.
2023-03-14
The meter value at which this Issue should be resolved by.
The secondary meter value at which this Issue should be resolved by.
Indicates whether the Issue is overdue.
issue_priority object
resolvable objectnullablerequired
Indicates if this Issue was created manually or by a workflow.
Possible values: [manual
, workflow
]
attachment_permissions objectnullablerequired
asset objectrequired
The asset type that has the Issue.
Possible values: [Vehicle
, Equipment
]
submitted_inspection_form objectnullablerequired
fault objectnullablerequired
The count of watchers associated with the Issue.
The count of Comments
associated with the Issue.
The count of images associated with the Issue.
The count of documents associated with the Issue.
*Full details on working with Custom Fields here.
labels object[]
[
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"number": 0,
"summary": "string",
"description": "string",
"state": "open",
"reported_at": "2023-03-14T13:46:27-06:00",
"reported_by": {
"id": 0
},
"resolvable_type": "ServiceEntry",
"resolved_at": "2023-03-14T13:46:27-06:00",
"resolved_by": {
"id": 0
},
"resolved_note": "string",
"closed_at": "2023-03-14T13:46:27-06:00",
"closed_by": {
"id": 0
},
"closed_note": "string",
"due_date": "2023-03-14",
"due_meter_value": 0,
"due_secondary_meter_value": 0,
"is_overdue": true,
"issue_priority": {
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"alias": "string",
"name": "string",
"slug": "string",
"description": "string",
"default": true,
"enabled": true,
"position": 0
},
"resolvable": {
"id": 0
},
"creation_type": "manual",
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"asset": {
"id": 0,
"name": "string",
"image_url_medium": "string"
},
"asset_type": "Vehicle",
"submitted_inspection_form": {
"id": 0
},
"fault": {
"id": 0
},
"watchers_count": 0,
"comments_count": 0,
"images_count": 0,
"documents_count": 0,
"custom_fields": {},
"labels": [
{
"id": 0,
"name": "string",
"color": "string"
}
]
}
]
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64". You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
- curl
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL
curl -L 'https://secure.fleetio.com/api/v2/issues' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'