GETTING ACCESS

API Endpoint
        https://api-uk.onetouchhealth.net/connect/c2/v1/
            

The OneTouch REST API provides programmatic access to create, read, update, and delete records within the OneTouch application, with all data being delivered and updated in real time.

To use this API, you will need to first be a customer of OneTouch with a OneTouch Account. Not all OneTouch customers are active API users so you will need to contact our team via the usual channels to be set up with API credentials.

The credentials provided to you will consist of a username and password. This username and password can in turn be used to obtain an API Key

For security purposes all API keys issued are limited to a referral IP (or domain) of your choice. The keys obtained from the inital login credentials we provide you with, will not have the source of requests restricted. This is for ease of testing. We do however strongly advise that once you go into production - you request that the source of requests are restricted to either a domain or IP address of your choice.

Subsequent logins using the username and password will invalidate your existing key and provide a fresh one. This can be useful if you feel your key has been comprimised - if this is the case you can rest assured as they key is only useful from your specified server or domain.
We encourage the frequent refreshing of API Keys.

There are two types of keys which we can issue - a location restricted key and a master key.

A location restricted key is a key which will only allow requests within a specific location within OneTouch.
A master key is a key which will authorize actions across multiple locations. This prevents multiple keys being required if actions/requests across multiple locations are required. Note however that the use of master keys require the provision of additional parameters for certain calls.

The most recently obtained API Key is to be used as a bearer token in the Authorization Header of all protected requests

Logging In


#Endpoint for logging in
POST https://api-uk.onetouchhealth.net/connect/c2/v1/auth
                    
                

Using the username and password provided to you by our team you will need to make a POST request to the following url :

https://api-uk.onetouchhealth.net/connect/c2/v1/auth

Supported Methods: POST




Request Body Example:
{
    "username": "onetouch_api_user",
    "password": "aslkjdfnalskj3"
}

Response Example :
{
    "success": true,
    "token": "eyJ0eOwww21iiJ9.eyJ1c2VyC1lc3RhbX3Njd9.8gobZNZc1_CZlSW0kBnKA"
}

                

POST PARAMETERS

Field Type Description
username String The username provided to you by OneTouch
password String The password provided to you by OneTouch

Rate Limiting

Our API enforces a rate limit of 8 requests per second, with a burst capacity of up to 12 additional requests. This means clients can temporarily exceed the 8 requests per second limit during short spikes in traffic, allowing up to 12 extra requests to be processed. However, this burst capacity is not sustained - if high request rates continue, excess requests will begin to be rejected until traffic returns to within the standard rate limit. Requests that are rejected by this setting will result in a 429 too many requests response.

Errors

OneTouch uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g. a required parameter was omitted, an insert failed, etc.), and codes in the 5xx range indicate an error with our servers.

The OneTouch API uses the following error codes:

Error Code Meaning
200 - OK Everything worked as expected.
400 - Bad Request The request was unacceptable, often due to missing or incorrect parameters.
401 - Unauthorized Invalid credentials or no valid token provided.
422 - Unprocessable Entity The parameters were valid but the request failed due to business logic
404 - Not Found Not Found The requested resource doesn't exist.
405 - Method Not Allowed Not allowed - see supported methods for the request you are making in the documentation.
207 - Multi-Status Returned by batch endpoints when some items succeeded and others failed. Check the results array for per-item outcomes.
429 - Too Many Requests Rate limit exceeded. The API allows up to 8 requests per second with a short burst of up to 12 additional requests.
5XX - Server Errors Something went wrong on our end.

Get Locations


#Endpoint for getting locations 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/general/locations
                    
                

This endpoint allows for the fetching of locations within the OneTouch application. Note this endpoint requires a master key as it accesses information across multiple locations.
The API service does not support the creation of locations. The locations returned are the ones which can be passed as the location parameter for calls like carer/create.

https://api-uk.onetouchhealth.net/connect/c2/v1/general/locations

Supported Methods: GET




Response Example:
{
    "locations": [
        {
            "id": 1234,
            "name": "Dorchester"
        },
        {
            "id": 3341,
            "name": "Test Location"
        },
        {
            "id": 3342,
            "name": "Bridport"
        },
        {
            "id": 3343,
            "name": "Milltown"
        },
        {
            "id": 3344,
            "name": "Gloucester"
        },
        {
            "id": 3344,
            "name": "Yorkshire"
        }
    ]
}
                

Get Areas


#Endpoint for getting areas 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/general/get-areas
                    
                

This endpoint allows for the fetching of areas within the OneTouch application. The areas returned are the existing areas which can be used for carer creation and will be restricted based on the type of key used in the request.

https://api-uk.onetouchhealth.net/connect/c2/v1/general/get-areas

Supported Methods: GET




Response Example:
{
    "areas": [
        {
            "id": 10,
            "name": "North"
        },
        {
            "id": 11,
            "name": "North East"
        },
        {
            "id": 12,
            "name": "East"
        },
        {
            "id": 13,
            "name": "South East"
        },
        {
            "id": 14,
            "name": "South"
        },
        {
            "id": 15,
            "name": "South West"
        }
    ]
}
                

Get Branches


#Endpoint for getting branches 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/general/branches
                    
                

This endpoint allows for the fetching of branches within the OneTouch application, along with the location each branch belongs to. Only branches belonging to an active (non-deleted) location are returned. The branches returned are the ones which can be passed as the branch parameter for calls like carer/create. The branches returned will be restricted based on the type of key used in the request - a location restricted key will only return branches in its location, while a master key will return branches across all locations.

The optional name parameter can be used to check whether a specific branch exists. If no matching branch is found a 404 response is returned.

https://api-uk.onetouchhealth.net/connect/c2/v1/general/branches

https://api-uk.onetouchhealth.net/connect/c2/v1/general/branches?name=Winchester

Supported Methods: GET




Response Example:
{
    "branches": [
        {
            "id": 21,
            "name": "Bridport",
            "location": {
                "id": 3342,
                "name": "Bridport"
            }
        },
        {
            "id": 22,
            "name": "Lyme Regis",
            "location": {
                "id": 3342,
                "name": "Bridport"
            }
        },
        {
            "id": 30,
            "name": "Dorchester",
            "location": {
                "id": 1234,
                "name": "Dorchester"
            }
        }
    ]
}

No Match Response Example (404):
{
    "success": false,
    "error": "No branches found"
}
                

QUERY PARAMETERS

Field Type Description
name string (optional) The exact name of a branch to look up. Use this to check whether a branch exists before passing it as the branch parameter.

View Carer


#Endpoint for getting a carer record 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/carer/get/{external_id}
                    
                

This simple endpoint allows for the fetching of a given carer within the OneTouch application. Simply specify the external carer id to be provided with the carer record

https://api-uk.onetouchhealth.net/connect/c2/v1/carer/get/{external_id}

Supported Methods: GET




Response Example:
{
    "title": null,
    "firstname": "John",
    "lastname": "Smith",
    "external_id": "654321",
    "known_as": null,
    "sex": "M",
    "dob": "1981-07-15",
    "ni_number": "",
    "primary_email": "john.smith@example.com",
    "secondary_email": null,
    "phone_mobile": "+3530000000",
    "phone_home": null,
    "phone_work": null,
    "address": "Kinvara",
    "town": "Kinvara",
    "county": "Galway",    
    "postcode": "A00 A000",
    "transport_type" : "Walking",
    "position": 220,
    "country": "Ireland",
    "nationality": "irish",
    "created": "2014-04-29 08:35:08",
    "date_start": "2015-02-03",
    "license": "Yes",
    "bank_account_name": "John Smith",
    "bank_sort_code": "01234567",
    "bank_account_number": "01234567",
    "bank_iban": "IE00 EXMP 0000 0000 0000 00",
    "status": "Active",
    "organisation": {
        "location": {
            "id": 100,
            "name": "Care Group"
        },
        "branch": {
            "id": 240,
            "name": "Regional Operations"
        },
        "workgroup": {
            "id": 375,
            "name": "Community Support Team"
        },
        "area": {
            "id": 820,
            "name": "Service Area 12"
        }
    }
    "contracted_hrs": {
        "monday": 8.00,
        "tuesday": 8.00,
        "wednesday": 8.00,
        "thursday": 8.00,
        "friday": 8.00,
        "saturday": 0.00,
        "sunday": 0.00,
        "total_weekly": 40.00
    },
    "tags": [
        {
            "tagId": 133,
            "tag": "Manual Handling"
        },
        {
            "tagId": 627,
            "tag": "East Galway"
        },
        {
            "tagId": 1506,
            "tag": "PEG Feed"
        },
        {
            "tagId": 5209,
            "tag": "Irish-speaker"
        },
        {
            "tagId": 4161,
            "tag": "Adaptable"
        }
    ]
}
                

View All Carers

                
#Endpoint for getting all carer records 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/carers/all

            

This simple endpoint allows for the fetching of a all carers in the OneTouch application.

https://api-uk.onetouchhealth.net/connect/c2/v1/carers/all

Supported Methods: GET


Query Parameters

Parameter Type Description
page integer (optional) The page number to return. Defaults to 1.
per_page integer (optional) Number of results per page. Accepts 1-250. Defaults to 20.



Response Example:
{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "external_id": "ABC123",
            "title": "Mr",
            "firstname": "John",
            "lastname": "Doe",
            "created": "2023-10-01 12:00:00",
            "known_as": "Johnny",
            "sex": "M",
            "dob": "1990-05-15",
            "pps_number": "1234567A",
            "primary_email": "john.doe@example.com",
            "phone": "1234567890",
            "address_line_1": "123 Main Street",
            "address_line_2": "Apartment 4B",
            "town": "Sampletown",
            "county": "Sample County",
            "postCode": "A1B2C3",
            "country": "Ireland",
            "nationality": "Irish",
            "license": "Yes",
            "status": "Archived",
            "organisation": {
                "location": {
                    "id": 100,
                    "name": "Care Group"
                },
                "branch": {
                    "id": 240,
                    "name": "Regional Operations"
                },
                "workgroup": {
                    "id": 375,
                    "name": "Community Support Team"
                },
                "area": {
                    "id": 820,
                    "name": "Service Area 12"
                }
            },
            "tags": [
                {
                    "tagId": 128,
                    "tag": "Poor English"
                },
                {
                    "tagId": 133,
                    "tag": "Manual Handling"
                },
                {
                    "tagId": 627,
                    "tag": "West Galway"
                }
            ]
        },
        {
            "id": 2,
            "external_id": "DEF456",
            "title": "Ms",
            "firstname": "Jane",
            "lastname": "Smith",
            "created": "2023-10-02 15:30:00",
            "known_as": "Janey",
            "sex": "F",
            "dob": "1985-11-20",
            "pps_number": "7654321B",
            "primary_email": "jane.smith@example.com",
            "phone": "0987654321",
            "address_line_1": "456 Elm Street",
            "address_line_2": null,
            "town": "Exampletown",
            "county": "Example County",
            "postCode": "D4E5F6",
            "country": "Ireland",
            "nationality": "Irish",
            "status": "Archived",
            "organisation": {
                "location": {
                    "id": 100,
                    "name": "Care Group"
                },
                "branch": {
                    "id": 240,
                    "name": "Regional Operations"
                },
                "workgroup": {
                    "id": 375,
                    "name": "Community Support Team"
                },
                "area": {
                    "id": 820,
                    "name": "Service Area 12"
                }
            }
        },
        {
            "id": 3,
            "external_id": "GHI789",
            "title": "Dr",
            "firstname": "Alice",
            "lastname": "Johnson",
            "created": "2023-10-03 08:45:00",
            "known_as": null,
            "sex": "F",
            "dob": "1978-02-28",
            "pps_number": null,
            "primary_email": "alice.johnson@example.com",
            "phone": "+353871234567",
            "address_line_1": "789 Oak Street",
            "address_line_2": null,
            "town": "Samplerville",
            "county": "Test County",
            "postCode": "G7H8I9",
            "country": "Ireland",
            "nationality": "Irish",
            "status": "Archived",
            "organisation": {
                "location": {
                    "id": 100,
                    "name": "Care Group"
                },
                "branch": {
                    "id": 240,
                    "name": "Regional Operations"
                },
                "workgroup": {
                    "id": 375,
                    "name": "Community Support Team"
                },
                "area": {
                    "id": 820,
                    "name": "Service Area 12"
                }
            }
        }
    ],
    "first_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/carers/all?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/carers/all?page=1",
    "next_page_url": null,
    "path": "https://api-uk.onetouchhealth.net/connect/c2/v1/carers/all",
    "per_page": 3,
    "prev_page_url": null,
    "to": 3,
    "total": 3
}
                

Create Carer


#Endpoint for creating carers 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/carer/create
                    
                

This endpoint allows for the creation of carers within the OneTouch application. See sample request and sample responses here. All carers imported into OneTouch using this API must contain the external_id parameter. This is a parameter which will identify the carer record on your external system.

Providing this parameter also provides idempotency in that you will not be permitted to create duplicate records within our application. We suggest that you use your either your own system unique identifer for the carer or any other unique field you choose.

This field will be visible in OneTouch as the Carer Id.

Carers created via this endpoint will enter OneTouch in a pending state unless an initial status is supplied (archived statuses cannot be used on create). The destination of records entered via this API will vary depending on whether the key is location restricted or a master key.

Should a location restricted key be used, the carer will get imported into the API Imported area by default. This is a system generated area under the API Imported Workgroup under the API Imported Branch. Note the area parameter which is available to overide this by specifying the destination area for the carer. In order to view these carers under pending carers you will need to assign this branch to the logged in user in OneTouch, or move the carers into an area the logged in user has access to.

On the other hand if a master key is used to create the record it is compulsary that that payload have details of the location and area that they carer record should be created in.

The position parameter can be passed as eiter an position id (int) or as the name (string) of an existing position in our system. Positions passed by name need to case sensitively match the position in our system and if it does not the request will fail. You can use the carer/get-positions endpoint to see the positions available for use. Any HR Templates associated with the position parameter in the import request will be automatically created for the new carer. If there is no HR Template for the position passed - this will not created.


https://api-uk.onetouchhealth.net/connect/c2/v1/carer/create

Supported Methods: POST



Request Body Example:
{
    "external_id" : "64992",
    "title" : "Ms",
    "firstname" : "Josephine",
    "lastname" : "Bloggs",
    "known_as" : "Josephine",
    "sex" : "Female",
    "dob" : "1980-12-12",
    "ni_number" : "********",
    "primary_email" : "testing@example1.com",
    "secondary_email" : "testing@example2.com",
    "phone_mobile" : "087 00000",
    "phone_home" : "09064 00000",
    "phone_work" : "09064 21000",
    "address" : "000 Glenview",
    "town" : "Athlone",
    "county" : "Westmeath",    
    "postcode" : "N372546",
    "country" : "Ireland",
    "nationality" : "Irish",
    "date_start" : "2022-03-12",
    "transport_type" : "Walking",
    "position" : "Carer",
    "area" : "Leinster",
    "recruitment_source": "LinkedIn",
    "comment": "This is a sample comment",
    "bank_account_name": "Josephine Bloggs",
    "bank_sort_code": "01234567",
    "bank_account_number": "01234567",
    "bank_iban": "IE00 EXMP 0000 0000 0000 00",    

    "profile_photo" : {
        "method" : "base64",
        "photo" : "iVBORw0KGgoAAAANSUhEUgAAAV4AAAFeCAIAAABCSeBNAAAABGdBTUEAAYII="
    }
}

Response Example:
{
    "success": true,
    "id": "191358",
    "external_id": "64992",
    "profile_photo_added": true,
    "hr_template_added": true
}

                

QUERY PARAMETERS

Field Type Description
external_id alphanumeric | null (required) This is your unique identifier for the carer records and ensures no duplicate imports
increment boolean (optional) If passing this flag the carer id will auto increment - Note: If passing this flag the above external_id needs to be passed as null
strict boolean (optional) This is an optional flag that can be used alongside the increment flag - if true the new id is forced to be unique across the entire company not just the location tied to the API key provided
unique_email boolean (optional) If true the carer will only be created if no active, pending or archived carer within the company already has the same primary_email (not case sensitive). This check also applies when using the increment flag. Note: If passing this flag primary_email is required. If a match is found the request fails and the id and external_id of the existing carer are returned.
title string (optional) The carer's title (Ms|Mrs|Ms)
firstname string (required) The carer's first name
lastname string (required) The carer's last name
known_as string (optional) Any other name the carer might go by
sex string (optional) Male/Female
dob string (optional) The carer's date of birth in the format yyyy-mm-dd
pps string (optional)The carer's PPS number Note: As this pps parameter and the ni_number parameter below map to the same field in OneTouch, only one of these should be passed
ni_number string (optional)The carer's National Insurance number Note: As the pps parameter above and this ni_number parameter map to the same field in OneTouch, only one of these should be passed
primary_email string (optional | advised) The carer's primary email address
secondary_email string (optional) The carer's secondary email address
phone_mobile string (optional) The carer's mobile number
phone_home string (optional) This does not need to be a landline - any secondary contact number will be accepted
phone_work string (optional) The carer's work number - any number will be accepted
address string (optional) The carer's address - note that town, county, country and postcode fields are also available etc.
town string (optional) The carer's town
county string (optional) The carer's county
postcode string (optional) The carer's post code
country string (optional) The carer's country of origin
nationality string (optional) The carer's nationality
date_start string (optional) The carer's start date in the format yyyy-mm-dd
transport_type string|integer (optional) The carer's transport type in int or string format
recruitment_source string|integer (optional) The recruitment source of the carer
position string|integer (optional) The carer's position in int or string format
location string|integer (optional|required) The desired location in int or string format.
If a master key has been issued this parameter is required! See possible values in the get locations endpoint.
branch string|integer (optional) The desired branch in int or string format.
If a master key has been issued this parameter is required if location is not set! See possible values in the get branches endpoint.
area string|integer (optional|required) The desired location area in int or string format.
If a master key has been issued this parameter is required! See possible values in the get areas endpoint.
status string|integer (optional) The carer's initial status in int or string format. The possible values to use here can be extracted from the get statuses endpoint. If not passed the carer is created as pending. Archived statuses cannot be used when creating a carer.
comment string (optional) This is an optional comment which will appear as an admin comment on the carer's profile
bank_account_name string (optional) The carer's account name in string format
bank_sort_code string (optional) The carer's sort code in string format
bank_account_number string (optional) The carer's account number in string format
bank_iban string (optional) The carer's IBAN in string format
profile_photo object (optional) JSON object containing a photo parameter and method parameter. The photo parameter should be a base64 encoded string and the method should be passed as base64

Update Carer


#Endpoint for updating a carer record 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/carer/update
                    
                

This endpoint allows for the updating of carers within the OneTouch application. See sample request and sample responses here.

The functionality here is identical to the create endpoint above in terms of expected parameters

https://api-uk.onetouchhealth.net/connect/c2/v1/carer/update

Supported Methods: POST



Request Body Example:
{
    "external_id" : "64992",
    "title" : "Ms",
    "firstname" : "Josephine",
    "lastname" : "Bloggs",
    "known_as" : "Josephine",
    "sex" : "Female",
    "dob" : "1980-12-12",
    "ni_number" : "********",
    "primary_email" : "testing@example1.com",
    "secondary_email" : "testing@example2.com",
    "phone_mobile" : "087 00000",
    "phone_home" : "09064 00000",
    "phone_work" : "09064 21000",
    "address" : "000 Glenview",
    "town" : "Athlone",
    "county" : "Westmeath",    
    "postcode" : "N372546",
    "country" : "Ireland",
    "nationality" : "Irish",
    "date_start" : "2022-03-12",
    "transport_type" : "Walking",
    "position" : "Carer",
    "area" : "Leinster",
    "bank_account_name": "Josephine Bloggs",
    "bank_sort_code": "01234567",
    "bank_account_number": "01234567",
    "bank_iban": "IE00 EXMP 0000 0000 0000 00",

    "profile_photo" : {
        "method" : "base64",
        "photo" : "iVBORw0KGgoAAAANSUhEUgAAAV4AAAFeCAIAAABCSeBNAAAABGdBTUEAAYII="
    }
}

Response Example:
{
    "success": true,
    "message": "Profile successfully updated"
}
                

QUERY PARAMETERS

Field Type Description
external_id alphanumeric (required) This is your unique identifier for the carer records and ensures no duplicate imports
title string (optional) The carer's title (Ms|Mrs|Ms)
firstname string (required) The carer's first name
lastname string (required) The carer's last name
known_as string (optional) Any other name the carer might go by
sex string (optional) Male/Female
dob string (optional) The carer's date of birth in the format yyyy-mm-dd
pps string (optional)The carer's PPS number Note: As this pps parameter and the ni_number parameter below map to the same field in OneTouch, only one of these should be passed
ni_number string (optional)The carer's National Insurance number Note: As the pps parameter above and this ni_number parameter map to the same field in OneTouch, only one of these should be passed
primary_email string (optional | advised) The carer's primary email address
secondary_email string (optional) The carer's secondary email address
phone_mobile string (optional) The carer's mobile number
phone_home string (optional) This does not need to be a landline - any secondary contact number will be accepted
phone_work string (optional) The carer's work number - any number will be accepted
address string (optional) The carer's address - note that town, county, country and postcode fields are also available etc.
town string (optional) The carer's town
county string (optional) The carer's county
postcode string (optional) The carer's post code
country string (optional) The carer's country of origin
nationality string (optional) The carer's nationality
date_start string (optional) The carer's start date in the format yyyy-mm-dd
transport_type string|integer (optional) The carer's transport type in int or string format
position string|integer (optional) The carer's position in int or string format
status string|integer (optional) The carer's status in int or string format. The possible values to use here can be extracted from the get statuses endpoint
area string|integer (optional) The carer's area in int or string format
bank_account_name string (optional) The carer's account number in string format
bank_sort_code string (optional) The carer's sort code in string format
bank_account_number string (optional) The carer's account number in string format
bank_iban string (optional) The carer's IBAN in string format
profile_photo object (optional) JSON object containing a photo parameter and method parameter. The photo parameter should be a base64 encoded string and the method should be passed as base64

Update Carer Status


#Endpoint for updating a carer record 
PUT https://api-uk.onetouchhealth.net/connect/c2/v1/carer/status
                    
                

This endpoint allows for the updating a carer's status within the OneTouch application. See sample request and sample responses here.

As is referenced under the Get Statuses documentation all statuses fall under three states or types (Active | Pending | Archived). When a carers status is changed by the API they will automatically fall into the corresponding state.

Updating Leavers: This endpoint can be used to update leavers. To do so please pass an appropriate archived status from the Get Statuses call and the user will immediately be archived.

https://api-uk.onetouchhealth.net/connect/c2/v1/carer/status

Supported Methods: PUT



Request Body Example:
{
    "id" : "166",
    "status": "Active"
}

Response Examples:
{
    "success": true,
    "message": "Status sucessfully updated"
}

{
    "success": "true",
    "message": "Check record is not already the desired status"
}
                

QUERY PARAMETERS

Field Type Description
id integer (required without external_id) This is the OneTouch unique identifier for the carer records. If this passed you will not be passing the external_id below.
external_id alphanumeric (required without id) This is your unique identifier for the carer records and ensures no duplicate imports. If this passed you will not be passing the id above
status string|integer (required) The carer's status in int or string format. You options can be gotten from the Get Statuses endpoint.

Carer File Upload


                    #Endpoint for uploading files to the carer profile 
                    POST https://api-uk.onetouchhealth.net/connect/c2/v1/carer/file-upload/
                    
                

This endpoint allows for the uploading of files to an existing carer profile in the OneTouch application. See sample request and sample responses here. The carer_external_id parameter is required to identify the carer record to which the file should be uploaded.

There are a number of file classifications in the OneTouch system and this endpoint will be expanded over time or by request - to include all. Currently supported is the addition of personal files - these are the files that are visible from in the carers' profile under the documents tab.
To add personal files just specify the classification personal and the files will be immediately visible in the carer documents tab.

We intent to support multiple file delivery methods down the line. Currently the only delivery method implemented is base64. The means that all files to be transferred should be base64 encoded and the method defined as base64

If a master key is being used - there are two (optional) fields - location or branch which can help isolate the carer for which the file will be uploaded.



https://api-uk.onetouchhealth.net/connect/c2/v1/carer/file-upload/

Supported Methods: POST



Request Body Example:
{
    "carer_external_id" : "7168121",
    "filename" : "Upload File.txt",
    "display_name" : "Uploaded Text File",
    "folder" : "Miscellaneous",
    "classification" : "personal",
    "file" : "U2FtcGxlIFVwbG9hZCBGaWxl",
    "method": "base64"
}

Response Example:
{
    "success": true,
    "message": "File successfully uploaded",
    "file_id": "256891"
}
                

QUERY PARAMETERS

Field Type Description
carer_external_id alphanumeric (required) This is your unique identifier for the carer record to which files should be uploaded
filename string (required) The filename of the file to be uploaded including the extension (Upload File.txt)
display_name string (required) The display name for the file to be uploaded
folder string|integer (optional) The folder into which to upload the file. This can be in int (id) or string (name) format
classification string (required) The classification of the file or area of OneTouch the file should be uploaded. Currently supported (personal)
file string (required) The base64 encoded file contents
method string (required) The file delivery method. Currently supported (base64)
location string|integer (optional) The desired location in int or string format.
Only to be used with a master key! See possible values in the get locations endpoint.
branch string|integer (optional) The desired branch in int or string format.
Only to be used with a master key! See possible values in the get branches endpoint.

Carer File Delete


                    #Endpoint for deleting files to the carer profile 
                    POST https://api-uk.onetouchhealth.net/connect/c2/v1/carer/file-delete/
                    
                

This endpoint allows for the delitiong of files to an existing carer profile in the OneTouch application. See sample request and sample responses here. The carer_external_id and file_id parameters are required to identify the carer record to which the file should be uploaded.

If a master key is being used - there are two (optional) fields - location or branch which can help isolate the carer for which the file will be uploaded.



https://api-uk.onetouchhealth.net/connect/c2/v1/carer/file-delete/

Supported Methods: POST



Request Body Example:
{
    "carer_external_id" : "7168121",
    "file_id" : "256891"
}

Response Example:
{
    "success": true,
    "message": "File successfully deleted",
    "file_id": "256891"
}
                

QUERY PARAMETERS

Field Type Description
carer_external_id alphanumeric (required) This is your unique identifier for the carer record to which files should be deleted
file_id alphanumeric (required) The file identifier
location string|integer (optional) The desired location in int or string format.
Only to be used with a master key! See possible values in the get locations endpoint.
branch string|integer (optional) The desired branch in int or string format.
Only to be used with a master key! See possible values in the get branches endpoint.

Get Folders


#Endpoint for getting eligible folders into which carer files can be uploaded 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/carer/get-file-folders?carer_external_id=20
                    
                

This endpoint takes a carer_external_id and returns the eligible folders into which files can be uploaded to for the given carer

https://api-uk.onetouchhealth.net/connect/c2/v1/carer/get-file-folders?carer_external_id=20

Supported Methods: GET





            

Response Example:
{
    "folders": [
        {
            "id": 240,
            "name": "Medication"
        },
        {
            "id": 241,
            "name": "Personal"
        },
        {
            "id": 242,
            "name": "Miscellaneous"
        }
    ]
}
                

QUERY PARAMETERS

Field Type Description
carer_external_id alphanumeric (required) This is your unique identifier for the carer record the folders are to be fetched for

Get Transport Types


#Endpoint for getting carer transport types 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/carer/get-transport-types
                    
                

This endpoint allows for the fetching of carer transport types within the OneTouch application. The transport types returned show the options that can be used in the optional transport_type field for carer creation.

https://api-uk.onetouchhealth.net/connect/c2/v1/carer/get-transport-types

Supported Methods: GET




Response Example:
{
    "transport_types": [
        {
            "id": 1,
            "name": "Car"
        },
        {
            "id": 2,
            "name": "Walking"
        },
        {
            "id": 3,
            "name": "Cycling"
        },
        {
            "id": 4,
            "name": "Public Transport"
        },
        {
            "id": 6,
            "name": "Driver"
        },
        {
            "id": 33,
            "name": "Bus"
        },
        {
            "id": 36,
            "name": "Motorbike"
        }
    ]
}
                

Get Positions


#Endpoint for getting carer positions 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/carer/get-positions
                    
                

This endpoint allows for the fetching of carer positions within the OneTouch application. The positions returned are the existing areas whos ids can be used for carer creation.

https://api-uk.onetouchhealth.net/connect/c2/v1/carer/get-positions

Supported Methods: GET




Response Example:
{
    "positions": [
        {
            "id": 89,
            "name": "Care Co-Ordinator"
        },
        {
            "id": 98,
            "name": "Care Scheduler"
        },
        {
            "id": 101,
            "name": "Care Support Worker"
        },
        {
            "id": 392,
            "name": "Senior Level 3"
        },
        {
            "id": 416,
            "name": "Supervisor"
        },
        {
            "id": 484,
            "name": "Admin Office"
        }
    ]
}
                

Get Statuses


#Endpoint for getting carer statuses 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/carer/statuses
                    
                

This simple endpoint allows for the fetching of carer statuses within the OneTouch application. The statuses returned are those configured in the OneTouch application and are therefore acceptable to be used in the Update Status endpoint.

Please note the corresponding type of all statuses Active | Pending | Archived. When a carers status is changed by the API they will automatically fall into the corresponding state.

Updating Leavers: Arhived statuses can be used to update leavers in the OneTouch appication. To do so please select the appropriate archived status from this call and use in the Update Status call.

https://api-uk.onetouchhealth.net/connect/c2/v1/carer/statuses

Supported Methods: GET




Response Example:
{
    "statuses": [
        {
            "id": 1,
            "name": "Active",
            "type": "Active"
        },
        {
            "id": 2,
            "name": "Suspended",
            "type": "Pending"
        },
        {
            "id": 3,
            "name": "End of Service",
            "type": "Archived"
        },
        {
            "id": 4,
            "name": "Deceased",
            "type": "Archived"
        },
        {
            "id": 6,
            "name": "Non Active",
            "type": "Archived"
        },
        {
            "id": 14,
            "name": "Parental Leave",
            "type": "Pending"
        },
        {
            "id": 15,
            "name": "Compassionate Leave",
            "type": "Pending"
        }
    ]
}
                

Get Recruitment Sources


#Endpoint for getting carer recruitment sources 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/carer/recruitment-sources
                    
                

This endpoint allows for the fetching of carer recruitment sources types within the OneTouch application. The sources returned show the options that can be used in the optional recruitment_source field for carer creation.

https://api-uk.onetouchhealth.net/connect/c2/v1/carer/recruitment-sources

Supported Methods: GET




Response Example:
{
    "sources": [
        {
            "id": 80,
            "name": "Jobs.ie"
        },
        {
            "id": 99,
            "name": "Referral"
        },
        {
            "id": 120,
            "name": "Linkedin"
        }
    ]
}
                

View Client

                
                    #Endpoint for getting a client record 
                    GET https://api-uk.onetouchhealth.net/connect/c2/v1/client/get/{external_id}
                
            

This simple endpoint allows for the fetching of a given client within the OneTouch application. Simply specify the external client id to be provided with the client record

https://api-uk.onetouchhealth.net/connect/c2/v1/client/get/{external_id}

Supported Methods: GET




Response Example:
{
    "title": null,
    "firstname": "John",
    "lastname": "Smith",
    "external_id": "654321",
    "known_as": null,
    "sex": "M",
    "dob": "1981-07-15",
    "ni_number": "",
    "primary_email": "john.smith@example.com",
    "secondary_email": null,
    "phone_mobile": "+3530000000",
    "phone_home": null,
    "address": "Kinvara",
    "town": "Kinvara",
    "county": "Galway",
    "postcode": "A00 A000",
    "transport_type" : "Walking",
    "position": 220,
    "country": "Ireland",
    "nationality": "irish",
    "created": "2014-04-29 08:35:08",
    "date_start": "2015-02-03",
    "status": "Active",
    "tags": [
        {
            "tagId": 133,
            "tag": "Manual Handling"
        },
        {
            "tagId": 627,
            "tag": "East Galway"
        },
        {
            "tagId": 1506,
            "tag": "PEG Feed"
        },
        {
            "tagId": 5209,
            "tag": "Irish-speaker"
        },
        {
            "tagId": 4161,
            "tag": "Adaptable"
        }
    ]
}
                

View All Clients

                
                    #Endpoint for getting all client records 
                    GET https://api-uk.onetouchhealth.net/connect/c2/v1/clients/all
                
            

This simple endpoint allows for the fetching of a all clients in the OneTouch application.

https://api-uk.onetouchhealth.net/connect/c2/v1/clients/all

Supported Methods: GET




Response Example:
{
    "current_page": 1,
    "data": [
        {
            "id": 379707,
            "external_id": "00000001456MH",
            "title": "Mr",
            "firstname": "John",
            "lastname": "Doe",
            "created": "2024-01-02 10:26:42",
            "known_as": "Johnny",
            "sex": "M",
            "dob": "1980-05-15",
            "ni_number": "AB123456C",
            "primary_email": "john.doe@example.com",
            "phone_home": "+353000000001",
            "phone_mobile": "+353000000002",
            "address": "123 Example Street",
            "town": "Galway",
            "county": "Galway",
            "postcode": "A00 A000",
            "country": "Ireland",
            "nationality": "Irish",
            "status": "Active"
        },
        {
            "id": 382765,
            "external_id": "991000000000339",
            "title": "Mr",
            "firstname": "Bob",
            "lastname": "Sparrow",
            "created": "2024-01-16 11:43:51",
            "known_as": "Bobby",
            "sex": "M",
            "dob": "1975-09-10",
            "ni_number": "CD789012E",
            "primary_email": "bob.sparrow@example.com",
            "phone_home": "+353851234567",
            "phone_mobile": "+353851234568",
            "address": "456 Sparrow Lane",
            "town": "Bally",
            "county": "Mayo",
            "postcode": "F91 K123",
            "country": "Ireland",
            "nationality": "Irish",
            "status": "Active",
            "tags": [
                {
                    "tagId": 54,
                    "tag": "Dementia"
                }
            ]
        },
        {
            "id": 394428,
            "external_id": "123456789",
            "title": "Mrs",
            "firstname": "Maura",
            "lastname": "Murphy",
            "created": "2024-03-05 11:21:22",
            "known_as": "Mo",
            "sex": "F",
            "dob": "1985-12-22",
            "ni_number": "EF345678G",
            "primary_email": "maura.murphy@example.com",
            "phone_home": "+353872345678",
            "phone_mobile": "+353872345679",
            "address": "789 Murphy Road",
            "town": "Athenry",
            "county": "Galway",
            "postcode": "H65 Y234",
            "country": "Ireland",
            "nationality": "Irish",
            "status": "Active"
        }
    ],
    "first_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/clients/all?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/clients/all?page=1",
    "next_page_url": null,
    "path": "https://api-uk.onetouchhealth.net/connect/c2/v1/clients/all",
    "per_page": 3,
    "prev_page_url": null,
    "to": 3,
    "total": 3
}
                

Create Client


#Endpoint for creating client 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/client/create
                    
                

This endpoint allows for the creation of client within the OneTouch application. See sample request and sample responses here. All client imported into OneTouch using this API must contain the external_id parameter. This is a parameter which will identify the client record on your external system.

Providing this parameter also provides idempotency in that you will not be permitted to create duplicate records within our application. We suggest that you use your either your own system unique identifer for the client or any other unique field you choose.

This field will be visible in OneTouch as the Client Id.

All clients created via this endpoint will enter OneTouch in a pending state and will get imported into the API Imported area by default. This is a system generated area under the API Imported Workgroup under the API Imported Branch. Note the area parameter which is available to overide this by specifying the destination area for the client.

In order to view these clients under pending clients you will need to assign this branch to the logged in user in OneTouch, or move the clients into an area the logged in user has access to.

If you would like to have the client enter under a different status like Active for example - you can use the status parameter to override the default



https://api-uk.onetouchhealth.net/connect/c2/v1/client/create

Supported Methods: POST



Request Body Example:
{
    "external_id" : "64992",
    "title" : "Ms",
    "firstname" : "Josephine",
    "lastname" : "Bloggs",
    "known_as" : "Josephine",
    "sex" : "Female",
    "dob" : "1980-12-12",
    "ni_number" : "********",
    "primary_email" : "testing@example1.com", 
    "phone_mobile" : "087 00000",
    "phone_home" : "09064 00000",
    "address" : "000 Glenview",
    "town" : "Athlone",
    "county" : "Westmeath",
    "postcode" : "N372546",
    "country" : "Ireland",
    "nationality" : "Irish", 
    "area" : "Stroke Ward" 
}

Response Example:
{
    "success": true,
    "id": "191358",
    "external_id": "64992",
}

                

QUERY PARAMETERS

Field Type Description
external_id alphanumeric | null (required) This is your unique identifier for the client records and ensures no duplicate imports
increment boolean (optional) If passing this flag the carer id will auto increment - Note: If passing this flag the above external_id needs to be passed as null
strict boolean (optional) This is an optional flag that can be used alongside the increment flag - if true the new id is forced to be unique across the entire company not just the location tied to the API key provided
title string (optional) The client's title (Ms|Mrs|Ms)
firstname string (required) The client's first name
lastname string (required) The client's last name
known_as string (optional) Any other name the client might go by
sex string (optional) Male/Female
dob string (optional) The client's date of birth in the format yyyy-mm-dd
ni_number string (optional)The client's National Insurance number Note: As the pps parameter above and this ni_number parameter map to the same field in OneTouch, only one of these should be passed
primary_email string (optional | advised) The client's primary email address
phone_mobile string (optional) The client's mobile number
phone_home string (optional) This does not need to be a landline - any secondary contact number will be accepted
status string|integer (optional) The client's status in int or string format. The possible values to use here can be extracted from the get statuses endpoint
address string (optional) The client's address - note that town, county, country and postcode fields are also available etc.
town string (optional) The client's town
county string (optional) The client's county
postcode string (optional) The client's post code
country string (optional) The client's country of origin
nationality string (optional) The client's nationality
area string|integer (optional) The carer's area in int or string format

Update Client


#Endpoint for updating a client 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/client/update
                    
                

This endpoint allows for the updating of client within the OneTouch application. See sample request and sample responses here.

https://api-uk.onetouchhealth.net/connect/c2/v1/client/update

Supported Methods: POST



Request Body Example:
{
    "external_id" : "64992",
    "title" : "Ms",
    "firstname" : "Josephine",
    "lastname" : "Bloggs",
    "known_as" : "Josephine",
    "sex" : "Female",
    "dob" : "1980-12-12",
    "ni_number" : "********",
    "primary_email" : "testing@example1.com",
    "phone_mobile" : "087 00000",
    "phone_home" : "09064 00000",
    "address" : "000 Glenview",
    "town" : "Athlone",
    "county" : "Westmeath",
    "postcode" : "N372546",
    "country" : "Ireland",
    "nationality" : "Irish",
    "area" : "Stroke Ward"
}

Response Example:
{
    "success": true,
    "id": "191358",
    "external_id": "64992",
}

                

QUERY PARAMETERS

Field Type Description
external_id alphanumeric | null (required) This is your unique identifier for the client records and ensures no duplicate imports
title string (optional) The client's title (Ms|Mrs|Ms)
firstname string (required) The client's first name
lastname string (required) The client's last name
known_as string (optional) Any other name the client might go by
sex string (optional) Male/Female
dob string (optional) The client's date of birth in the format yyyy-mm-dd
ni_number string (optional)The client's National Insurance number Note: As the pps parameter above and this ni_number parameter map to the same field in OneTouch, only one of these should be passed
primary_email string (optional | advised) The client's primary email address
phone_mobile string (optional) The client's mobile number
phone_home string (optional) This does not need to be a landline - any secondary contact number will be accepted
status string|integer (optional) The client's status in int or string format. The possible values to use here can be extracted from the get statuses endpoint
address string (optional) The client's address - note that town, county, country and postcode fields are also available etc.
town string (optional) The client's town
county string (optional) The client's county
postcode string (optional) The client's post code
country string (optional) The client's country of origin
nationality string (optional) The client's nationality
area string|integer (optional) The carer's area in int or string format

Get Statuses


#Endpoint for getting client statuses 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/client/statuses
                    
                

This simple endpoint allows for the fetching of client statuses within the OneTouch application. The statuses returned are those configured in the OneTouch application and are therefore acceptable to be used in the Update Status endpoint.

Please note the corresponding type of all statuses Active | Pending | Archived. When a clients status is changed by the API they will automatically fall into the corresponding state.

https://api-uk.onetouchhealth.net/connect/c2/v1/client/statuses

Supported Methods: GET




Response Example:
{
    "statuses": [
        {
            "id": 1,
            "name": "Active",
            "type": "Active"
        },
        {
            "id": 2,
            "name": "Suspended",
            "type": "Pending"
        },
        {
            "id": 3,
            "name": "End of Service",
            "type": "Archived"
        },
        {
            "id": 4,
            "name": "Deceased",
            "type": "Archived"
        }
    ]
}
                

Get Alocated hours


#Endpoint for getting client alocated hours 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/client/alocatedhrs/{clientId}
                    
                

This simple endpoint allows for the fetching client alocated hours based on the client id or the client external id https://api-uk.onetouchhealth.net/connect/c2/v1/client/alocatedhrs/{clientId}

Supported Methods: GET




Response Example:
[
	{
		"client_name": "Anne Client",
		"client_id": 12503,
		"client_external_id": "7841341",
		"jobtype_name": "Home Care",
		"contract_hours": null,
		"priority": "Normal",
		"week": 1,
		"start_date": "07-05-2025",
		"end_date": null,
		"start_time": "17:00",
		"end_time": "18:00",
		"details": null,
		"mon": 60,
		"tue": 60,
		"wed": 0,
		"thu": 60,
		"fri": 60,
		"sat": 60,
		"sun": 60,
		"total_minutes": 360,
		"total_hours_decimal": 6
	}
]          

Get Resident Details


#Endpoint for getting resident details 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/details
                    
                

This endpoint retrieves comprehensive details for a specific resident using their external ID. The response includes personal information, facility location details (wing, room, bed), and government details such as Medicare and pension information.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/details

Supported Methods: GET




Response Example:
{
    "external_id": "214655",
    "firstname": "Bram",
    "lastname": "Stoker",
    "dob": "1847-11-08",
    "facility_name": "Example Care Home",
    "wing": "West Wing",
    "room": "Room 101",
    "bed": "Bed A",
    "gender": "M",
    "medicare_number": "1234567890",
    "pension_number": "PEN123456",
    "private_health_insurance": "Private Health Co."
}
                

URL PARAMETERS

Field Type Description
external_id String The resident's external identifier (client ID)

Get Resident Diagnoses


#Endpoint for getting resident diagnoses 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/diagnoses
                    
                

This endpoint retrieves a list of diagnoses for a specific resident using their external ID. The response includes diagnosis details such as the diagnosis type, date of diagnosis, and any additional information recorded.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/diagnoses

Supported Methods: GET




Response Example:
{
    "success": true,
    "data": [
        {
            "diagnosis_id": 1523,
            "created_at": "2025-06-15 10:30:00",
            "diagnosis_date": "2025-06-10",
            "diagnosis_type": "Diabetes mellitus type 2",
            "diagnosis_further_details": "Patient diagnosed with type 2 diabetes, requires regular monitoring and medication."
        },
        {
            "diagnosis_id": 1498,
            "created_at": "2024-12-20 14:15:00",
            "diagnosis_date": "2024-12-18",
            "diagnosis_type": "Essential hypertension",
            "diagnosis_further_details": "High blood pressure detected during routine check-up. Medication prescribed."
        },
        {
            "diagnosis_id": 1445,
            "created_at": "2024-08-05 09:00:00",
            "diagnosis_date": "2024-08-03",
            "diagnosis_type": "Osteoarthritis",
            "diagnosis_further_details": "Arthritis in knee joints, physiotherapy recommended."
        }
    ]
}
                

URL PARAMETERS

Field Type Description
external_id String The resident's external identifier (client ID)

RESPONSE FIELDS

Field Type Description
diagnosis_id Integer Unique identifier for the diagnosis record
created_at Datetime Timestamp when the diagnosis was recorded in the system
diagnosis_date Date Date when the diagnosis was made (format: YYYY-MM-DD)
diagnosis_type String The clinical diagnosis type/name (e.g., "Diabetes mellitus type 2")
diagnosis_further_details String Additional details or notes about the diagnosis

Create Resident Diagnosis


#Endpoint for creating a new diagnosis for a resident 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/diagnosis/create
                    
                

This endpoint creates a new diagnosis record for a specific resident using their external ID. The diagnosis details including type, date, and additional information must be provided in the request body.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/diagnosis/create

Supported Methods: POST




Request Body Example:
{
    "diagnosis_type": "Diabetes mellitus type 2",
    "diagnosis_date": "2026-01-26",
    "diagnosis_further_details": "Patient diagnosed with type 2 diabetes, requires regular monitoring and medication."
}

Response Example:
{
    "success": true,
    "message": "Diagnosis created successfully",
    "data": {
        "diagnosis_id": 1524
    }
}
                

URL PARAMETERS

Field Type Description
external_id String The resident's external identifier (client ID)

REQUEST BODY PARAMETERS

Field Type Required Description
diagnosis_type String Yes The clinical diagnosis type/name (e.g., "Diabetes mellitus type 2", "Essential hypertension")
diagnosis_date Date Yes Date when the diagnosis was made (format: YYYY-MM-DD)
diagnosis_further_details String No Additional details or notes about the diagnosis

RESPONSE FIELDS

Field Type Description
success Boolean Indicates whether the diagnosis was created successfully
message String Success or error message
data.diagnosis_id Integer The unique identifier of the newly created diagnosis

Update Resident Diagnosis


#Endpoint for updating an existing diagnosis for a resident 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/diagnosis/update
                    
                

This endpoint updates an existing diagnosis record for a specific resident using their external ID. The diagnosis ID must be provided along with the updated diagnosis details.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/diagnosis/update

Supported Methods: POST




Request Body Example:
{
    "diagnosis_id": 1524,
    "diagnosis_type": "Diabetes mellitus type 2",
    "diagnosis_date": "2026-01-26",
    "diagnosis_further_details": "Patient diagnosed with type 2 diabetes. Medication adjusted, requires regular monitoring."
}

Response Example:
{
    "success": true,
    "message": "Diagnosis updated successfully"
}
                

URL PARAMETERS

Field Type Description
external_id String The resident's external identifier (client ID)

REQUEST BODY PARAMETERS

Field Type Required Description
diagnosis_id Integer Yes The unique identifier of the diagnosis to update
diagnosis_type String Yes The clinical diagnosis type/name (e.g., "Diabetes mellitus type 2", "Essential hypertension")
diagnosis_date Date Yes Date when the diagnosis was made (format: YYYY-MM-DD)
diagnosis_further_details String No Additional details or notes about the diagnosis

RESPONSE FIELDS

Field Type Description
success Boolean Indicates whether the diagnosis was updated successfully
message String Success or error message

Get Resident Allergies


#Endpoint for getting resident allergies and intolerances 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/allergies
                    
                

This endpoint retrieves a list of allergies and intolerances for a specific resident using their external ID. The response includes allergy details such as the type, severity, status, and historical records of reactions.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/allergies

Supported Methods: GET




Response Example:
{
    "success": true,
    "data": [
        {
            "id": 123,
            "reason": "Allergy",
            "type_name": "Drug Allergy",
            "status": "Confirmed Diagnosis",
            "name": "Penicillin",
            "description": "Severe allergic reaction with hives and swelling",
            "severity": "Severe",
            "treatment": "Avoid penicillin-based antibiotics, use alternatives",
            "histories": [
                {
                    "id": 789,
                    "date": "2023-05-15",
                    "cause": "Administration of penicillin",
                    "level": "Severe",
                    "symptoms": "Hives, facial swelling, difficulty breathing",
                    "comments": "Required emergency treatment",
                    "files": [
                        {
                            "name": "allergy_report.pdf"
                        }
                    ]
                }
            ]
        },
        {
            "id": 124,
            "client_id": 456,
            "reason": "Intolerance",
            "type_name": "Food Intolerance",
            "status": "Confirmed Diagnosis",
            "name": "Lactose",
            "description": "Digestive discomfort after dairy consumption",
            "severity": "Mild",
            "treatment": "Lactose-free diet recommended"
        }
    ]
}
                

URL PARAMETERS

Field Type Description
external_id String The resident's external identifier (client ID)

RESPONSE FIELDS

Field Type Description
id Integer Unique identifier for the allergy record
reason String Type of reaction: "Allergy" or "Intolerance"
type_name String Category of allergy (e.g., "Drug Allergy", "Food Allergy", "Environmental")
status String Current status: "Confirmed Diagnosis", "Suspected, Not Diagnosed", "Referred to Specialist", "Under Investigation with Specialist", "No Known {type} {reason}", "Information Not Available"
name String Name of the allergen or substance (e.g., "Penicillin", "Peanuts")
description String Detailed description of the allergy or intolerance
severity String Severity level: "Mild", "Moderate", or "Severe"
treatment String Recommended treatment or management approach
histories Array Array of historical allergy reactions (only included if status is not "No Known" or "Information Not Available")
histories[].id Integer Unique identifier for the history record
histories[].date Date Date of the reaction (format: YYYY-MM-DD)
histories[].cause String What triggered the reaction
histories[].level String Severity level of this specific reaction: "Mild", "Moderate", or "Severe"
histories[].symptoms String Symptoms experienced during the reaction
histories[].comments String Additional notes about the reaction
histories[].files Array Array of files attached to this history record
histories[].files[].name String Name of the attached file

Create Resident Allergy


#Endpoint for creating a new allergy or intolerance for a resident 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/allergy/create
                    
                

This endpoint creates a new allergy or intolerance record for a specific resident using their external ID. The allergy details including type, severity, status, and other information must be provided in the request body.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/allergy/create

Supported Methods: POST




Request Body Example:
{
    "reason": "Allergy",
    "type": "Medication",
    "status": "Confirmed Diagnosis",
    "name": "Penicillin",
    "description": "Severe allergic reaction with hives and swelling",
    "severity": "Severe",
    "treatment": "Avoid penicillin-based antibiotics, use alternatives"
}

Response Example:
{
    "success": true,
    "message": "Allergy created successfully",
    "data": {
        "id": 123,
        "reason": "Allergy",
        "type_name": "Drug Allergy",
        "status": "Confirmed Diagnosis",
        "name": "Penicillin",
        "description": "Severe allergic reaction with hives and swelling",
        "severity": "Severe",
        "treatment": "Avoid penicillin-based antibiotics, use alternatives"
    }
}
                

URL PARAMETERS

Field Type Description
external_id String The resident's external identifier (client ID)

REQUEST BODY PARAMETERS

Field Type Required Description
reason String Yes Type of reaction. Allowed values: "Allergy", "Intolerance"
type String Yes Category of allergy. Available types: "No Know Drug Allergies", "Medication", "Information Not Available", "Food", "Environmental", "Contact". Must match an existing allergy type name (case-insensitive).
status String Yes Current status. Allowed values: "Confirmed Diagnosis", "Suspected Not Diagnosed", "Referred to Specialist", "Under Investigation with Specialist", "No Known", "Information Not Available"
name String Yes Name of the allergen or substance (e.g., "Penicillin", "Peanuts"). Maximum 255 characters.
description String No Detailed description of the allergy or intolerance
severity String No Severity level. Allowed values: "Mild", "Moderate", "Severe"
treatment String No Recommended treatment or management approach

RESPONSE FIELDS

Field Type Description
success Boolean Indicates whether the allergy was created successfully
message String Success or error message
data.id Integer The unique identifier of the newly created allergy
data.reason String Type of reaction: "Allergy" or "Intolerance"
data.type_name String Category of allergy (e.g., "Drug Allergy", "Food Allergy")
data.status String Current status of the allergy
data.name String Name of the allergen
data.description String Description of the allergy
data.severity String Severity level: "Mild", "Moderate", or "Severe"
data.treatment String Recommended treatment

Update Resident Allergy


#Endpoint for updating an existing allergy or intolerance for a resident 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/allergies/update
                    
                

This endpoint updates an existing allergy or intolerance record for a specific resident using their external ID. The allergy ID must be provided in the request body along with the updated allergy details. All fields are optional except allergy_id - only the fields provided will be updated.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/allergies/update

Supported Methods: POST




Request Body Example:
{
    "allergy_id": 123,
    "reason": "Allergy",
    "type": "Medication",
    "status": "Confirmed Diagnosis",
    "name": "Penicillin",
    "description": "Severe allergic reaction with hives and swelling. Updated details.",
    "severity": "Severe",
    "treatment": "Avoid penicillin-based antibiotics, use alternatives. EpiPen prescribed."
}

Response Example:
{
    "success": true,
    "message": "Allergy updated successfully",
    "data": {
        "id": 123,
        "reason": "Allergy",
        "type_name": "Medication",
        "status": "Confirmed Diagnosis",
        "name": "Penicillin",
        "description": "Severe allergic reaction with hives and swelling. Updated details.",
        "severity": "Severe",
        "treatment": "Avoid penicillin-based antibiotics, use alternatives. EpiPen prescribed."
    }
}
                

REQUEST BODY PARAMETERS

Field Type Required Description
allergy_id Integer Yes The unique identifier of the allergy to update
reason String No Type of reaction. Allowed values: "Allergy", "Intolerance"
type String No Category of allergy. Available types: "No Know Drug Allergies", "Medication", "Information Not Available", "Food", "Environmental", "Contact". Must match an existing allergy type name (case-insensitive).
status String No Current status. Allowed values: "Confirmed Diagnosis", "Suspected Not Diagnosed", "Referred to Specialist", "Under Investigation with Specialist", "No Known", "Information Not Available"
name String No Name of the allergen or substance. Maximum 255 characters.
description String No Detailed description of the allergy or intolerance
severity String No Severity level. Allowed values: "Mild", "Moderate", "Severe"
treatment String No Recommended treatment or management approach

RESPONSE FIELDS

Field Type Description
success Boolean Indicates whether the allergy was updated successfully
message String Success or error message
data.id Integer The unique identifier of the allergy
data.reason String Type of reaction: "Allergy" or "Intolerance"
data.type_name String Category of allergy
data.status String Current status of the allergy
data.name String Name of the allergen
data.description String Description of the allergy
data.severity String Severity level: "Mild", "Moderate", or "Severe"
data.treatment String Recommended treatment

Get Resident Progress Notes


#Endpoint for getting resident progress notes. 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes
                    
                

This endpoint retrieves a flat list of progress notes for a specific resident using their external ID. Each progress note contains date, reason, note, status, priority, and completion info. Use the separate subtask and action endpoints to manage tasks and actions for a given progress note.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes

Supported Methods: GET




Response Example:
{
    "success": true,
    "data": [
        {
            "id": 12345,
            "date": "2025-01-15 14:30:00",
            "reason": "Fall Assessment",
            "note": "Resident experienced a fall in the hallway. Assessment and care plan review required.",
            "status": "In Progress",
            "priority": "High",
            "date_completed": "2025-01-15",
            "created_at": "2025-01-15 14:30:00",
            "created_by": 42,
            "created_by_name": "Jane Doe"
        }
    ]
}
                

URL PARAMETERS

Field Type Description
external_id String The resident's external identifier (client ID)

RESPONSE FIELDS - Progress Notes

Field Type Description
id Integer Unique identifier for the progress note (use as progressnote_id in subtask/action endpoints)
date DateTime Date and time when the progress note was created (format: YYYY-MM-DD HH:MM:SS)
reason String Reason for the progress note (e.g., "Fall Assessment", "Medication Review")
note String Detailed description of the progress note
status String Current status: "Not Started", "In Progress", or "Completed"
priority String Priority level: "Low", "Medium", or "High"
date_completed DateTime Date and time when the progress note was completed (null if not completed)

Create Resident Progress Note


#Endpoint for creating a resident progress note. 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/create
                    
                

This endpoint creates a new progress note for a specific resident using their external ID. Only progress note fields are accepted; use the subtask and action endpoints to add tasks and actions after creation.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/create

Supported Methods: POST



Request Example:
{
    "date": "2025-01-15 14:30:00",
    "reason": "Fall (No Injury)",
    "note": "Resident experienced a fall in the hallway. Assessment and care plan review required.",
    "status": "In Progress",
    "priority": "High",
    "date_completed": "2025-01-15"
}
                

Response Example:
{
    "success": true,
    "message": "Progress note created successfully",
    "data": { "id": 12345 }
}
                

URL PARAMETERS

Field Type Description
external_id String The resident's external identifier (client ID)

REQUEST BODY - Progress Note

Field Type Required Description
date Date/DateTime Yes Date of the progress note (format: YYYY-MM-DD or YYYY-MM-DD HH:MM:SS)
reason String Yes Reason for the progress note (e.g. "Fall Assessment", "Medication Review"). Must match an existing reason name.
note String Yes Detailed description of the progress note
status String Yes Status: "Not Started", "In Progress", or "Completed"
priority String Yes Priority: "Low", "Medium", or "High"
date_completed Date No Date when the progress note was completed (format: YYYY-MM-DD, null if not completed)

Update Resident Progress Note


#Endpoint for updating a resident progress note.
POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/update
                    
                

This endpoint updates an existing progress note for a specific resident. The progress note ID is passed in the request body. All request body fields are optional; only send the fields you want to update.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/update

Supported Methods: POST



Request Example:
{
    "progressnote_id": 12345,
    "date": "2025-01-15 14:30:00",
    "reason": "Fall (No Injury)",
    "note": "Resident experienced a fall in the hallway. Assessment and care plan review required.",
    "status": "In Progress",
    "priority": "High",
    "date_completed": "2025-01-15"
}
                

Response Example:
{
    "success": true,
    "message": "Progress note updated successfully"
}
                

URL PARAMETERS

Field Type Description
external_id String The resident's external identifier (client ID)

REQUEST BODY - Progress Note

Field Type Required Description
progressnote_id Integer Yes The unique identifier of the progress note to update
date Date/DateTime No Date of the progress note (format: YYYY-MM-DD or YYYY-MM-DD HH:MM:SS)
reason String No Reason for the progress note (e.g. "Fall Assessment"). Must match an existing reason name.
note String No Detailed description of the progress note
status String No Status: "Not Started", "In Progress", or "Completed"
priority String No Priority: "Low", "Medium", or "High"
date_completed Date No Date when the progress note was completed (format: YYYY-MM-DD)

Get Resident Progress Notes Subtasks


GET https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks
                    
                

Retrieves all subtasks for a given progress note. Use the progress note id from Get Resident Progress Notes as progressnote_id.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks

Supported Methods: GET



Response Example:
{
    "success": true,
    "data": [
        {
            "subtask_id": 789,
            "date": "2025-01-20 09:00:00",
            "name": "Review Care Plan",
            "assign_to": "Jane Doe",
            "status": "In Progress",
            "priority": "High",
            "details": "Update care plan based on fall risk assessment",
            "created_at": "2025-01-15 14:35:00"
        }
    ]
}
                

URL PARAMETERS

FieldTypeDescription
external_idStringResident external identifier (client ID)
progressnote_idIntegerProgress note ID

Create Resident Progress Notes Subtask


POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/create
                    
                

Creates a new subtask for a progress note.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/create

Supported Methods: POST



Request Example:
{
    "date":       "2025-01-20 09:00:00",
    "task_name":  "Create / Update the Falls care plan",
    "assign_to":  "Jane Doe",
    "status":     "In Progress",
    "priority":   "High",
    "details":    "Update care plan based on fall risk assessment"
}
                

Response Example:
{
    "success": true,
    "message": "Subtask created successfully",
    "data": { "id": 789 }
}
                

URL PARAMETERS

FieldTypeDescription
external_idStringResident external identifier
progressnote_idIntegerProgress note ID

REQUEST BODY

FieldTypeRequiredDescription
dateDate/DateTimeYesDue date (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS)
task_nameStringYesTask name (must match existing task)
assign_toStringYesFull name of assigned carer
statusStringYes"Not Started", "In Progress", or "Completed"
priorityStringYes"Low", "Medium", or "High"
detailsStringNoAdditional details

Update Resident Progress Note Subtask


POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/update
                    
                

Updates an existing subtask.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/update

Supported Methods: POST



Request Example:
{
    "subtask_id" : 86, 
    "date": "2025-01-22 09:00:00",
    "task_name": "Create / Update the Falls care plan",
    "assign_to": "John Smith",
    "status": "Completed",
    "priority": "High",
    "details": "Completed as per fall risk assessment"
}
                

URL PARAMETERS

FieldTypeDescription
external_idStringResident external identifier
progressnote_idIntegerProgress note ID

REQUEST BODY

FieldTypeRequiredDescription
subtask_idIntegerYesSubtask ID to update
dateDate/DateTimeNoDue date
task_nameStringNoTask name (must match existing)
assign_toStringNoFull name of assigned carer
statusStringNo"Not Started", "In Progress", or "Completed"
priorityStringNo"Low", "Medium", or "High"
detailsStringNoAdditional details

Get Resident Progress Notes Subtask Actions


GET https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/{subtask_id}/actions
                    
                

Retrieves all actions (assessments/charts) for a given subtask.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/{subtask_id}/actions

Supported Methods: GET



Response Example:
{
    "success": true,
    "data": [
        {
            "action_id": 101,
            "title": "Wound Management",
            "status": "Pending",
            "mandatory": "Yes",
            "days_to_complete": 7,
            "hour_to_notify": "09:00:00",
            "recommendations": "Check for any injuries from fall, document any wounds or bruises",
            "due_date": "2026-02-15",
            "due_time": "09:00:00"
        }
    ]
}
                

URL PARAMETERS

FieldTypeDescription
external_idStringResident external identifier
progressnote_idIntegerProgress note ID
subtask_idIntegerSubtask ID

RESPONSE FIELDS

FieldTypeDescription
action_idIntegerUnique identifier for the action
titleStringThe action title/name (e.g., "Wound Management", "MUST Assessment")
statusStringStatus of the action (e.g., "Pending", "Completed")
mandatoryStringWhether the action is mandatory: "Yes" or "No"
days_to_completeIntegerNumber of days to complete the action
hour_to_notifyStringHour of day (format: HH:MM:SS) when notification should be sent
recommendationsStringRecommended actions or notes for this action
due_dateDateDue date for the action (format: YYYY-MM-DD)
due_timeTimeDue time for the action (format: HH:MM:SS)

Create Resident Progress Notes Subtasks Action


POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/{subtask_id}/actions/create
                    
                

Creates a new action (assessment/chart) for a subtask. title maps to an action type in the system (e.g. "Wound Management", "MUST Assessment").

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/{subtask_id}/actions/create

Supported Methods: POST



Request Example:
{
    "title": "Wound Management",
    "status": "Pending",
    "mandatory": "Yes",
    "days_to_complete": 7,
    "hour_to_notify": "09:00:00",
    "recommendations": "Check for any injuries from fall, document any wounds or bruises",
    "due_date": "2026-02-15",
    "due_time": "09:00:00"
}
                

Response Example:
{
    "success": true,
    "message": "Action created successfully",
    "data": { "id": 101 }
}
                

URL PARAMETERS

FieldTypeDescription
external_idStringResident external identifier
progressnote_idIntegerProgress note ID
subtask_idIntegerSubtask ID

REQUEST BODY

FieldTypeRequiredDescription
titleStringYesAction title (maps to action type)
statusStringNoAction status (e.g., "Pending", "Completed")
mandatoryStringNoWhether action is mandatory: "Yes" or "No" (default: "No")
days_to_completeIntegerNoDays allowed to complete
hour_to_notifyStringNoReminder time (HH:MM:SS)
recommendationsStringNoClinical recommendations
due_dateDateNoDue date for completion (YYYY-MM-DD)
due_timeStringNoDue time for completion (HH:MM:SS)

Update Resident Progress Notes Subtasks Action


POST https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/{subtask_id}/actions/update
                    
                

Updates an existing action. All request body fields are optional except action_id.

https://api-uk.onetouchhealth.net/connect/c2/v1/residential/residents/{external_id}/progress-notes/{progressnote_id}/subtasks/{subtask_id}/actions/update

Supported Methods: POST



Request Example:
{
    "action_id": 101,
    "title": "Wound Management",
    "status": "In Progress",
    "mandatory": "No",
    "days_to_complete": 14,
    "hour_to_notify": "08:00:00",
    "recommendations": "Updated recommendations",
    "due_date": "2026-02-20",
    "due_time": "10:00:00"
}
                

URL PARAMETERS

FieldTypeDescription
external_idStringResident external identifier
progressnote_idIntegerProgress note ID
subtask_idIntegerSubtask ID

REQUEST BODY

FieldTypeRequiredDescription
action_idIntegerYesAction ID to update
titleStringNoAction title (maps to action type)
statusStringNoAction status (e.g., "Pending", "In Progress", "Completed")
mandatoryStringNoWhether action is mandatory: "Yes" or "No"
days_to_completeIntegerNoDays allowed to complete
hour_to_notifyStringNoReminder time (HH:MM:SS)
recommendationsStringNoClinical recommendations
due_dateDateNoDue date for completion (YYYY-MM-DD)
due_timeStringNoDue time for completion (HH:MM:SS)

Get Pay Period Notes


#Endpoint for get pay period notes 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/pay-periods/notes
                    
                

This endpoint returns the "Pay Period Note per Home" notes of a CareHome, each tagged with the start and end date of its pay period. author is null when the author cannot be resolved within your company. Every non-deleted pay period of the location that overlaps the date range is included (a pay period overlaps when it starts on or before dateTo and ends on or after dateFrom). Only active (not deleted) rows for the given CareHome are returned, ordered by pay period start date. If nothing matches, an empty array is returned with a 200 response. A location restricted key is confined to its own location, while a master key must supply the location parameter.

https://api-uk.onetouchhealth.net/connect/c2/v1/pay-periods/notes?location=42&careHomeAreaId=12&dateFrom=2026-09-01&dateTo=2026-09-30

Supported Methods: GET




Response Example:
{
    "notes": [
        {
            "payPeriodId": 12,
            "payPeriodStartDate": "2026-09-01",
            "payPeriodEndDate": "2026-09-14",
            "periodNumber": 18,
            "note": "Short-staffed on nights",
            "created": "2026-09-10 14:02:11",
            "author": {
                "id": 55,
                "name": "Jane Smith"
            }
        },
        {
            "payPeriodId": 13,
            "payPeriodStartDate": "2026-09-15",
            "payPeriodEndDate": "2026-09-28",
            "periodNumber": 19,
            "note": "Agency cover arranged",
            "created": "2026-09-20 09:00:00",
            "author": null
        }
    ]
}

Empty Response Example (200):
{
    "notes": []
}

Error Response Examples (422):
{
    "success": false,
    "error": "No matching CareHome found"
}
{
    "success": false,
    "error": "dateTo must be no more than 366 days after dateFrom"
}
{
    "success": false,
    "error": "location is required when using a master token"
}
{
    "success": false,
    "error": "Insufficient priviledges to access this location"
}
{
    "success": false,
    "error": "Validation Error",
    "info": {
        "dateFrom": ["The date from field is required."]
    }
}
                

QUERY PARAMETERS

Field Type Description
careHomeAreaId integer (required) The area id of the CareHome. Must belong to your company and to the target location. Do not use a parameter named areaId; it is ignored.
dateFrom string (required) Start of the date range, Y-m-d.
dateTo string (required) End of the date range, Y-m-d. Must be on or after dateFrom and no more than 366 days after it.
location integer (required for a master key, optional otherwise) The location id. A location restricted key can only use its own location.

Get Pay Period Person In Charge


#Endpoint for get pay period person in charge 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/pay-periods/person-in-charge
                    
                

This endpoint returns the Person In Charge of a CareHome for each pay period. A carer who has since been deleted is still returned. carer is null when the carer cannot be resolved within your company. Every non-deleted pay period of the location that overlaps the date range is included (a pay period overlaps when it starts on or before dateTo and ends on or after dateFrom). Only active (not deleted) rows for the given CareHome are returned, ordered by pay period start date. If nothing matches, an empty array is returned with a 200 response. A location restricted key is confined to its own location, while a master key must supply the location parameter.

https://api-uk.onetouchhealth.net/connect/c2/v1/pay-periods/person-in-charge?location=42&careHomeAreaId=12&dateFrom=2026-09-01&dateTo=2026-09-30

Supported Methods: GET




Response Example:
{
    "personsInCharge": [
        {
            "payPeriodId": 12,
            "payPeriodStartDate": "2026-09-01",
            "payPeriodEndDate": "2026-09-14",
            "periodNumber": 18,
            "carer": {
                "id": 301,
                "externalId": "EMP-301",
                "name": "John Doe"
            }
        }
    ]
}

Empty Response Example (200):
{
    "personsInCharge": []
}

Error Response Examples (422):
{
    "success": false,
    "error": "No matching CareHome found"
}
{
    "success": false,
    "error": "dateTo must be no more than 366 days after dateFrom"
}
{
    "success": false,
    "error": "location is required when using a master token"
}
{
    "success": false,
    "error": "Insufficient priviledges to access this location"
}
{
    "success": false,
    "error": "Validation Error",
    "info": {
        "dateFrom": ["The date from field is required."]
    }
}
                

QUERY PARAMETERS

Field Type Description
careHomeAreaId integer (required) The area id of the CareHome. Must belong to your company and to the target location. Do not use a parameter named areaId; it is ignored.
dateFrom string (required) Start of the date range, Y-m-d.
dateTo string (required) End of the date range, Y-m-d. Must be on or after dateFrom and no more than 366 days after it.
location integer (required for a master key, optional otherwise) The location id. A location restricted key can only use its own location.

Get Contact Types


#Endpoint for getting contact types 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/contacts/get-types
                    
                

This endpoint allows for the fetching of contact types which can be used to create contacts with the contacts/create endpoint. See sample response below - both an id and a name is returned either of which can be used in the type parameter in the contacts/create endpoint.

Additonally there is a carer and client boolean identifier passed. This denotes if the type can be used against a carer and/or a client respectively. For example if carer is true and client if false this type can only be used to add a contact for a carer.

https://api-uk.onetouchhealth.net/connect/c2/v1/contacts/get-types

Supported Methods: GET



Response Example:
{
    "success": true,
    "contact_types": [
        {
            "id": 1446,
            "name": "Parent",
            "carer": true,
            "client": true
        },
        {
            "id": 1703,
            "name": "Mother",
            "carer": true,
            "client": true
        },
        {
            "id": 1713,
            "name": "Brother",
            "carer": true,
            "client": true
        },
        {
            "id": 1738,
            "name": "Sister",
            "carer": true,
            "client": true
        },
        {
            "id": 1743,
            "name": "Next of Kin",
            "carer": true,
            "client": true
        }
    ]
}

                

Create Contact


#Endpoint for getting contact types 
POST https://api-uk.onetouchhealth.net/connect/c2/v1/contacts/create
                    
                

This endpoint allows for the creation of a contact to be appended to either a carer or a client profile.

The minimum details required to add a contact via this endpoint is their first and last name, their email address and they type of contact that they are.

There a number of fields detailed below which are optional and can be included if available.

Note: This endpoint can be used to add contacts to either carers or clients. If you wish to add to carer profile you should provide wither the carer_id or carer_external_id identifer.
If you wish to add to client profile you should provide wither the client_id or client_external_id identifer. If one of these identifers is not used and only one - your request will fail validation


https://api-uk.onetouchhealth.net/connect/c2/v1/contacts/create

Supported Methods: POST



Request Example:
{
    "firstname": "John",
    "lastname": "Doe",
    "phone": "987654321",
    "email": "john.doe@example.com",
    "address": "456 Elm Street",
    "town": "Athlone",
    "county": "Westmeath",
    "country": "Ireland",
    "postcode": "65801",
    "relation": "Father",
    "carer_id" : 12,
    "rating": 1,
    "type": 1703,
}

Response Example:
{
    "success": true,
    "message": "Contact created successfully"
}

QUERY PARAMETERS

Field Type Description
firstname string (required) The contacts first name in string format
lastname string (required) The contacts last name in string format
phone alphanumeric (optional) The contacts phone number
email email (required) The valid email address of the contact to be added
address string (optional) The street address of the contact to be added
town string (optional) The town of the contact to be added
county string (optional) The county of the contact to be added
country string (optional) The country of the contact to be added
postcode string (optional) The postcode of the contact to be added
carer_id integer (required without carer_external_id or client identifiers) The id of the carer to which the contact should be added
carer_external_id alphanumeric (required without carer_id or client identifiers) The external_id of the carer to which the contact should be added
client_id integer (required without client_external_id or carer identifiers) The id of the client to which the contact should be added
client_external_id alphanumeric (required without client_id or carer identifiers) The external_id of the client to which the contact should be added
relation string (optional) This is generally captured in the contact type but can be recorded here if additinal info required
rating integer (optional) This is a numeric rating that can be applied to contacts which will define their ordering on the carer or client profile
type string|integer (required) The contact type of the contact to be added - this can be passed as an id or as a string. The possible values that can be passed here can be fetched from the contacts/get-types endpoint.

View Qualifications


#Endpoint for adding qualifications to carer records
GET https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/view/carer/{external_id}
                    
                

This endpoint can be used to view the qualifications of any given carer

https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/view/carer/{external_id}

Supported Methods: GET




Response Example :
[
    {
        "created": "2022-03-31 14:39:13",
        "name": "DBS Certificate",
        "award_date": "2021-04-21",
        "expire_date": "2023-04-21",
        "comment": null,
        "files": [
            {
                "name": "file.jpg",
                "url": "https://api-uk.onetouchhealth.net/connect/assets?expires=1748429314&path=XYZ&signature=XYZ",
                "mimeType": "image/jpeg"
            }
        ]
    }
]
  
                

Create Qualification


#Endpoint for adding qualifications to carer records
POST https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/create
                    
                

This endpoint is used to add qualifications to carer records. Qualifications is the umbrella term we use to cover all types of HR records, be that carer training records, certs acquired or just general competencies.

Note: If the qualification already exists the parameters passed will be used to update the existing qualification

https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/create

Supported Methods: POST



Request Body Example:
{
    "carer_external_id" : "8081234",
    "qualification_type": "Manual Handling",
    "award_date" : "2020-10-15",
    "expire_date" : "2023-10-15",
    "comment" : "Sample comment",
    "file_attachment": {
        "filename" : "Feedback.txt",
        "file" : "Q2xpZW50cyANCg0KDQpEYXRhIFR5cGUgSUQgDlxdWUgQ2xpZW50IElEDQpBZ==",
        "method": "base64"
    }
}

Response Example :
{
    "success": true,
    "message": "Qualification successfully updated"
}
  
                

QUERY PARAMETERS

Field Type Description
carer_id integer (required without carer_external_id) The id of the carer for which the qualification should be added
carer_external_id alphanumeric (required) This is your unique identifier for the carer record you wish to add the qualification to
qualification_type string|integer (required) The type of qualification to add in int (id) or string (name) format
award_date string (optional) The awarded date of the qualification to be added in the format yyyy-mm-dd
expire_date string (optional) The expiry date of the qualification to be added in the format yyyy-mm-dd
comment string (optional) Comment to add to the qualification record if desired
file_attachment object (optional) JSON object containing a details of the hr file to be added.

The filename parameter should hold the string value of the filename being added.
The method parameter can be passed as either url or base64.
If url is passed the file parameter should contain a remote url of where the file to be uploaded resides
If base64 is passed the file parameter should contain a base64 encoded string of the file to be uploaded.

Batch Create Qualifications


#Endpoint for adding multiple qualifications to carer records in a single request
POST https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/batch-create
                    
                

This endpoint allows multiple qualifications to be created in a single request by passing an array of qualification objects. Each item in the array accepts the same fields as the single create endpoint, including optional file attachments. A maximum of 20 qualifications can be submitted per request.

Note: If a qualification already exists for a given carer and type, the existing record will be updated with the parameters passed.

https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/batch-create

Supported Methods: POST



Request Body Example:
{
   "qualifications": [
      {
         "carer_external_id": "8081234",
         "qualification_type": "Manual Handling",
         "award_date": "2020-10-15",
         "expire_date": "2023-10-15",
         "comment": "Sample comment",
         "file_attachment": {
            "filename": "Feedback.txt",
            "file": "Q2xpZW50cyANCg0KDQpEYXRhIFR5cGUgSUQgDlxdWUgQ2xpZW50IElEDQpBZ==",
            "method": "base64"
         }
      },
      {
         "carer_external_id": "8081235",
         "qualification_type": "First Aid",
         "award_date": "2021-06-01",
         "expire_date": "2024-06-01"
      }
   ]
}

Response Example (all succeeded - 200):
{
   "success": true,
   "summary": {
      "total": 2,
      "succeeded": 2,
      "failed": 0
   },
   "results": [
      {
         "index": 0,
         "carer_external_id": "8081234",
         "success": true,
         "message": "Qualification successfully added"
      },
      {
         "index": 1,
         "carer_external_id": "8081235",
         "success": true,
         "message": "Qualification successfully added"
      }
   ]
}

Response Example (partial success - 207):
{
   "success": false,
   "summary": {
      "total": 2,
      "succeeded": 1,
      "failed": 1
   },
   "results": [
      {
         "index": 0,
         "carer_external_id": "8081234",
         "success": true,
         "message": "Qualification successfully added"
      },
      {
         "index": 1,
         "carer_external_id": "8081235",
         "success": false,
         "error": "The carer identifier provided does not match a unique carer"
      }
   ]
}

                

QUERY PARAMETERS

Field Type Description
qualifications array (required) An array of qualification objects. Must contain at least 1 and no more than 20 items. Each object accepts the same fields as the single create endpoint.
qualifications[].carer_id integer (required without carer_external_id) The id of the carer for which the qualification should be added
qualifications[].carer_external_id alphanumeric (required without carer_id) Your unique identifier for the carer record
qualifications[].qualification_type string|integer (required) The type of qualification to add in int (id) or string (name) format
qualifications[].award_date string (optional) The awarded date of the qualification in the format yyyy-mm-dd
qualifications[].expire_date string (optional) The expiry date of the qualification in the format yyyy-mm-dd
qualifications[].comment string (optional) Comment to add to the qualification record if desired
qualifications[].file_attachment object (optional) JSON object containing details of the HR file to be added.

The filename parameter should hold the string value of the filename being added.
The method parameter can be passed as either url or base64.
If url is passed the file parameter should contain a remote URL of where the file to be uploaded resides.
If base64 is passed the file parameter should contain a base64 encoded string of the file to be uploaded.

RESPONSE CODES

Code Condition
200 - OK All items in the batch were processed successfully.
207 - Multi-Status Some items succeeded and some failed. Check the results array for per-item outcomes.
422 - Unprocessable Entity All items in the batch failed.

Update Qualification


#Endpoint for adding qualifications to carer records
POST https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/update
                    
                

This endpoint is used to update carer qualification records.

Note: This endpoint works just the same as the qualifications/create endpoint above in terms of the accepted payloads. However if the qualification does not already exist for the carer, the request will fail and the qualification will not be created

Supported Methods: POST



Request Body Example:
{
    "carer_external_id" : "8081234",
    "qualification_type": "Manual Handling",
    "award_date" : "2020-10-15",
    "expire_date" : "2023-10-15",
    "comment" : "Sample comment",
    "file_attachment": {
        "filename" : "Feedback.txt",
        "file" : "Q2xpZW50cyANCg0KDQpEYXRhIFR5cGUgSUQgDlxdWUgQ2xpZW50IElEDQpBZ==",
        "method": "base64"
    }
}

Response Example :
{
    "success": true,
    "message": "Qualification successfully updated"
}
  
                

QUERY PARAMETERS

Field Type Description
carer_external_id alphanumeric (required) This is your unique identifier for the carer record you wish to add the qualification to
qualification_type string|integer (required) The type of qualification to add in int (id) or string (name) format
award_date string (optional) The awarded date of the qualification to be added in the format YYYY-MM-DD
expire_date string (optional) The expiry date of the qualification to be added in the format YYYY-MM-DD
comment string (optional) Comment to add to the qualification record if desired
file_attachment object (optional) JSON object containing a details of the hr file to be added.

The filename parameter should hold the string value of the filename being added.
The method parameter can be passed as either url or base64.
If url is passed the file parameter should contain a remote url of where the file to be uploaded resides
If base64 is passed the file parameter should contain a base64 encoded string of the file to be uploaded.

Delete Qualification


#Endpoint for deleting qualifications.
POST https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/delete
                    
                

This endpoint is used to delete carer qualification records.

Supported Methods: POST



Request Body Example:
{
    "carer_external_id" : "8081234",
    "qualification_type": "Manual Handling"
}

Response Example :
{
    "success": true,
    "message": "Qualification successfully deleted"
}
  
                
Field Type Description
carer_external_id alphanumeric (required) This is your unique identifier for the carer record you wish to delete the qualification
qualification_type string|integer (required) The type of qualification to add in int (id) or string (name) format

Get Qualification Types


#Endpoint for getting training & qualification types 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/get-types
                    
                

This simple endpoint allows for the fetching of carer qualifications within the OneTouch application. The qualifications returned are the existing areas whos ids can be used when adding qualifications to carers.



https://api-uk.onetouchhealth.net/connect/c2/v1/qualifications/get-types

Supported Methods: GET




Response Example:
{
    "qualification_types": [
        {
            "id": 37,
            "name": "Fetac - Module 1"
        },
        {
            "id": 38,
            "name": "Fetac - Module 2"
        },
        {
            "id": 238,
            "name": "Manual Handling"
        },
        {
            "id": 695,
            "name": "Recognition And Prevention Of Abuse"
        },
        {
            "id": 696,
            "name": "Induction Training"
        },
        {
            "id": 697,
            "name": "Dimensia"
        }
    ]
}
                

Create Qualification Types


#Endpoint for adding qualifications types to carer records
POST https://c1a.onetouchhealth.net/api/qualifications/create-types
                    
                

This endpoint is used to add qualifications types to carer records.

https://c1a.onetouchhealth.net/api/qualifications/create-types

Supported Methods: POST



Request Body Example:
{
    "name": "New qualification type name",
}

Response Example :
{
    "success": true,
    "message": "Qualification type created successfully",
    "id": 24523
}
  
                

QUERY PARAMETERS

Field Type Description
name string (required) The name of the qualification type record

Update Qualification Type


#Endpoint for updating qualifications type records
POST https://c1a.onetouchhealth.net/api/qualifications/update-types
                    
                

This endpoint is used to update carer qualification records.



Request Body Example:
{
    "id" : "24523",
    "name": "New qualification type name"
}

Response Example :
{
    "success": true,
    "message": "Qualification type successfully updated"
}
  
                

QUERY PARAMETERS

Field Type Description
id integer (required) This is your unique identifier for the qualification type record you wish to update
name string (required) The name of the qualification type record

View Job Types


#Endpoint for viewing all job types
GET https://api-uk.onetouchhealth.net/connect/c2/v1/jobtypes/view/all
                    
                

This endpoint can be used to view all job types.

https://api-uk.onetouchhealth.net/connect/c2/v1/jobtypes/view/all

Supported Methods: GET




Response Example :
[
    {
        "id" : 1,
        "created": "2000-01-01 00:00:00",
        "name": "Job Type 1"
    },
    {
        "id" : 2,
        "created": "2000-01-01 00:00:00",
        "name": "Job Type 2"
    },
    {
        "id" : 3,
        "created": "2000-01-01 00:00:00",
        "name": "Job Type 3"
    }
]
  
                

Create Schedule


#Endpoint for creating a new schedule/recurring visit
POST https://api-uk.onetouchhealth.net/connect/c2/v1/schedule/create
                    
                

This endpoint allows for the creation of schedules (visits) within the OneTouch application. It supports both single visits and recurring visits with various recurrence patterns.

When creating a schedule, you can specify if it's a regular visit, an overnight visit, or a recurring visit pattern. The system will automatically handle the appropriate duration calculations and recurrence rules.

Note: For recurring visits, the system will generate all occurrences based on the recurrence pattern up to one year from the start date.

https://api-uk.onetouchhealth.net/connect/c2/v1/schedule/create

Supported Methods: POST



Request Body Example (Single Visit):
{
    "client_id": 12345,
    "carer_id": 67890,
    "jobtype_id": 1,
    "date_start": "2025-11-04",
    "date_finish": "2025-11-04",
    "time_start": "09:00",
    "time_finish": "17:00",
    "overnight": false,
    "off_bank_holidays": false
}

Request Body Example (Recurring Visit):
{
    "client_external_id": "CLIENT123",
    "carer_external_id": "CARER456",
    "jobtype_id": 1,
    "date_start": "2025-11-04",
    "date_finish": "2026-11-04",
    "time_start": "20:00",
    "time_finish": "08:00",
    "overnight": true,
    "off_bank_holidays": true,
    "days": "Mon,Wed,Fri",
    "week": 1
}

Response Example:
{
    "success": true,
    "message": "Schedule created successfully"
}
                

QUERY PARAMETERS

Field Type Description
client_id integer (required) Internal client ID. Either client_id or client_external_id must be provided
client_external_id string External client ID. Required if client_id is not provided
carer_id integer Internal carer ID. Unassigned if carer_id or carer_external_id empty
carer_external_id string External carer ID. Unassigned if carer_id or carer_external_id empty
jobtype_id integer (required) The job type identifier for this schedule
date_start date (required) Start date in YYYY-MM-DD format
date_finish date End date in YYYY-MM-DD format.
time_start time (required) Start time in HH:mm format (24-hour)
time_finish time (required) End time in HH:mm format (24-hour)
off_bank_holidays boolean Whether to skip bank holidays for recurring schedules. Default is false
overnight boolean Indicates if the visit is overnight. Default is false
week integer Week number for recurring schedules. Set to 0 for single visits
days string Comma-separated list of days for recurring schedules (Mon,Tue,Wed,Thu,Fri,Sat,Sun)

View Visits


Endpoint for getting scheduled visits across the OneTouch system 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/visits?carer_id=47536&datestart=2023-01-17&datefinish=2023-01-20
                    
                

Endpoint for getting scheduled visits across the OneTouch system. This is a flexible endpoint which can be used to filter on client visits, carer visits, specific dates or date ranges

https://api-uk.onetouchhealth.net/connect/c2/v1/visits?carer_id=47536&datestart=2023-01-17&datefinish=2023-01-20

Supported Methods: GET




Response Example:
{
    "current_page": 1,
    "per_page": 50,
    "total": 4,
    "last_page": 1,
    "data": {
        "visits": [
            {
                "carer_name": "Marty McFly",
                "client_name": "Sonic Hedgehog",
                "carer_id": 104208,
                "client_id": 250270,
                "time_start": "10:00:00",
                "time_finish": "15:00:00",
                "duration": "05:00:00",
                "jobtype_name": "Covid Form",
                "recurr_id": 185295523,
                "cancellation_reason": "",
                "date": "2024-12-18",
                "shift_date": "2024-12-18",
                "shift_time_start": "10:00:00",
                "shift_time_finish": "00:00:00",
                "shift_duration": "05:00:00",
                "pay": [
                    {
                        "text": "20*5",
                        "pay": 100,
                        "duration_hrs": 5,
                        "pay_rates": [
                            20
                        ],
                        "day_type": "Wed",
                        "pay_scale_id": 243,
                        "pay_scale_name": "Critical Care",
                        "total_pay": 100
                    }
                ],
                "billing": [
                    {
                        "text": "15*5",
                        "billing": 75,
                        "duration_hrs": 5,
                        "billing_rates": [
                            15
                        ],
                        "day_type": "Wed",
                        "billing_scale_id": 10507,
                        "billing_scale_name": "Spiderscale",
                        "total_billing": "15*5"
                    }
                ]
            }
        ]
    },
    "first_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/visits?carer_id=47536&datestart=2023-01-17&datefinish=2023-01-20&page=1",
    "next_page_url": null,
    "prev_page_url": null,
    "last_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/visits?carer_id=47536&datestart=2023-01-17&datefinish=2023-01-20&page=1"
}
                

QUERY PARAMETERS

Field Type Description
carer_id integer (required without carer_external_id, client_id, client_external_id) This is the id of the OneTouch carer the visits are to be fetched for
carer_external_id alphanumeric (required without carer_id, client_id, client_external_id) This is your unique identifier for the carer record the visits are to be fetched for
client_id integer (required without carer_id, carer_external_id, client_external_id) This is the id of the OneTouch client the visits are to be fetched for
client_external_id alphanumeric (required without carer_id, carer_external_id, client_id) This is your unique identifier for the client record the visits are to be fetched for
date string (optional) This is an optional parameter used if you wish to fetch visits just for a particular date
datestart string (required with datefinish) This is an optional parameter which if used should be used in alongside the datafinish parameter - these parameters can be used to define date ranges no greater than 60 days
datefinish string (required with datestart) This is an optional parameter which if used should be used in alongside the datestart parameter - these parameters can be used to define date ranges no greater than 60 days
per_page integer (optional) Number of results to return per page. Defaults to 50. Maximum is 100
page integer (optional) The page number to return. Defaults to 1
location string|integer (optional|required) The desired location area in int or string format.
If a master key has been issued this parameter is required! See possible values in the get locations endpoint.

Get Timesheets


Endpoint for getting carer timesheets across the OneTouch system 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/timesheets?carer_id=59789&date=2024-04-18
                    
                

Endpoint for getting carer timesheets across the OneTouch system. This is a flexible endpoint which can be used to filter on specific dates or date ranges. Any range queries are limited to a 60 day period

https://api-uk.onetouchhealth.net/connect/c2/v1/timesheets?carer_id=59789&date=2024-04-18

Supported Methods: GET




Response Example:
{
    "current_page": 1,
    "data": [
        {
            "timesheet_id": 1001,
            "date": "2024-04-18",
            "carer_name": "Tom Carer",
            "client_name": "Paul Client",
            "external_carer": false,
            "carer_id": 59789,
            "client_id": 328077,
            "job_type": "Covid Form",
            "due_in": "11:30:00",
            "due_out": "12:00:00",
            "log_in": "2024-04-18 08:37:20",
            "log_out": "2024-04-18 08:37:24",
            "time_confirmed": true
        },
        {
            "timesheet_id": 1002,
            "date": "2024-04-18",
            "carer_name": "Tom Carer",
            "client_name": "Anna Client",
            "external_carer": false,
            "carer_id": 59789,
            "client_id": 295026,
            "job_type": "Covid Form",
            "due_in": "10:00:00",
            "due_out": "11:05:00",
            "log_in": "2024-04-18 08:37:05",
            "log_out": "2024-04-18 08:37:19",
            "time_confirmed": true
        }
    ],
    "first_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/timesheets?carer_id=59789&date=2024-04-18&per_page=20&page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/timesheets?carer_id=59789&date=2024-04-18&per_page=20&page=1",
    "next_page_url": null,
    "path": "https://api-uk.onetouchhealth.net/connect/c2/v1/timesheets",
    "per_page": 20,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}
                

QUERY PARAMETERS

Field Type Description
carer_id integer (optional) Filter timesheets by a specific OneTouch carer id
date string (optional) This is an optional parameter used if you wish to fetch timesheets just for a particular date. Should no date be provided, timesheets will be fetched for the last 60 days
datestart string (required with datefinish) This is an optional parameter which if used should be used in alongside the datefinish parameter - these parameters can be used to define date ranges no greater than 60 days
datefinish string (required with datestart) This is an optional parameter which if used should be used in alongside the datestart parameter - these parameters can be used to define date ranges no greater than 60 days
page integer (optional) The page number to return. Defaults to 1.
per_page integer (optional) Number of results per page. Accepts 1-250. Defaults to 20.

Get Summary


#Endpoint for getting a summary view of finance information for visits
GET https://api-uk.onetouchhealth.net/connect/c2/v1/finance/summary
                    
                

This simple endpoint allows for the fetching of a summary view of finance information per visit in the OneTouch application.

This call can be filtered a carer id, a client id, a specific date of interest or a date range.

https://api-uk.onetouchhealth.net/connect/c2/v1/finance/summary?client_id=66002&date=2024-07-09

Supported Methods: GET




Response Example:
{
    "current_page": 1,
    "data": [
        {
            "generated_date": "2020-10-22",
            "generated_time": "12:37:26",
            "event_id": 19289714,
            "timesheet_recurr_id": 12748727,
            "date": "2024-07-09",
            "client_id": 66002,
            "client_name": "Peter Client",
            "carer_id": 11,
            "carer_name": "Emma Carer",
            "branch_id": "1, 231",
            "branch": "Example Branch, Shared Branch",
            "workgroup_id": "1, 420",
            "workgroup": "Example Workgroup, Shared Workgroup",
            "area_id": 1773,
            "area": "SWG",
            "shift_status": "Complete",
            "cancelled_reason": "",
            "cancelled_comment": "",
            "notes": "",
            "scheduled_start": "12:10:00",
            "scheduled_finish": "13:45:00",
            "actual_start": "12:10:00",
            "actual_finish": "13:45:00",
            "jobtype_id": 662,
            "jobtype": "Senior Support Worker",
            "billing": "30.08",
            "pay": "0.00",
            "billing_rate": "0.00",
            "pay_rate": "0.00",
            "travel_pay": "0.00",
            "travel_rate": "0.00",
            "coordinator": "",
            "funder": "",
            "full_start": "2024-07-09 12:10:00",
            "full_finish": "2024-07-09 13:45:00"
        },
        {
            "generated_date": "2020-10-22",
            "generated_time": "12:37:26",
            "event_id": 19289732,
            "timesheet_recurr_id": 12748736,
            "date": "2024-07-09",
            "client_id": 66002,
            "client_name": "Peter Client",
            "carer_id": 33438,
            "carer_name": "Joe \"JOEY\" Blogs",
            "branch_id": "1, 231",
            "branch": "Example Branch, Shared Branch",
            "workgroup_id": "1, 420",
            "workgroup": "Example Workgroup, Shared Workgroup",
            "area_id": 1773,
            "area": "SWG",
            "shift_status": "Complete",
            "cancelled_reason": "",
            "cancelled_comment": "",
            "notes": "",
            "scheduled_start": "17:00:00",
            "scheduled_finish": "09:00:00",
            "actual_start": "17:00:00",
            "actual_finish": "09:00:00",
            "jobtype_id": 248,
            "jobtype": "Core",
            "billing": "395.00",
            "pay": "160.00",
            "billing_rate": "0.00",
            "pay_rate": "0.00",
            "travel_pay": "0.00",
            "travel_rate": "0.00",
            "coordinator": "",
            "funder": "",
            "full_start": "2024-07-09 17:00:00",
            "full_finish": "2020-09-08 09:00:00"
        }
    ],
    "first_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/finance/summary?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/finance/summary?page=1",
    "next_page_url": null,
    "path": "https://api-uk.onetouchhealth.net/connect/c2/v1/finance/summary",
    "per_page": 200,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}
                

QUERY PARAMETERS

Field Type Description
carer_id integer (optional) This is the id of the carer
client_id integer (optional) This is the id of the client
date date yyyy-mm-dd (optional) This is an optional parameter which would specify a visit date to filter on
datestart date yyyy-mm-dd (optional) This is an optional parameter which if used should be used in alongside the datefinish parameter - these parameters can be used to define date ranges no greater than 60 days
datefinish date yyyy-mm-dd (optional) This is an optional parameter which if used should be used in alongside the datestart parameter - these parameters can be used to define date ranges no greater than 60 days
per_page integer (optional) This will define how many results will be returned per page in the API response

Timesheet Billing


                #Endpoint for getting billing information by timesheet 
                GET https://api-uk.onetouchhealth.net/connect/c2/v1/finance/billing/timesheet/778
                                    
                                

This simple endpoint allows for the fetching of timesheet billing information by timesheet id.

https://api-uk.onetouchhealth.net/connect/c2/v1/finance/billing/timesheet/{timesheet_id}

Supported Methods: GET




                Response Example:
                {
                    "billing": {
                        "text": "Not Billed",
                        "billing": 0,
                        "duration_hrs": 1,
                        "billing_rates": [],
                        "day_type": "Thu",
                        "billing_scale_id": 17,
                        "billing_scale_name": "Not Billed",
                        "show_tot_billing": "Not Billed",
                        "duration_mins": 60
                    }
                }
                

Timesheet Pay


#Endpoint for getting pay information by timesheet 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/finance/pay/timesheet/778
                    
                

This simple endpoint allows for the fetching of timesheet billing information by timesheet id.

https://api-uk.onetouchhealth.net/connect/c2/v1/finance/pay/timesheet/{timesheet_id}

Supported Methods: GET




Response Example:
{
    "pay": {
        "text": "Not Paid",
        "pay": 0,
        "duration_hrs": 1,
        "pay_rates": [],
        "day_type": "Thu",
        "pay_scale_id": "",
        "pay_scale_name": "Not Paid",
        "show_tot_paying": "Not Paid",
        "total_pay": 0,
        "duration_mins": 60
    }
}
                

Timesheet Financials


                #Endpoint for getting billing and paying information by timesheet 
                GET https://api-uk.onetouchhealth.net/connect/c2/v1/finance/timesheets/204467958/financials
                                    
                                

This simple endpoint allows for the fetching of timesheet billing and pay information by timesheet id.

https://api-uk.onetouchhealth.net/connect/c2/v1/finance/billing/timesheet/{timesheet_id}

Supported Methods: GET




                Response Example:
                {
		"billing_scale_name": "New pay 2021",
		"timesheet_id": 204467993,
        "timesheet_custom_id": 2263591,
		"due_in": "2025-03-08 10:00:00",
		"due_out": "2025-03-08 12:00:00",
		"duration": "02:00:00",
		"duration_decimal": 2,
		"billing_rate": [
			25
		],
		"total_billing": 50,
		"council_id": "OF8156 Test",
		"client_name": "David Client",
		"client_id": 41087,
		"carer_id": 26485,
		"carer_name": "Laura Carer",
		"paying_rate": [
			0
		],
		"total_pay": 0,
		"confirmed_date": "2025-04-11 14:05:38",
		"batch_no": "T0002",
		"invoicee_name": null,
		"incoicee_origin_code": "MMOriginCodeTestYes",
		"incoicee_code": "MMContactCodeTestYes",
		"invoicee_email": "invoices@example.com",
		"jobtype_name": "Support Work",
		"jobtype_export_name": null
	}
                

Get deleted timesheets


                #Endpoint for getting deleted timesheets by batch 
                GET https://api-uk.onetouchhealth.net/connect/c2/v1/batch/timesheets/deleted
                                
                            

This endpoint allows to get the colleption of deleted timesheets group by batch

https://api-uk.onetouchhealth.net/connect/c2/v1/batch/timesheets/deleted/{batch_id}

Supported Methods: GET


                       

                        Response Example:
                        [
                            {
                                "timesheet_id": 63349,
                                "timesheet_custom_id": false,
                                "deleted_date": "2016-06-22 14:15:14",
                                "deleted_by": "Admin User One",
                                "due_in": "2016-05-25 13:00:00",
                                "due_out": "2016-05-25 14:00:00",   
                                "duration": "01:00:00",
                                "duration_decimal": 1,
                                "council_id": null,
                                "client_name": "Chris Client",
                                "client_id": 1967,
                                "carer_id": 4795,
                                "carer_external_id": "479547954795",
                                "carer_name": "John Carer",
                                "confirmed_date": null,
                                "jobtype_name": "Occupational Therapist",
                                "jobtype_export_name": null
                            },
                            {
                                "timesheet_id": 209427637,
                                "timesheet_custom_id": false,
                                "deleted_date": "2025-05-15 11:32:43",
                                "deleted_by": "Admin User Two",
                                "due_in": "2025-05-19 09:00:00",
                                "due_out": "2025-05-19 10:00:00",
                                "duration": "01:00:00",
                                "duration_decimal": 1,
                                "council_id": "REF000/01",
                                "client_name": "Ben Client - Example Town",
                                "client_id": 514807,
                                "carer_id": 0,
                                "carer_external_id": null,
                                "carer_name": null,
                                "confirmed_date": null,
                                "jobtype_name": "FUNDER01 | Example Funder Older Persons",
                                "jobtype_export_name": null
                            }
                        ]
                

QUERY PARAMETERS

Field Type Description
startDate date (required) (yyyy-mm-dd format)
endDate date (required) (yyyy-mm-dd format)

Get Invoices


Endpoint for getting invoices from the OneTouch system 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/invoicing?period_start=2024-09-01&period_finish=2024-09-30
                    
                

Endpoint for getting invoices from OneTouch system. This is a flexible endpoint which can be used to filter on specific invoicing periods and by client.

If a master key is being used - there are is an additional optional field - location which will filter the invoices by the specified location.

https://api-uk.onetouchhealth.net/connect/c2/v1/invoicing?period_start=2024-09-01&period_finish=2024-09-30

Supported Methods: GET



   
Response Example:
{
    "success": true,
    "invoices": {
        "current_page": 1,
        "data": [
            {
                "id": 2298251,
                "client_id": 437522,
                "type": "invoice",
                "job_type_id": "29485",
                "job_type": "HSS",
                "split": null,
                "split_type": "percent",
                "split_value": null,
                "company_line_1": "Example Care Ltd",
                "company_line_2": "Unit 1, Example Business Park",
                "company_line_3": "Example Road",
                "company_line_4": "Example Town",
                "company_line_5": "A00 A000",
                "company_line_6": "01 000 0000",
                "invoice_info_line1": "Alex Example",
                "invoice_info_line2": "Home Support Manager, Example Funder",
                "invoice_info_line3": "1 Example Street, Example Town",
                "invoice_info_line4": "Example County",
                "invoice_info_line5": "A00 A000",
                "payment_due": "2024-10-31 ",
                "period_start": "2024-09-01",
                "period_finish": "2024-09-30",
                "client_name": "Mary Client",
                "client_address_line": "1 Example Road,Example Town,Example County,A00 A000",
                "invoicee_contact_id": 1171245,
                "area_id": 14166,
                "area_name": "Example Area",
                "workgroup_id": "2677",
                "workgroup_name": "Example Workgroup",
                "branch_id": "1643",
                "branch_name": "Example Branch",
                "funder_name": null,
                "manager_name": null,
                "coordinator_name": null,
                "council_id": "REF000/00",
                "current_unit": null,
                "billing_code": null,
                "referral_reason": null,
                "referral_by": null,
                "resident_id": "REF000/00",
                "issue_date": "2024-09-30",
                "printed_date": "2024-10-01",
                "create_invoice": 1,
                "sage_dep_id": null,
                "code": "c75ac83ca1455825ee7cd22fa25baa32",
                "code_split": null,
                "note": null,
                "allocated_hrs": 31.5,
                "timesheets_ids": "174660511,174660516,174764886,174764891,175017778,175017783,175017788,175364884,175559479,175559484,175559489,175559494,175830415,175830420,175830425,176304510,176304515",
                "expenses_ids": null,
                "origin_code": null,
                "customer_number": null,
                "recalculate_parent_id": null,
                "recalculate_child_id": null,
                "credit_parent_id": null,
                "credit_child_id": null,
                "manual_invoice": null
            }
        ],
        "first_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/invoicing?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://api-uk.onetouchhealth.net/connect/c2/v1/invoicing?page=1",
        "next_page_url": null,
        "path": "https://api-uk.onetouchhealth.net/connect/c2/v1/invoicing",
        "per_page": 20,
        "prev_page_url": null,
        "to": 15,
        "total": 15
    }
}

                

QUERY PARAMETERS

Field Type Description
client_id integer (required) This is the id of the OneTouch client the invoices are to be fetched for
client_external_id integer (required) This is the external id of the OneTouch client the invoices are to be fetched for
period_start date (required with period_finish) This is an optional parameter which if used should be used in alongside the period_finish parameter - these parameters can be used to define the invoicing period
period_finish date (required with period_start) This is an optional parameter which if used should be used in alongside the period_start parameter - these parameters can be used to define the invoicing period
location string|integer (optional) The desired location in int or string format.
This field will only apply if a master key is being used! See possible values in the get locations endpoint.

Get Invoice Details


Endpoint for getting invoice details from the OneTouch system 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/invoicing/details/2298251
                    
                

Endpoint for getting individual invoice line items from OneTouch system.

https://api-uk.onetouchhealth.net/connect/c2/v1/invoicing/details/{invoice_id}

Supported Methods: GET



   
Response Example:
{
    "success": true,
    "invoice_details": [
        {
            "type": "timesheet",
            "timesheet_id": 174660511,
            "expense_id": null,
            "log_date": "2024-09-16",
            "client_id": 437522,
            "carer_id": 224588,
            "sched_start": "2024-09-16 11:00:00",
            "sched_finish": "2024-09-16 12:00:00",
            "overnight": 0,
            "sched_duration": "01:00:00",
            "actual_start": "11:00:00",
            "actual_finish": "12:00:00",
            "actual_duration": "01:00:00",
            "payable_time": "01:00:00",
            "job_type_id": 29485,
            "billing": "31.47000",
            "billing_decimals": null,
            "billing_allocated_limited": null,
            "billing_called": null,
            "billing_rate": "31.47",
            "billing_scale_id": 16464,
            "billing_scale_name": "Example Funder Rate",
            "pay": 14.5,
            "pay_called": null,
            "pay_rate": "14.5",
            "pay_scale_id": 15955,
            "pay_scale_name": "Grade 4",
            "invoice_short_date": null,
            "invoice_week_date": null,
            "invoice_time_actual": "11:00-12:00",
            "invoice_time_sched": "11:00-12:00",
            "invoice_carer_name": "Sam Carer",
            "job_type_name": "HSS",
            "invoice_job_type_name": "HSS",
            "invoice_po": "Morning Visit",
            "invoice_carer_position": "Healthcare Assistant",
            "invoice_hrs": 1,
            "invoice_allocated_limited_hrs": null,
            "discount_percent": null,
            "discount_total": null,
            "invoice_split_array": "1 X 31.47 = 31.47",
            "invoice_split_array_pay": "1 X 14.5 = 14.5",
            "invoice_travel_metric": null,
            "invoice_travel_distance": 27.27,
            "invoice_travel_deduction": null,
            "invoice_travel_rate": null,
            "invoice_travel_value": null,
            "expense_description": null,
            "wtr_amount_value": 1.75,
            "wtr_amount_percent": 12.08,
            "comission_value": 0,
            "comission_total": 0,
            "employers_ni_value": null,
            "employers_ni_percent": null,
            "invoice_break_minutes": null,
            "invoice_break_paid": null,
            "billing_fiscal_month": "2024-10",
            "billing_week_ending": "2024-10-06"
        },
        {
            "type": "timesheet",
            "timesheet_id": 174660516,
            "expense_id": null,
            "log_date": "2024-09-16",
            "client_id": 437522,
            "carer_id": 224588,
            "sched_start": "2024-09-16 14:00:00",
            "sched_finish": "2024-09-16 14:30:00",
            "overnight": 0,
            "sched_duration": "00:30:00",
            "actual_start": "14:00:00",
            "actual_finish": "14:30:00",
            "actual_duration": "00:30:00",
            "payable_time": "00:30:00",
            "job_type_id": 29485,
            "billing": "22.03000",
            "billing_decimals": null,
            "billing_allocated_limited": null,
            "billing_called": null,
            "billing_rate": null,
            "billing_scale_id": 16464,
            "billing_scale_name": "Example Funder Rate",
            "pay": 8.7,
            "pay_called": null,
            "pay_rate": null,
            "pay_scale_id": 15955,
            "pay_scale_name": "Grade 4",
            "invoice_short_date": null,
            "invoice_week_date": null,
            "invoice_time_actual": "14:00-14:30",
            "invoice_time_sched": "14:00-14:30",
            "invoice_carer_name": "Sam Carer",
            "job_type_name": "HSS",
            "invoice_job_type_name": "HSS",
            "invoice_po": "Lunch Visit",
            "invoice_carer_position": "Healthcare Assistant",
            "invoice_hrs": 0.5,
            "invoice_allocated_limited_hrs": null,
            "discount_percent": null,
            "discount_total": null,
            "invoice_split_array": "0.5 X 0 = 22.03",
            "invoice_split_array_pay": "0.5 X 0 = 8.7",
            "invoice_travel_metric": null,
            "invoice_travel_distance": 47.08,
            "invoice_travel_deduction": null,
            "invoice_travel_rate": null,
            "invoice_travel_value": null,
            "expense_description": null,
            "wtr_amount_value": 1.05,
            "wtr_amount_percent": 12.08,
            "comission_value": 0,
            "comission_total": 0,
            "employers_ni_value": null,
            "employers_ni_percent": null,
            "invoice_break_minutes": null,
            "invoice_break_paid": null,
            "billing_fiscal_month": "2024-10",
            "billing_week_ending": "2024-10-06"
        }
    ]
}

            

QUERY PARAMETERS

Field Type Description
invoice_id integer (required) This is the id of the OneTouch invoice which details are to be fetched for (The id key from the GET invoices response )

Leave Reasons


#Endpoint for getting leave reasons 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/leave/reasons
                    
                

This simple endpoint allows for the fetching of leave reasons the OneTouch application. The leave reasons returned show the options that can be used in the other_reason field for leave submission.

https://api-uk.onetouchhealth.net/connect/c2/v1/leave/reasons

Supported Methods: GET




Response Example:
{
    "reasons": [
        {
            "id": 4,
            "name": "Rest Day"
        },
        {
            "id": 5,
            "name": "Leave Of Absense"
        },
        {
            "id": 186,
            "name": "Jury duty"
        },
        {
            "id": 421,
            "name": "Certified Sick"
        },
        {
            "id": 422,
            "name": "Uncertified Sick"
        },
        {
            "id": 2136,
            "name": "Compassionate Leave"
        },
        {
            "id": 2143,
            "name": "Parental Leave"
        }
    ]
}
                

Submit Leave


Endpoint for submitting carer leave into the OneTouch system 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/leave/submit
                    
                

This endpoint allows the submission of carer leave into the OneTouch system. All standard leave types are supported from holidays, sick leave, training and also custom leave types added to the system. There is also scope for optional comments and the specification as to whether the leave is paid or unpaid

When a leave request is submitted, visits which overlap with the leave, and only those overlapping, will be automatically unassigned from the carer taking leave. These visits will be removed from the carers schedule and will appear in the client schedule as unassigned calls.

Where a full day leave is specfied - all calls for that day(s) will be unassigned
Where morning leave is specfied any calls from 00:00 to 13:00 will be unassigned
Where evening leave is specfied any calls from 13:00 to 24:00 will be unassigned
Where specific times are specified, only calls in that timeframe will be unassigned

https://api-uk.onetouchhealth.net/connect/c2/v1/leave/submit

Supported Methods: POST



Request Body Example:
{
    "carer_id": 35372,
    "type": "holidays",
    "date_start": "2024-03-22",
    "date_finish": "2024-03-22",
    "comments": "Entering unpaid leave between 16:30-18:00",
    "time_type": "times",
    "time_start": "16:30",
    "time_finish": "18:00",
    "remuneration": "unpaid"
}

Response Example:
{
    "success": true,
    "message": "Leave entry succesfully submitted"
}
                

QUERY PARAMETERS

Field Type Description
carer_id integer (required without carer_external_id) This is the OneTouch id of the carer the leave is to be created for
carer_external_id string|integer (required without carer_id) This is external id of the carer the leave is to be created for
type string|integer (required) The type of leave being taken (holidays|sick|training|other)
other_reason string|integer (required with type other) This specifies the lower level reason when the other type is passed above. The list of reasons that can be passed here can be gotten from the leave reasons endpoint above.
date_start date yyyy-mm-dd (required) Denotes the start date of the leave request.
date_finish date yyyy-mm-dd (required) Denotes the end date of the leave request.
comments string (optional) Optional field allowing additional comments for the leave request.
time_type integer (required) Specifies the type of leave duration, including full day, half day (morning or evening), or specific times - accepted values are full_day|half_day_morning|half_day_evening|times
time_start integer (optional) indicating the specific start and finish times for the leave
time_finish integer (optional) indicating the specific start and finish times for the leave
remuneration string (required) Indicates the remuneration type for the leave. Accepted values are paid and unpaid.

Get Leave


Endpoint for fetching any leave entries for a carer for a given date 
GET https://api-uk.onetouchhealth.net/connect/c2/v1/leave/get?carer_id=54324&date=2024-08-10
                    
                

This endpoint gets any leave entries for a carer in the OneTouch system on a given date.

https://api-uk.onetouchhealth.net/connect/c2/v1/leave/get?carer_id=54324&date=2024-08-10

Supported Methods: GET




Response Example:
{
    "success": true,
    "leave": [
        {
            "id": "1664387",
            "created": "2024-04-17 10:09:29",
            "carer_id": 54324,
            "start_date": "2024-08-09",
            "end_date": "2024-08-19",
            "start_time": null,
            "end_time": null,
            "type": "full_day"
        }
    ]
}
                

QUERY PARAMETERS

Field Type Description
carer_id integer (required without carer_external_id) This is the OneTouch id of the carer the leave is to be fetched for
carer_external_id string|integer (required without carer_id) This is external id of the carer the leave is to be fetched for
date date yyyy-mm-dd (required) The date the leave is to be checked for in the format yyyy-mm-dd
location string|integer (optional|required) The desired location area in int or string format.
If a master key has been issued this parameter is required! See possible values in the get locations endpoint.

Cancel Leave


#Endpoint for caceling leave.
POST https://api-uk.onetouchhealth.net/connect/c2/v1/leave/cancel
                    
                

This endpoint is used to cancel leave records.

https://api-uk.onetouchhealth.net/connect/c2/v1/leave/cancel

Supported Methods: POST




Response Example:
{
    "success": true,
    "message": "Leave successfully deleted"
}
                

QUERY PARAMETERS

Field Type Description
id integer (required) This is a unique identifier for the leave record you wish to cancel

View Tags


#Endpoint for viewing all tags possible tags to assign to a carer record
GET https://api-uk.onetouchhealth.net/connect/c2/v1/tags/view/all
                    
                

This endpoint can be used to view all tags that can be assigned to a carer record

https://api-uk.onetouchhealth.net/connect/c2/v1/tags/view/all

Supported Methods: GET




Response Example :
[
    {
        "id" : 100,
        "created": "2020-08-04 14:12:22",
        "added": "2020-08-04 14:12:22",
        "name": "Irish-speaker"
    },
    {
        "id" : 101,
        "created": "2019-04-02 12:18:55",
        "added": "2020-08-07 11:20:17",
        "name": "Adaptable"
    },
    {
        "id" : 102,
        "created": "2017-04-05 11:39:49",
        "added": "2021-03-05 11:08:11",
        "name": "Mood Problems"
    },
    {
        "id" : 103,
        "created": "2016-08-24 12:04:31",
        "added": "2022-01-10 14:49:05",
        "name": "Priority 1"
    },
    {
        "id" : 104,
        "created": "2019-07-01 17:36:47",
        "added": "2022-01-10 14:49:06",
        "name": "High Priorty"
    },
    {
        "id" : 105,
        "created": "2014-09-18 09:41:46",
        "added": "2023-02-27 22:50:12",
        "name": "Manual Handling"
    },
    {
        "id" : 106,
        "created": "2014-09-17 10:38:42",
        "added": "2023-02-27 23:37:57",
        "name": "Cpr"
    }
]
  
                

View Tags


#Endpoint for viewing the tags assigned to a carer record
GET https://api-uk.onetouchhealth.net/connect/c2/v1/tags/view/carer/{external_id}
                    
                

This endpoint can be used to view the tags assigned to given carer

https://api-uk.onetouchhealth.net/connect/c2/v1/tags/view/carer/{external_id}

Supported Methods: GET




Response Example :
[
    {
        "id" : 100,
        "created": "2020-08-04 14:12:22",
        "added": "2020-08-04 14:12:22",
        "name": "Irish-speaker"
    },
    {
        "id" : 101,
        "created": "2019-04-02 12:18:55",
        "added": "2020-08-07 11:20:17",
        "name": "Adaptable"
    },
    {
        "id" : 102,
        "created": "2017-04-05 11:39:49",
        "added": "2021-03-05 11:08:11",
        "name": "Mood Problems"
    },
    {
        "id" : 103,
        "created": "2016-08-24 12:04:31",
        "added": "2022-01-10 14:49:05",
        "name": "Priority 1"
    },
    {
        "id" : 104,
        "created": "2019-07-01 17:36:47",
        "added": "2022-01-10 14:49:06",
        "name": "High Priorty"
    },
    {
        "id" : 105,
        "created": "2014-09-18 09:41:46",
        "added": "2023-02-27 22:50:12",
        "name": "Manual Handling"
    },
    {
        "id" : 106,
        "created": "2014-09-17 10:38:42",
        "added": "2023-02-27 23:37:57",
        "name": "Cpr"
    }
]
        
                

Create Tag


#Endpoint for adding tags which can in turn be added to carer records
POST https://api-uk.onetouchhealth.net/connect/c2/v1/tags/create
                    
                

This endpoint is used to add tags to the system which can be later added carer records.

Note: If the tag already exists an additional tag will not be created

https://api-uk.onetouchhealth.net/connect/c2/v1/tags/create

Supported Methods: POST



Request Body Example:
{
    "name" : "New Tag",
    "category" : "General",
    "color" : "blue"
}

Response Example :
{
    "success": true,
    "message": "Tag successfully updated"
}
  
                

QUERY PARAMETERS

Field Type Description
name alphanumeric (required) This is the name of the tag you wish to add
category string (required) This is the tag category. Accepted parameters: General|Schedule|Alert
color string (required) The tag color. Accepted parameters: green|orange|red|white|blue|dark-blue

Assign/Remove Tags


            #Endpoint for assigning and removing tags to and from a carer profile 
            POST https://api-uk.onetouchhealth.net/connect/c2/v1/tags/assign/carer/{external_id}
                                
                            

This endpoint allows for the assigning of and removing of tags from a given carer profile

https://api-uk.onetouchhealth.net/connect/c2/v1/tags/assign/carer/{external_id}

Supported Methods: POST



            Request Body Example:
            {
                "tags_to_assign": [132, 133, 123],
                "tags_to_remove": [1222, 3333]
            }

            Response Example:
            {
                "success": true,
                "tags_assigned": 3,
                "tags_removed": 2
            }
                

QUERY PARAMETERS

Field Type Description
tags_to_assign Array (optional) This is an array of valid tagId's which are to be added to the carer profile
tags_to_remove Array (optional) This is an array of valid tagId's which are to be removed to the carer profile

Get timesheet by batch


                #Endpoint for assigning and removing tags to and from a carer profile 
                GET https://api-uk.onetouchhealth.net/connect/c2/v1/batch/timesheets/{batch}
                                
                            

This endpoint allows to get the colleption of timesheets group by batch

https://api-uk.onetouchhealth.net/connect/c2/v1/batch/timesheets/{batch}

Supported Methods: GET



                        

                        Response Example:
                        [
                            {
                                "billing_scale_name": "New pay 2021",
                                "timesheet_id": 204467993,
                                "timesheet_custom_id": 2263592,
                                "due_in": "2025-03-08 10:00:00",
                                "due_out": "2025-03-08 12:00:00",
                                "duration": "02:00:00",
                                "duration_decimal": 2,
                                "billing_rate": [
                                    25
                                ],
                                "total_billing": 50,
                                "council_id": "OF8156 Test",
                                "client_name": "David Client",
                                "client_id": 41087,
                                "carer_id": 26485,
                                "carer_name": "Laura Carer",
                                "paying_rate": [
                                    0
                                ],
                                "total_pay": 0,
                                "confirmed_date": "2025-04-11 14:05:38",
                                "batch_no": "T0002",
                                "invoicee_name": null,
                                "incoicee_origin_code": "MMOriginCodeTestYes",
                                "incoicee_code": "MMContactCodeTestYes",
                                "invoicee_email": "invoices@example.com",
                                "jobtype_name": "Support Work",
                                "jobtype_export_name": null
                            },
                            {
                                "billing_scale_name": "New pay 2021",
                                "timesheet_id": 204468118,
                                "timesheet_custom_id": 2263593,
                                "due_in": "2025-03-08 07:30:00",
                                "due_out": "2025-03-08 09:05:00",
                                "duration": "01:35:00",
                                "duration_decimal": 1.5833333333333335,
                                "billing_rate": [
                                    25
                                ],
                                "total_billing": 39.5833,
                                "council_id": "OF8156 Test",
                                "client_name": "David Client",
                                "client_id": 41087,
                                "carer_id": 26485,
                                "carer_name": "Laura Carer",
                                "paying_rate": [
                                    0
                                ],
                                "total_pay": 0,
                                "confirmed_date": "2025-04-11 14:05:38",
                                "batch_no": "T0002",
                                "invoicee_name": null,
                                "incoicee_origin_code": "MMOriginCodeTestYes",
                                "incoicee_code": "MMContactCodeTestYes",
                                "invoicee_email": "invoices@example.com",
                                "jobtype_name": "Support Work",
                                "jobtype_export_name": null
                            }
                        ]
                

Get holidays by batch


                #Endpoint for getting the holiday payments of a batch 
                GET https://api-uk.onetouchhealth.net/connect/c2/v1/batch/holidays/{batch}
                                
                            

This endpoint returns the holiday payments tagged to a batch. {batch} is the batch_identifier used when the batch was created. An unknown batch returns an empty array.

https://api-uk.onetouchhealth.net/connect/c2/v1/batch/holidays/{batch}

Supported Methods: GET


                        Response Example:
                        [
                            {
                                "holiday_id": 4840503,
                                "batch": "HOL-2026-10",
                                "created": "2026-10-01 09:30:00",
                                "payment_date": "2026-10-15",
                                "payment_value": 290.08,
                                "days_value": 2,
                                "hours_value": 16,
                                "average_rate": 18.13,
                                "comments": null,
                                "carer_id": 1234,
                                "carer_external_id": "64992",
                                "carer_name": "Jane Doe",
                                "lockDown": null,
                                "lockdownPayroll": null
                            }
                        ]
                

Get expenses by batch


                #Endpoint for assigning and removing tags to and from a carer profile 
                GET https://api-uk.onetouchhealth.net/connect/c2/v1/batch/expenses/{batch}
                                
                            

This endpoint allows to get the colleption of expenses group by batch

https://api-uk.onetouchhealth.net/connect/c2/v1/batch/expenses/{batch}

Supported Methods: GET

Create Batch


                #Endpoint for creating a batch (timesheets, holidays, expenses, ssp) 
                POST https://api-uk.onetouchhealth.net/connect/c2/v1/batch
                                
                            

This endpoint creates a batch and tags the eligible records with it. Records are eligible when they are unbatched, in your company and location, and dated between today minus 180 days and cut_date.

https://api-uk.onetouchhealth.net/connect/c2/v1/batch

Supported Methods: POST



                        Request Body Example (timesheets):
                        {
                            "type": "timesheets",
                            "by": "created",
                            "cut_date": "2025-04-01",
                            "batch_identifier": "T0002",
                            "carer_external_id": ["64992"],
                            "timesheet_id": [1001, 1002],
                            "invoicee_code": ["HSE-DUB"],
                            "client_external_id": ["DONEG004"]
                        }

                        Response Example (timesheets):
                        {
                            "success": true,
                            "batchedCount": 151,
                            "customIdsGenerated": 148
                        }

                        Request Body Example (holidays):
                        {
                            "type": "holidays",
                            "cut_date": "2026-10-31 23:59:00",
                            "batch_identifier": "HOL-2026-10",
                            "carer_external_id": ["64992", "70011"],
                            "holiday_id": [4840503, 4840511]
                        }

                        Response Example (holidays, expenses, ssp):
                        {
                            "success": true,
                            "updated": 3
                        }

                        Error Examples (HTTP 200, no "success" key):
                        { "error": "Batch identifier already exists." }
                        { "error": "No eligible holiday payments found for batching." }
                

QUERY PARAMETERS

Field Type Description
type options (required) One of timesheets, holidays, expenses, ssp. The chosen one decides what is batched.
cut_date date (required) This is the date until you need to batch, from that day on past will be batching (yyyy-mm-dd or yyyy-mm-dd hh:mm:ss)
batch_identifier String (required) This will be the name of the batch.
by options (required for timesheets, expenses, ssp; ignored for holidays) One of created, confirmed, lockdown. Chooses the date the window is applied to.
carer_external_id Array of strings (optional, timesheets and holidays) Only records of carers whose external ID (carer.carerId) is in the list are batched. Values must be strings. Max 5000. Ignored for expenses and ssp.
timesheet_id Array of integers (optional, timesheets only) Only these timesheets are batched. Rejected with 422 for holidays. Max 5000.
invoicee_code Array of strings (optional, timesheets only) Only timesheets whose invoicee code (as reported by the batch timesheets endpoint) is in the list are batched. Rejected with 422 for holidays. Max 5000.
client_external_id Array of strings (optional, timesheets only) Only timesheets of clients whose external ID (client.residentId, as reported by the batch timesheets endpoint) is in the list are batched. Clients are looked up in your company and location (company-wide for master tokens); deleted clients are not matched. Each ID is matched on its own; IDs that match no client are ignored without an error, so check batchedCount. If no ID matches, nothing is batched and the "No eligible" error is returned. Rejected with 422 for holidays. Max 5000.
holiday_id Array of integers (optional, holidays only) Only holiday payments whose holiday_id (the value returned by Get holidays by batch) is in the list are batched. One holiday_id can select several payments. Rejected with 422 for timesheets. Max 5000.

Lockdown


                #Endpoint for lockdown expenses, holidays, timesheets 
                POST https://api-uk.onetouchhealth.net/connect/c2/v1/batch/lockdown
                                
                            

This endpoint allows for locking down

https://api-uk.onetouchhealth.net/connect/c2/v1/batch/lockdown

Supported Methods: POST



                        Request Body Example:
                        {
                            "type": "timesheets",
                            "lockdown": "2025-06-25 15:00:00",
                            "payrollLockdown": "2025-06-25 15:00:00",
                            "batch_identifier": "T0003",
                            "invoiceId": 1
                        }

                        Response Example:
                        {
                            "success": true
                        }
                

QUERY PARAMETERS

Field Type Description
type options (required) Only can be timesheets, timesheetId, timesheetCustomId, holidays, expenses, expenseId depens the chosen one will batch accordingly
lockdown timestamp (yyyy-mm-dd hh:ii:ss) (required) This is the date until you need to lockdown
payrollLockdown timestamp (yyyy-mm-dd hh:ii:ss) (required) This is the date until you need to lockdown
invoiceId Integer (required) This will be the invoicee identifier (Only for the timesheets ones).
batch_identifier String (required) This will be the name of the batch. (Only for the timesheets, holidays, expenses type options)
timesheet_Id Integer (required) This will be the timesheet identifier (Only for timesheetId, timesheetCustomId options).
expense_id Integer (required) This will be the expense identifier. (Only for expenseId option)