---
title: "Test Google Address Validation from Flow Builder"
description: "Runs a one-off Google Address Validation request through Trigger.dev so the test uses the same server-side environment variables as production workflow execution."
---

> 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 › Queue

`POST /api/proxy/queue/address-validation`

Runs a one-off Google Address Validation request through Trigger.dev so the test uses the same server-side environment variables as production workflow execution.

## Authentication

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

## Request body

_Required._

- `address` (`post/api/proxy/queue/address-validation.address`; string, required) — Address string to validate.
- `regionCode` (`post/api/proxy/queue/address-validation.regionCode`; string, optional)
  - example `"US"`
- `enableUspsCass` (`post/api/proxy/queue/address-validation.enableUspsCass`; boolean, optional) — Whether to request USPS CASS validation for US/PR.

## Example request

```json
{
  "address": "string",
  "regionCode": "US",
  "enableUspsCass": true
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.channelautomation.com/api/proxy/queue/address-validation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "string",
  "regionCode": "US",
  "enableUspsCass": true
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/proxy/queue/address-validation';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({address: 'string', regionCode: 'US', enableUspsCass: 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/proxy/queue/address-validation"

payload = {
    "address": "string",
    "regionCode": "US",
    "enableUspsCass": True
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Address validation completed.

### 400

Missing or invalid address.

### 500

Server error.

### 502

Trigger.dev or Google validation failed.

### 504

Timed out waiting for Trigger.dev.


Source: https://developer.channelautomations.com/api/post-api-proxy-queue-address-validation/index.md
