Skip to content
SynupAPI
Get an API key
GETapi.synup.com/api/v4/locations/download

Download locations

Generates a CSV export of the selected locations and returns a download URL. The export runs asynchronously — the response confirms the request was accepted, and the user is notified by email when the CSV is ready.

Use selectionType to choose between all matching locations (ALL_ITEMS) or an explicit set (SELECTED_ITEMS with locationIds). The filterInput parameter accepts the same JSON-encoded filter object as Filter locations.

Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Parameters

Query

NameTypeRequiredDescription
filterInputstringoptionalJSON-encoded filter object. Defaults to an empty filter (all locations).
selectionTypestringoptionalWhether to export all matching locations or an explicit selection.
locationIdsarrayoptionalLocation IDs to export when selectionType is SELECTED_ITEMS.
emailsarrayoptionalEmail addresses to notify when the CSV is ready.
archivedbooleanoptionalFilter by archived state (true/false).
approvedbooleanoptionalFilter by approved state (true/false).
archivalScheduledAtbooleanoptionalReturn only locations scheduled for archival.

Headers

NameTypeRequiredDescription
Synup-VersionstringrequiredAPI version date (YYYY-MM-DD).

Request

Request
curl -X GET 'https://api.synup.com/api/v4/locations/download?filterInput=&selectionType=&locationIds=&emails=&archived=&approved=&archivalScheduledAt=' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Responses

StatusDescription
200Successful response
401Unauthorized - Invalid or missing API key
Example response (generated from the schema)
{
  "data": {
    "downloadLocations": {
      "success": true,
      "csvUrl": "string"
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.downloadLocationsobjectoptional
data.downloadLocations.successbooleanoptionalWhether the export request was accepted.
data.downloadLocations.csvUrlstringoptionalURL of the CSV file (populated when the export completes).