POST
/
bulk-urls
/
export
Export Results
curl --request POST \
  --url https://jmpy.me/api/v1/bulk-urls/export \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "results": {},
  "format": "<string>"
}
'
Converts the output of a bulk creation operation into a downloadable file. This is useful for saving records of batch operations, especially for campaigns where you need to track which alias maps to which original URL.

Request

Body Parameters

results
object
required
The results object returned from the /bulk-urls/create endpoint.
format
string
default:"csv"
The desired export format. Values: csv or json.

Response

Returns a file stream with the exported data. Content-Type: text/csv or application/json Content-Disposition: attachment; filename="bulk_urls_results.csv" (or .json)

Request Example

curl -X POST "https://jmpy.me/api/v1/bulk-urls/export" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "format": "csv",
    "results": {
      "created": [...],
      "failed": [...]
    }
  }' > results.csv