Retrieve Contact
Retrieves the details of an existing contact.
Path Parameters
- id string required
Possible values: Value must match regular expression
^[0-9]+$
The id of the relevant record
Query Parameters
- expand[] string[]
Additional attributes that should be returned in the response. Available:
group
- 200
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- id integer
Possible values:
>= 1
- created_at date-time
The date and time at which this record was created.
- updated_at date-time
The date and time at which this record was most recently updated.
- name string
The Contact's full name.
- first_name string
The Contact's first name.
- middle_name string
The Contact's middle name.
- group_id integer
If this Contact belongs to a Group, this will be the Fleetio ID of that Group.
- group_name string
If this Contact belongs to a Group, this will be the Group's name.
- last_name string
The Contact's last name.
- images_count integer
The number of images associated with this Contact.
- documents_count integer
The number of documents associated with this Contact.
- comments_count integer
The number of
Comments
associated with this Contact. - email string
The Contact's email address.
- technician boolean
Whether this Contact is a Technician.
- vehicle_operator boolean
Whether this Contact is a Vehicle Operator.
- employee boolean
Whether this Contact is an Employee.
- birth_date date
The Contact's birth date.
- street_address string
The Contact's street address.
- street_address_line_2 string
The second line of the Contact's street address.
- city string
The Contact's city.
- region string
The Contact's region.
- postal_code string
The Contact's postal code.
- country string
The Contact's country.
- employee_number string
The Contact's employee number.
- job_title string
Possible values:
<= 255 characters
The Contact's job title.
- license_class string
The Contact's license class.
- license_number string
The Contact's license number.
- license_state string
The state which issued the Contact's license.
- license_expiration date
The Contact's driver's license expiration date.
- home_phone_number string
The Contact's home phone number.
- mobile_phone_number string
The Contact's mobile phone number.
- work_phone_number string
The Contact's work phone number.
- other_phone_number string
Any other mobile phone number belonging to this Contact.
- start_date date
The Contact's start date.
- leave_date date
The Contact's leave date.
- hourly_labor_rate float
The Contact's hourly rate.
- custom_fields object
*Full details on working with Custom Fields here.
- default_image_url string
The URL pointing to the default image for this Contact.
- account_membership_id NullableId
Possible values:
>= 1
user object
id NullableIdPossible values:
>= 1
email stringThe email address associated with this
User
.username stringThe username of this
User
.time_zone stringThe timezone set for this
User
.user_type stringPossible values: [
admin
,regular
]This
User
's type.archived_at date-timeThe date and time at which the User was archived (deactivated). If
null
, the User is not deactivated.role object
Basic information about this
User
'sRole
, if applicable.id NullableIdPossible values:
>= 1
name stringvehicles_record_set object
id NullableIdPossible values:
>= 1
name stringequipments_record_set object
id NullableIdPossible values:
>= 1
name stringcontacts_record_set object
id NullableIdPossible values:
>= 1
name stringparts_record_set object
id NullableIdPossible values:
>= 1
name stringinspection_forms_record_set object
id NullableIdPossible values:
>= 1
name string
{
"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-11-18",
"leave_date": "2024-11-18",
"hourly_labor_rate": 0,
"custom_fields": {},
"default_image_url": "string",
"account_membership_id": 0,
"user": {
"id": 0,
"email": "string",
"username": "string",
"time_zone": "string",
"user_type": "admin",
"archived_at": "2024-11-18",
"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 (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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 (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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 (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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 (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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"
}