Retrieve Contact
GEThttps://secure.fleetio.com/api/v2/contacts/:id
Retrieves the details of an existing contact.
Request
Path Parameters
Possible values: Value must match regular expression ^[0-9]+$
The id of the relevant record
Query Parameters
Additional attributes that should be returned in the response. Available: group
Responses
- 200
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
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
The Contact's full name.
The Contact's first name.
The Contact's middle name.
If this Contact belongs to a Group, this will be the Fleetio ID of that Group.
If this Contact belongs to a Group, this will be the Group's name.
The Contact's last name.
The number of images associated with this Contact.
The number of documents associated with this Contact.
The number of Comments
associated with this Contact.
The Contact's email address.
Whether this Contact is a Technician.
Whether this Contact is a Vehicle Operator.
Whether this Contact is an Employee.
The Contact's birth date.
2023-03-14
The Contact's street address.
The second line of the Contact's street address.
The Contact's city.
The Contact's region.
The Contact's postal code.
The Contact's country.
The Contact's employee number.
The Contact's job title.
Possible values: <= 255 characters
The Contact's license class.
The Contact's license number.
The state which issued the Contact's license.
The Contact's driver's license expiration date.
2023-03-14
The Contact's home phone number.
The Contact's mobile phone number.
The Contact's work phone number.
Any other mobile phone number belonging to this Contact.
The Contact's start date.
The Contact's leave date.
The Contact's hourly rate.
*Full details on working with Custom Fields here.
The URL pointing to the default image for this Contact.
Possible values: >= 1
The date and time at which this Contact was archived, if applicable. null
if this Contact is not archived.
2023-03-14T13:46:27-06:00
user objectnullablerequired
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"name": "string",
"first_name": "string",
"middle_name": "string",
"group_id": 0,
"group_name": "string",
"last_name": "string",
"images_count": 0,
"documents_count": 0,
"comments_count": 0,
"email": "string",
"technician": true,
"vehicle_operator": true,
"employee": true,
"birth_date": "2023-03-14",
"street_address": "string",
"street_address_line_2": "string",
"city": "string",
"region": "string",
"postal_code": "string",
"country": "string",
"employee_number": "string",
"job_title": "string",
"license_class": "string",
"license_number": "string",
"license_state": "string",
"license_expiration": "2023-03-14",
"home_phone_number": "string",
"mobile_phone_number": "string",
"work_phone_number": "string",
"other_phone_number": "string",
"start_date": "2024-07-29",
"leave_date": "2024-07-29",
"hourly_labor_rate": 0,
"custom_fields": {},
"default_image_url": "string",
"account_membership_id": 0,
"archived_at": "2023-03-14T13:46:27-06:00",
"user": {
"id": 0,
"email": "string",
"username": "string",
"time_zone": "string",
"user_type": "admin",
"archived_at": "2024-07-29T15:51:28.071Z",
"role": {
"id": 0,
"name": "string"
},
"vehicles_record_set": {
"id": 0,
"name": "string"
},
"equipments_record_set": {
"id": 0,
"name": "string"
},
"contacts_record_set": {
"id": 0,
"name": "string"
},
"parts_record_set": {
"id": 0,
"name": "string"
},
"inspection_forms_record_set": {
"id": 0,
"name": "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"
}
Insufficient permission to perform this operation
- 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"
}
The requested resource could not be located
- 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/contacts/:id' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'