---
title: "Explicitly map one assigned Sales Coach visit address"
description: "Admin-only, flag-gated action. May make one billable Google Geocoding request. Assignment saves never geocode."
---

> 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}/map-address`

Admin-only, flag-gated action. May make one billable Google Geocoding request. Assignment saves never geocode.

## Authentication

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

## Path parameters

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

## Request body

_Required._

- `source` (`post/api/field-sales/appointments/id/map-address.source`; string, required)
  - one of `"contact"`, `"custom"`
- `address` (`post/api/field-sales/appointments/id/map-address.address`; object, optional) — Street
- `retry` (`post/api/field-sales/appointments/id/map-address.retry`; boolean, optional) — Explicitly retry a non-ready mapping for the same address; may make a billable geocoding request

## Example request

```json
{
  "source": "contact",
  "address": {},
  "retry": true
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/field-sales/appointments/<id>/map-address' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source": "contact",
  "address": {},
  "retry": true
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/field-sales/appointments/<id>/map-address';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({source: 'contact', address: {}, retry: true})
};

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>/map-address"

payload = {
    "source": "contact",
    "address": {},
    "retry": True
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Address mapping and readiness

### 400

Incomplete address or street number without a street name

### 403

Flag disabled or workspace admin required

### 404

Assigned visit not found

### 503

Geocoding unavailable; no mapping saved


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