Skip to main content

Overview

Locations represent phone numbers with AI answering agents. Each location:
  • Belongs to an organization
  • Has its own phone number (auto-provisioned when you provide an area code)
  • Receives and processes calls independently
  • Can be customized with unique AI settings
Many organizations have multiple locations - for example, a franchise with different store locations, or a business with department-specific phone numbers.

Base URL

Playground: https://playground.answeringagent.com/api/v1 Production: https://answeringagent.com/api/v1 All requests must include the X-API-KEY header containing a valid API key.

Resource Structure

The Locations API uses a flat structure for easy management across all your customer organizations:

1. List Locations

List all locations for the authenticated reseller, with optional organization filtering.

Query Parameters

integer
Filter locations by organization ID

Example

Success Response


2. Create Location

Create a new location for an organization.

Query Parameters

integer
Organization to create the location for

Request Fields

Either organization_id query parameter or organization_id in request body is required.

Example

Success Response


3. Get Location

Example

Success Response


4. Update Location

Request Fields

Example

Success Response


5. Delete Location

Example

Success Response


Phone Number Provisioning

When creating a location:
  • With area_code: System attempts to auto-provision a phone number from Twilio
  • Without area_code: Location created with status: "pending", phone number can be assigned later
  • Status: "active" when phone number assigned, "pending" when awaiting assignment

Error Codes


Migration from Legacy API

If migrating from the nested /users/{external_id}/locations endpoints:
  • Old: GET /users/{external_id}/locations
  • New: GET /locations?organization_id={org_id}
  • Old: POST /users/{external_id}/locations
  • New: POST /locations?organization_id={org_id}
The flat structure provides better performance and cleaner resource management across all your customers.