Skip to content

Download as GPX

GET
/api/v1/activities/{activityId}/gpx
curl --request GET \
--url http://localhost:8080/api/v1/activities/activity-9756441741/gpx \
--header 'Authorization: Bearer <token>'

Only activities recorded with GPS data can be exported. Check hasGpx on the activity first

activityId
required
string

The prefixed activity identifier, activity- included.

The route as a GPX 1.1 document.

Media typeapplication/gpx+xml
string
Content-Disposition
string

The Authorization header was missing, malformed, or did not match the configured key.

Media typeapplication/json

Every error uses this shape.

object
error
required

A stable, machine readable code.

string
Allowed values: invalid_token missing_file unsupported_media_type unsupported_file_type file_too_large import_mode_not_files gpx_not_available not_found method_not_allowed bad_request forbidden internal_error
message
required
string
Examples
ExampleinvalidToken
{
"error": "invalid_token",
"message": "A valid API token is required. Send it in the Authorization header as a Bearer token."
}
WWW-Authenticate
string

The activity does not exist, or it exists but has no GPS data.

Media typeapplication/json

Every error uses this shape.

object
error
required

A stable, machine readable code.

string
Allowed values: invalid_token missing_file unsupported_media_type unsupported_file_type file_too_large import_mode_not_files gpx_not_available not_found method_not_allowed bad_request forbidden internal_error
message
required
string
Examples

No such activity

{
"error": "not_found",
"message": "Activity \"activity-1\" not found"
}