---
title: "Record a rep-initiated device-location check-in for one assigned visit"
description: "Checks a fresh phone location against the admin-mapped address for this visit. This is device-reported proximity, not tamper-proof proof of attendance; no background tracking occurs."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Conversations

`POST /api/field-sales/appointments/{id}/checkin`

Checks a fresh phone location against the admin-mapped address for this visit. This is device-reported proximity, not tamper-proof proof of attendance; no background tracking occurs.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `id` (`post/api/field-sales/appointments/id/checkin.path.id`; string, required)
  - format `uuid`

## Request body

_Required._

- `client_attempt_id` (`post/api/field-sales/appointments/id/checkin.client_attempt_id`; string, required)
  - format `uuid`
- `latitude` (`post/api/field-sales/appointments/id/checkin.latitude`; number, required)
- `longitude` (`post/api/field-sales/appointments/id/checkin.longitude`; number, required)
- `accuracy_meters` (`post/api/field-sales/appointments/id/checkin.accuracy_meters`; number, required)
- `captured_at` (`post/api/field-sales/appointments/id/checkin.captured_at`; string, required)
  - format `date-time`

## Example request

```json
{
  "client_attempt_id": "83e7d76d-44ca-4bb0-9fdf-8c917c92342d",
  "latitude": 0,
  "longitude": 0,
  "accuracy_meters": 0,
  "captured_at": "2019-08-24T14:15:22Z"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/field-sales/appointments/<id>/checkin' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_attempt_id": "83e7d76d-44ca-4bb0-9fdf-8c917c92342d",
  "latitude": 0,
  "longitude": 0,
  "accuracy_meters": 0,
  "captured_at": "2019-08-24T14:15:22Z"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/field-sales/appointments/<id>/checkin';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    client_attempt_id: '83e7d76d-44ca-4bb0-9fdf-8c917c92342d',
    latitude: 0,
    longitude: 0,
    accuracy_meters: 0,
    captured_at: '2019-08-24T14:15:22Z'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/field-sales/appointments/<id>/checkin"

payload = {
    "client_attempt_id": "83e7d76d-44ca-4bb0-9fdf-8c917c92342d",
    "latitude": 0,
    "longitude": 0,
    "accuracy_meters": 0,
    "captured_at": "2019-08-24T14:15:22Z"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Stored verified or unverified result

### 400

Invalid or stale location sample

### 403

Feature disabled or visit not assigned to rep

### 404

Appointment not found in workspace


Source: https://developer.channelautomations.com/api/post-api-field-sales-appointments-id-checkin/index.md
