REST API
For your server: build links, have Revva host your roadbooks and read your stats.
Overview
- Links Build links server-side with
POST /v1/links, your public key added, with their short form. - Hosted roadbooks Have Revva host your roadbooks with
/v1/roadbooks, when you have no GPX file online. - Events Publish your events on Revva's agenda with
/v1/events, reviewed before riders see them. - Stats Read your stats day by day with
GET /v1/stats.
Base URL https://api.revva.app/v1. JSON in and out. Your secret key goes in Authorization: Bearer, server-side only. The full schema is available as OpenAPI 3.1.
POST/v1/links Reference
Checks the source as a /go link would and returns the link with your public key (url), then its short form revva.app/go/<code> (shortUrl), which opens the same page. The same body always gives the same links.
# Build a link with your key curl https://api.revva.app/v1/links \ -H "Authorization: Bearer $REVVA_SECRET_KEY" \ -H "Content-Type: application/json" \ -d '{ "gpxUrl": "https://your-site.com/aravis.gpx", "title": "Tour des Aravis", "ref": "aravis-2026" }'
{
"url": "https://revva.app/go?gpx=…&key=pk_live_…",
"shortUrl": "https://revva.app/go/k7Hq2xP"
}Build a link by hand
https://revva.app/go? followed by a single source, then options. An unknown parameter is ignored; an invalid link shows a clear explanation, never a blank page.
| Parameter | Value | Example |
|---|---|---|
| gpx source | Public https URL of a GPX file, 5 MB at most. Track (trk) takes priority over route (rte). Read again every 24 hours. | gpx=https://your-site.com/aravis.gpx |
| via source | 2 to 25 points lat,lng[,Name] separated by ;. A named point becomes an announced waypoint. | via=45.9,6.4;45.88,6.6,Col des Aravis |
| to source | A destination lat,lng, routed from the rider’s position. | to=45.064,6.408 |
| q source | A place to search, cut at 120 characters. | q=Col du Galibier |
| roadbook source | Id of a public or link-shared roadbook, with an optional day. | roadbook=6f1c…&day=2 |
| event source | Id of a club ride, with an optional day. | event=0b7a… |
| title | Plain text, cut at 80 characters. | title=Tour des Aravis |
| ref | Your own id, [A-Za-z0-9._-], 64 characters at most. Carried into your stats. | ref=newsletter-june |
| lang | Page language: fr, en, pt-br… | lang=en |
| key | Your public key: your name and logo on the page and in the app, your stats. | key=pk_live_7Fq2… |
Hosted roadbooks
No GPX file online? Send Revva the track or the waypoints. Revva stores the roadbook and sends back a revva.app/go link ready to share, with your name on it. You then find it again by its id, or by your ref with GET /v1/roadbooks?ref=, to rename or delete it.
POST/v1/roadbooks Reference
Creates a hosted roadbook from a GPX or from waypoints. A GPX track keeps its exact line; guidance is computed once, then shared by every rider.
# Create a roadbook from a GPX you host curl https://api.revva.app/v1/roadbooks \ -H "Authorization: Bearer $REVVA_SECRET_KEY" \ -H "Content-Type: application/json" \ -d '{ "gpxUrl": "https://your-site.com/aravis.gpx", "title": "Tour des Aravis", "ref": "aravis-2026" }'
{
"id": "6f1c2d3e-…",
"url": "https://revva.app/go?roadbook=6f1c…&key=…",
"title": "Tour des Aravis",
"distanceM": 101685,
"durationS": 10039,
"elevationGainM": 1500,
"approximate": false,
"ref": "aravis-2026",
"createdAt": "2026-10-20T08:30:00.000Z"
}Manage your roadbooks
List your roadbooks, filter the list by your ref (?ref=) or find one by its id, rename or delete it. In the reference
Events
Publish your organizers' events on Revva's agenda. Each event is reviewed before riders see it, unless Revva trusts your app. It starts pending, then becomes approved, or rejected with a moderationNote saying why. Send your own ref and a retry creates nothing twice: you get the same event back with a 200. Changing the date, the place or the link of an approved event sends it back to review; a text edit stays live and is flagged for review.
POST/v1/events Reference
Creates an event with a title, a start with its offset, a meeting point and a registration link. The answer carries its `status` and the `url` of its revva.app page, which opens once the event is approved.
# Create an event curl https://api.revva.app/v1/events \ -H "Authorization: Bearer $REVVA_SECRET_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Balade des Aravis", "startsAt": "2027-05-01T09:00:00+02:00", "registrationUrl": "https://your-site.com/aravis", "place": "Annecy, place de la Mairie", "latitude": 45.8992, "longitude": 6.1294, "ref": "test-aravis-2027" }'
{
"id": "6f1c2d3e-…",
"ref": "test-aravis-2027",
"status": "pending",
"moderationNote": null,
"underReview": false,
"url": "https://revva.app/e/aB3dE5",
"title": "Balade des Aravis",
"startsAt": "2027-05-01T07:00:00.000Z",
"place": "Annecy, place de la Mairie",
"createdAt": "2026-10-25T08:30:00.000Z",
…
}Manage your events
List your events, filter the list by status or by your ref, or find one by its id, edit or delete it. Creation is limited to 200 events per app and UTC day. In the reference
Stats
Every link carrying your public key counts toward your stats, per UTC day. Counts only: never a rider, a position or a trip.
What is counted
-
pageViewsViews of the revva.app/go page -
storeTapsTaps on an App Store or Play Store button on that page -
appOpensLinks opened in the Revva app -
previewsShownRoute previews shown in the app -
ridesStartedRides started from the link -
uniqueVisitorsPeople who viewed the page, each once a day -
uniqueAppOpensRiders who opened the link in the app, each once a day -
uniqueRidersRiders who started from the link, each once a day
GET /v1/stats answers { days, stale }: one entry per day of the window, zeros included, each with its day and the eight counts above. stale is true when the totals could not be refreshed: they are then the last known ones. The three people counts hold for one day: someone back the next day counts again, so they do not add up into a number of people over the window. They are measured without cookies or any stored identifier, to about 1%.
Errors and limits
Every error has the same shape: { "error": { "code", "message", "detail"? } }.
Each operation lists the codes it can answer, with an example of each, in the reference. In the reference
Per key, 120 requests a minute, 20 of them for stats; per IP, 300 a minute; per account, 500 roadbooks created a day. All free. In the reference
Keys
Your secret key goes in Authorization: Bearer, on your server only. Create your keys on my.revva.app with your Revva account.