---
title: "Create Location"
method: POST
path: "/v2/tms-api/locations"
tags: ["TMS API", "TMS API - Locations"]
---

# Create Location

`POST /v2/tms-api/locations`

## Request

- Base URL: `https://api.mentium.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mentium.io/v2/tms-api/locations`
- Auth: none declared

Create a new location.

## Headers

- `X-API-Key` string, nullable: API key for authentication

## Request body

- LocationCreate: Schema for creating a location. Required: country defaults to US when omitted. State is required unless it can be inferred from coordinates. Geocoding Requirement: Must additionally provide EITHER: - (latitude + longitude) for direct coordinates (state can be inferred), OR - (postal_code) for address-based geocoding (with state + country) Without geocoding data, the location cannot be used for lane matching and carrier recommendations.
  - `external_reference_id` string, required: Unique identifier from your system
  - `name` string, nullable: Location name
  - `address_line1` string, nullable: Street address line 1
  - `address_line2` string, nullable: Street address line 2
  - `city` string, nullable: City
  - `state` string, nullable: State/Province
  - `postal_code` string, nullable: Postal/ZIP code
  - `country` string, nullable: Country
  - `latitude` number, nullable: Latitude
  - `longitude` number, nullable: Longitude
  - `iana_timezone` string, nullable: IANA timezone for the facility (e.g., 'America/Chicago'). Used to render stop times in the facility's local TZ.
  - `email` string, nullable: Contact email
  - `phone_number` string, nullable: Contact phone number
  - `weekday_open_hours` string, nullable: Weekday opening hours (HH:MM)
  - `weekday_close_hours` string, nullable: Weekday closing hours (HH:MM)
  - `weekend_open_hours` string, nullable: Weekend opening hours (HH:MM)
  - `weekend_close_hours` string, nullable: Weekend closing hours (HH:MM)
  - `internal_notes` string, nullable: Internal notes about the location

## Response `201`

Successful Response

- LocationResponse: Response schema for a location.
  - `id` string, required: Internal Mentium ID
  - `external_reference_id` string, required: External reference ID from your system
  - `name` string, nullable: Location name
  - `address_line1` string, nullable: Street address line 1
  - `address_line2` string, nullable: Street address line 2
  - `city` string, nullable: City
  - `state` string, nullable: State/Province
  - `postal_code` string, nullable: Postal/ZIP code
  - `country` string, nullable: Country
  - `latitude` number, nullable: Latitude
  - `longitude` number, nullable: Longitude
  - `iana_timezone` string, nullable: IANA timezone for the facility (e.g., 'America/Chicago'). Used to render stop times in the facility's local TZ.
  - `email` string, nullable: Contact email
  - `phone_number` string, nullable: Contact phone number
  - `weekday_open_hours` string, nullable: Weekday opening hours
  - `weekday_close_hours` string, nullable: Weekday closing hours
  - `weekend_open_hours` string, nullable: Weekend opening hours
  - `weekend_close_hours` string, nullable: Weekend closing hours
  - `internal_notes` string, nullable: Internal notes
  - `created_at` string, date-time, required: Creation timestamp
  - `updated_at` string, date-time, required: Last update timestamp

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mentium/apis/mentium-api.md) - [All operations](https://skmtc.dev/mentium/apis/mentium-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mentium/apis/mentium-api/revisions/b4ed8e59432e?raw)
