Contacts represent individual people associated with an account in FieldIU. You can create contacts and link them to existing accounts.
Creates a new contact record in FieldIU.
Request Body
Contact’s mobile phone number
Contact’s business phone number
The ID of the account this contact belongs to
Building or location name
Example Request
curl -X POST https://integration.fieldiu.online/api/v1/contacts \
-H "Content-Type: application/json" \
-H "X-API-KEY: your_api_key" \
-H "X-ORG-ID: your_org_id" \
-d '{
"firstName": "Jane",
"lastName": "Smith",
"email": "jane.smith@acme.com",
"mobilePhone": "+1-555-000-5678",
"accountId": "abc-123",
"city": "Dubai",
"country": "UAE"
}'
const response = await fetch('https://integration.fieldiu.online/api/v1/contacts', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-KEY': 'your_api_key',
'X-ORG-ID': 'your_org_id'
},
body: JSON.stringify({
firstName: 'Jane',
lastName: 'Smith',
email: 'jane.smith@acme.com',
mobilePhone: '+1-555-000-5678',
accountId: 'abc-123',
city: 'Dubai',
country: 'UAE'
})
});
Response
200 OK — Contact created successfully.
Returns a paginated list of all contacts in your organization.
Query Parameters
Page number for pagination (1-based)
Example Request
curl -X GET "https://integration.fieldiu.online/api/v1/contacts?page=1" \
-H "X-API-KEY: your_api_key" \
-H "X-ORG-ID: your_org_id"
const response = await fetch('https://integration.fieldiu.online/api/v1/contacts?page=1', {
headers: {
'X-API-KEY': 'your_api_key',
'X-ORG-ID': 'your_org_id'
}
});
Response
200 OK — Returns a list of contact objects.
Returns a single contact record by its unique identifier.
Path Parameters
The unique identifier of the contact
Example Request
curl -X GET https://integration.fieldiu.online/api/v1/contacts/xyz-456 \
-H "X-API-KEY: your_api_key" \
-H "X-ORG-ID: your_org_id"
const response = await fetch('https://integration.fieldiu.online/api/v1/contacts/xyz-456', {
headers: {
'X-API-KEY': 'your_api_key',
'X-ORG-ID': 'your_org_id'
}
});
Response
200 OK — Returns the contact object for the given ID.