API documentation | API docs for agents | OpenAPI 3.1
POST /api/v1/locations
ark.create_location
Creates a visible team-owned location and address.
- Availability
- Core preview
- Scopes
locations:write- ARK permissions
canCreateLocation- Team visibility
- Required and enforced
- Idempotency-Key
- Required for this write
- Approval
- No MCP approval on REST API-token calls
- Rate limit
- API credential and organization budgets
Parameters
Idempotency-Keyheaderstringrequired- Required for external write operations. Reuse the same key only for exact retries of the same request body.
- min length: 1; max length: 200
Request body
teamIdstringrequiredformat: uuid
customerIdstring | nullformat: uuid
namestringrequiredmin length: 1; max length: 200
companystring | nullmax length: 200
addressstring | nullmax length: 500
address2string | nullmax length: 500
citystring | nullmax length: 200
statestring | nullmax length: 20
zipstring | nullmax length: 30
phonestring | nullmax length: 50
emailstring | nullmax length: 500
notesstring | nullmax length: 5000
internalNotesstring | nullmax length: 5000
latitudenumber | nulllongitudenumber | nulltimezoneIdstringrequiredmin length: 1; max length: 100
countrystringone of: USA, CAN, MEX; default: "USA"
Example request
Shell
curl -X POST 'https://arktms.com/api/v1/locations' \
-H "Authorization: Bearer $ARK_API_TOKEN" \
-H "Idempotency-Key: <unique-key>" \
-H "Content-Type: application/json" \
-d '{
"teamId": "<teamId>",
"name": "<name>",
"timezoneId": "<timezoneId>"
}'Success response
Created location
objectstringrequiredone of: api_response
okbooleanrequiredone of: true
api_versionstringrequiredone of: 2026-05-31
request_idstringrequireddataobjectrequireddata.idstringrequiredformat: uuid
data.teamIdstring | nullrequiredformat: uuid
data.namestring | nullrequireddata.notesstring | nullrequireddata.internalNotesstring | nullrequireddata.addressobjectrequireddata.customerobject | nullrequireddata.createdAtstringrequiredformat: date-time
Errors
HTTP 400- Invalid request
HTTP 401- Authentication required
HTTP 403- Permission, scope, team, or entitlement denied