- style
GET /contacts/:id
Only available in v0.2.x
The following endpoint is currently unavailable. It will be released in version 1.2.x with the mobile applications.
Resource URL
Returns a contact identified by contact id.
GET /contacts/:contact_idHandling the response
Below is a table of available response fields and objects that are returned within the response object of the returned object. The optional fields and objects can be requested in the _fields parameter; see included examples. Underlined values are default.
If you can't find the field you are after, you are probably thinking of an affiliation field. Please see the affiliation endpoints.
id | unsigned int | A unique id assigned to the contact |
|---|---|---|
firstname | string |
|
surname | string |
|
string | Deprecated Email belongs to the affiliation object. Please use affiliations for accessing email. | |
mobile | string | Deprecated Mobile belongs to the affiliation object. Please use affiliations for accessing mobile. |
title | string |
|
middlename | string |
|
standing | string |
|
date_created | unix timestamp |
|
date_modified | unix_timestamp |
|
comments | string |
|
status | unsigned int | The contact's status id. |
status(<args>) | object | The contact's status object with any optional fields. |
default_affiliation | unsigned int | The contact's default affiliation id. |
Fields that can be object indicate the field can be requested as a resource. For example.
GET /contacts/1.json?_fields=statuswould return the status id. Where as,
GET /contacts/1.json?_fields=status()would return the status object, including any optional fields or objects within the parenthesis.