Last updated
Maps API
The Maps API lets your own systems read your Deep Woods maps and their locations, for example to sync them into an app or a report. It's read-only: change locations in the dashboard or by importing a CSV file.
Create an API key
- Open any map and go to its Embed & API tab.
- Under API keys, enter what the key is for, such as "Inventory sync", and click Create key.
- Copy the key now. It's shown only once.
A key reads every map in your organization. Keep it secret: use it from your server, never in a web page. If a key is lost or leaked, click Revoke next to it and create another; requests with a revoked key fail at once. Only members who can create maps can manage keys.
Make a request
Send the key as a Bearer token:
curl -H "Authorization: Bearer dwm_YOUR_KEY" https://deepwoods.io/api/v1/maps
A missing, wrong, or revoked key gets 401. A map that isn't in the key's organization gets 404.
Endpoints
List maps
GET /api/v1/maps
{
"items": [
{
"id": "…",
"name": "Our stores",
"slug": "our-stores",
"publicKey": "map_…",
"status": "published",
"liveState": "live",
"locationCount": 42,
"settings": { "header": "Our stores", "style": "streets-v12" },
"updatedAt": "2026-11-12T15:04:05Z"
}
]
}
liveState is live when the map shows on your sites, draft when it isn't published, needs_subscription or needs_mapbox_account when it's published but something is missing.
Get one map
GET /api/v1/maps/{mapId}
The same fields as one item of the list.
List a map's locations
GET /api/v1/maps/{mapId}/locations
| Query | Default | Notes |
|---|---|---|
page | 1 | Page number. |
pageSize | 500 | Up to 1,000. |
updatedSince | — | Only locations changed at or after this time (ISO 8601, for example 2026-11-01T00:00:00Z). |
{
"items": [
{
"id": "…",
"name": "Main Street Store",
"status": "published",
"lat": 39.7817,
"lng": -89.6501,
"coordinatesHidden": false,
"address": "123 Main St",
"city": "Springfield",
"state": "IL",
"postalCode": "62701",
"country": "United States",
"phone": "+1 217 555 0100",
"email": null,
"url": "https://example.com/",
"description": null,
"tags": ["retail", "pickup"],
"externalId": "store-001",
"operatingStatus": "open",
"hours": {
"timeZone": "America/Chicago",
"week": { "mon": [["09:00", "17:00"]], "tue": [["09:00", "17:00"]], "wed": [], "thu": [], "fri": [], "sat": [], "sun": [] },
"exceptions": [{ "date": "2026-12-25", "ranges": [] }]
},
"bookingUrl": null,
"imagePath": null,
"imageUrl": null,
"fields": { "parking": "Free" },
"updatedAt": "2026-11-12T15:04:05Z"
}
],
"total": 42,
"page": 1,
"pageSize": 500
}
Locations come oldest change first, and include hidden ones (status: "draft"). A location whose position was found by the Deep Woods Mapbox account has coordinatesHidden: true and lat and lng set to null: Mapbox's terms don't allow those coordinates to be passed on. Its address is included as usual. To keep a copy in sync, save the newest updatedAt you've seen and pass it as updatedSince next time. externalId is the Your ID from your imports.
operatingStatus is open, temporarily_closed or coming_soon. hours is null when the location shows no hours; otherwise its times are 24-hour HH:MM in its timeZone, a day with no ranges is closed, a range ending at or before its start runs past midnight, and each exception replaces that date's usual hours. imageUrl is the photo's public address. fields holds the values of the map's custom fields, by key.
Embed a map on your website
Publish a Deep Woods map and add it to any website with the script embed, or with the iframe on site builders that block scripts.
Maps analytics
See how visitors use your Deep Woods map, from views and searches to each location's directions, calls, website visits and bookings, counted without cookies.