Organizations only. You need an organization account with access to Experiences; other accounts get a 403. If your account does not have Experiences enabled, please contact organizations@ridewithgps.com.
To publish a tour step by step, follow Publish a multi-day tour.
See also: Guide page blocks, Photos, Tasks.
How to authenticate · OpenAPI spec for these endpoints
/api/v1/experiences.json
Returns a list of experiences
/api/v1/experiences/{id}.json
Returns an experience
/api/v1/experiences.json
Creates an experience
/api/v1/experiences/{id}.json
Updates an experience
/api/v1/experiences/{id}.json
Deletes an experience
/api/v1/experiences/{experience_id}/guide_pages.json
Returns an experience's guide pages
/api/v1/experiences/{experience_id}/guide_pages/{id}.json
Returns a guide page
/api/v1/experiences/{experience_id}/guide_pages.json
Creates a guide page
/api/v1/experiences/{experience_id}/guide_pages/{id}.json
Updates a guide page
/api/v1/experiences/{experience_id}/guide_pages/{id}.json
Deletes a guide page
/api/v1/experiences/{experience_id}/packages.json
Returns an experience's packages
/api/v1/experiences/{experience_id}/packages/{id}.json
Returns a package
/api/v1/experiences/{experience_id}/packages.json
Publishes an experience
/api/v1/experiences/{experience_id}/codes.json
Returns an experience's codes
/api/v1/experiences/{experience_id}/codes/{id}.json
Returns a code
/api/v1/experiences/{experience_id}/codes.json
Creates a code
/api/v1/experiences/{experience_id}/codes/{id}.json
Updates a code
/api/v1/experiences/{experience_id}/guests.json
Returns an experience's guests
/api/v1/experiences/{experience_id}/guests/{id}.json
Returns a guest
/api/v1/experiences/{experience_id}/guests/{id}.json
Updates a guest's access
/api/v1/experiences/{experience_id}/messages.json
Returns an experience's messages
/api/v1/experiences/{experience_id}/messages.json
Sends a message
/api/v1/experiences.json
Returns a paginated list of the organization's experiences.
Experiences endpoints are only available to organization accounts with access to Experiences.
Supports filtering by name and archived.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
page
integer
query
page_size
integer
query
name
string
query
archived
string
query
true, false
experiences
array of objects
id
integer
url
string
name
string
description
string
or null
location
string
starts_on
string
or null
ends_on
string
or null
active
boolean
archived
boolean
publish_status
string
updates means the experience changed since the last published package. failed means the last build failed; publish again to retry.unpublished, queued, processing, updates, published, failed
logo_url
string
or null
cover_url
string
or null
expire_after_days
integer
or null
unlimited
boolean
show_routes
boolean
reference_id
string
require_name
boolean
require_email
boolean
require_phone
boolean
require_zip_code
boolean
require_reference_id
boolean
created_at
date-time
updated_at
date-time
meta
object
pagination
object
record_count
integer
page_count
integer
page_size
integer
next_page_url
string
or null
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences.json
{
"experiences": [
{
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123.json",
"name": "Oregon Coast tour",
"description": "Five days along the Oregon coast",
"location": "Portland, OR",
"starts_on": "2000-01-01",
"ends_on": "2000-01-01",
"active": false,
"archived": false,
"publish_status": "unpublished",
"logo_url": "https://ridewithgps.com/files/logo.jpg",
"cover_url": "https://ridewithgps.com/files/cover.jpg",
"expire_after_days": 30,
"unlimited": false,
"show_routes": false,
"reference_id": "TOUR-2000-01",
"require_name": false,
"require_email": false,
"require_phone": false,
"require_zip_code": false,
"require_reference_id": false,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
],
"meta": {
"pagination": {
"record_count": 45,
"page_count": 3,
"page_size": 20,
"next_page_url": "https://ridewithgps.com/api/v1/experiences.json?page=2"
}
}
}
/api/v1/experiences/{id}.json
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
id
integer
path
required
experience
object
id
integer
url
string
name
string
description
string
or null
location
string
starts_on
string
or null
ends_on
string
or null
active
boolean
archived
boolean
publish_status
string
updates means the experience changed since the last published package. failed means the last build failed; publish again to retry.unpublished, queued, processing, updates, published, failed
logo_url
string
or null
cover_url
string
or null
expire_after_days
integer
or null
unlimited
boolean
show_routes
boolean
reference_id
string
require_name
boolean
require_email
boolean
require_phone
boolean
require_zip_code
boolean
require_reference_id
boolean
created_at
date-time
updated_at
date-time
tags
array of strings
route_ids
array of integers
guest_code
string
or null
guide_code
string
or null
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123.json
{
"experience": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123.json",
"name": "Oregon Coast tour",
"description": "Five days along the Oregon coast",
"location": "Portland, OR",
"starts_on": "2000-01-01",
"ends_on": "2000-01-01",
"active": false,
"archived": false,
"publish_status": "unpublished",
"logo_url": "https://ridewithgps.com/files/logo.jpg",
"cover_url": "https://ridewithgps.com/files/cover.jpg",
"expire_after_days": 30,
"unlimited": false,
"show_routes": false,
"reference_id": "TOUR-2000-01",
"require_name": false,
"require_email": false,
"require_phone": false,
"require_zip_code": false,
"require_reference_id": false,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z",
"tags": [
"Tags"
],
"route_ids": [
1
],
"guest_code": "COAST2000",
"guide_code": "GUIDE2000"
}
}
/api/v1/experiences.json
Creates an experience for the organization.
Send source_experience_id to create a copy of one of the organization's experiences, with its routes and guide pages. Other fields sent with it override the copied values.
route_ids sets the experience's routes, in order. Only routes owned by the organization are accepted.
Multipart uploads: To upload a logo or cover image, send multipart/form-data with experience[logo] and experience[cover].
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience
object
required
source_experience_id
integer
name
string
description
string
location
string
starts_on
string
ends_on
string
active
boolean
archived
boolean
expire_after_days
integer
or null
unlimited
boolean
show_routes
boolean
reference_id
string
require_name
boolean
require_email
boolean
require_phone
boolean
require_zip_code
boolean
require_reference_id
boolean
route_ids
array of integers
tags
array of strings
logo
file
cover
file
experience
object
id
integer
url
string
name
string
description
string
or null
location
string
starts_on
string
or null
ends_on
string
or null
active
boolean
archived
boolean
publish_status
string
updates means the experience changed since the last published package. failed means the last build failed; publish again to retry.unpublished, queued, processing, updates, published, failed
logo_url
string
or null
cover_url
string
or null
expire_after_days
integer
or null
unlimited
boolean
show_routes
boolean
reference_id
string
require_name
boolean
require_email
boolean
require_phone
boolean
require_zip_code
boolean
require_reference_id
boolean
created_at
date-time
updated_at
date-time
tags
array of strings
route_ids
array of integers
guest_code
string
or null
guide_code
string
or null
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"experience": {
"source_experience_id": 123,
"name": "Oregon Coast tour",
"description": "Five days along the Oregon coast",
"location": "Portland, OR",
"starts_on": "2000-01-01",
"ends_on": "2000-01-01",
"active": false,
"archived": false,
"expire_after_days": 30,
"unlimited": false,
"show_routes": false,
"reference_id": "TOUR-2000-01",
"require_name": false,
"require_email": false,
"require_phone": false,
"require_zip_code": false,
"require_reference_id": false,
"route_ids": [
1
],
"tags": [
"Tags"
]
}
}' \
https://ridewithgps.com/api/v1/experiences.json
{
"experience": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123.json",
"name": "Oregon Coast tour",
"description": "Five days along the Oregon coast",
"location": "Portland, OR",
"starts_on": "2000-01-01",
"ends_on": "2000-01-01",
"active": false,
"archived": false,
"publish_status": "unpublished",
"logo_url": "https://ridewithgps.com/files/logo.jpg",
"cover_url": "https://ridewithgps.com/files/cover.jpg",
"expire_after_days": 30,
"unlimited": false,
"show_routes": false,
"reference_id": "TOUR-2000-01",
"require_name": false,
"require_email": false,
"require_phone": false,
"require_zip_code": false,
"require_reference_id": false,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z",
"tags": [
"Tags"
],
"route_ids": [
1
],
"guest_code": "COAST2000",
"guide_code": "GUIDE2000"
}
}
/api/v1/experiences/{id}.json
Updates an experience. Only the fields sent are changed.
route_ids replaces the whole route list, in the order given. Send an empty array to remove every route.
active: false hides the experience from the app; publish a package to make it available again.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
id
integer
path
required
experience
object
required
source_experience_id
integer
name
string
description
string
location
string
starts_on
string
ends_on
string
active
boolean
archived
boolean
expire_after_days
integer
or null
unlimited
boolean
show_routes
boolean
reference_id
string
require_name
boolean
require_email
boolean
require_phone
boolean
require_zip_code
boolean
require_reference_id
boolean
route_ids
array of integers
tags
array of strings
logo
file
cover
file
experience
object
id
integer
url
string
name
string
description
string
or null
location
string
starts_on
string
or null
ends_on
string
or null
active
boolean
archived
boolean
publish_status
string
updates means the experience changed since the last published package. failed means the last build failed; publish again to retry.unpublished, queued, processing, updates, published, failed
logo_url
string
or null
cover_url
string
or null
expire_after_days
integer
or null
unlimited
boolean
show_routes
boolean
reference_id
string
require_name
boolean
require_email
boolean
require_phone
boolean
require_zip_code
boolean
require_reference_id
boolean
created_at
date-time
updated_at
date-time
tags
array of strings
route_ids
array of integers
guest_code
string
or null
guide_code
string
or null
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X PATCH \
-H "Content-Type: application/json" \
-d '{
"experience": {
"source_experience_id": 123,
"name": "Oregon Coast tour",
"description": "Five days along the Oregon coast",
"location": "Portland, OR",
"starts_on": "2000-01-01",
"ends_on": "2000-01-01",
"active": false,
"archived": false,
"expire_after_days": 30,
"unlimited": false,
"show_routes": false,
"reference_id": "TOUR-2000-01",
"require_name": false,
"require_email": false,
"require_phone": false,
"require_zip_code": false,
"require_reference_id": false,
"route_ids": [
1
],
"tags": [
"Tags"
]
}
}' \
https://ridewithgps.com/api/v1/experiences/123.json
{
"experience": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123.json",
"name": "Oregon Coast tour",
"description": "Five days along the Oregon coast",
"location": "Portland, OR",
"starts_on": "2000-01-01",
"ends_on": "2000-01-01",
"active": false,
"archived": false,
"publish_status": "unpublished",
"logo_url": "https://ridewithgps.com/files/logo.jpg",
"cover_url": "https://ridewithgps.com/files/cover.jpg",
"expire_after_days": 30,
"unlimited": false,
"show_routes": false,
"reference_id": "TOUR-2000-01",
"require_name": false,
"require_email": false,
"require_phone": false,
"require_zip_code": false,
"require_reference_id": false,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z",
"tags": [
"Tags"
],
"route_ids": [
1
],
"guest_code": "COAST2000",
"guide_code": "GUIDE2000"
}
}
/api/v1/experiences/{id}.json
Deletes an experience. An experience that guests have already joined is hidden instead, so their access history is kept.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
id
integer
path
required
Experience deleted
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X DELETE \
https://ridewithgps.com/api/v1/experiences/123.json
// Experience deleted
/api/v1/experiences/{experience_id}/guide_pages.json
Returns every guide page of the experience, each top-level page followed by the pages under it.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
guide_pages
array of objects
id
integer
url
string
experience_id
integer
parent_id
integer
or null
position
integer
title
string
header
boolean
live
boolean
blocks
array of objects
type
string
text, photo, route, elevation_profile
markdown
string
text blocks.photo_id
integer
photo blocks. A photo owned by the organization; upload one with POST /api/v1/photos.on_tap
string
photo blocks. What tapping the photo does. Defaults to none.none, enlarge, open_link
link_url
string
or null
photo blocks with on_tap: open_link.route_id
integer
route and elevation_profile blocks. A route owned by the organization.url
string
or null
photo blocks.name
string
route card.distance
number
route card.elevation_gain
number
route card.file
object
or null
name
string
filename
string
content_type
string
size
integer
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123/guide_pages.json
{
"guide_pages": [
{
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/guide_pages/123.json",
"experience_id": 123,
"parent_id": 123,
"position": 1,
"title": "Day 1: Portland to Tillamook",
"header": false,
"live": false,
"blocks": [
{
"type": "text",
"markdown": "Welcome to the tour! Today we ride from Portland to the coast.",
"photo_id": 123,
"on_tap": "none",
"link_url": "https://example.com",
"route_id": 123,
"url": "https://ridewithgps.com/api/v1/photos/123/8275d8de285be31d7b2437bc3ae69756.jpg",
"name": "Forest Park loop",
"distance": 40237,
"elevation_gain": 457
}
],
"file": {
"name": "day1.pdf",
"filename": "day1.pdf",
"content_type": "application/pdf",
"size": 1093417
},
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
]
}
/api/v1/experiences/{experience_id}/guide_pages/{id}.json
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
id
integer
path
required
guide_page
object
id
integer
url
string
experience_id
integer
parent_id
integer
or null
position
integer
title
string
header
boolean
live
boolean
blocks
array of objects
type
string
text, photo, route, elevation_profile
markdown
string
text blocks.photo_id
integer
photo blocks. A photo owned by the organization; upload one with POST /api/v1/photos.on_tap
string
photo blocks. What tapping the photo does. Defaults to none.none, enlarge, open_link
link_url
string
or null
photo blocks with on_tap: open_link.route_id
integer
route and elevation_profile blocks. A route owned by the organization.url
string
or null
photo blocks.name
string
route card.distance
number
route card.elevation_gain
number
route card.file
object
or null
name
string
filename
string
content_type
string
size
integer
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123/guide_pages/123.json
{
"guide_page": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/guide_pages/123.json",
"experience_id": 123,
"parent_id": 123,
"position": 1,
"title": "Day 1: Portland to Tillamook",
"header": false,
"live": false,
"blocks": [
{
"type": "text",
"markdown": "Welcome to the tour! Today we ride from Portland to the coast.",
"photo_id": 123,
"on_tap": "none",
"link_url": "https://example.com",
"route_id": 123,
"url": "https://ridewithgps.com/api/v1/photos/123/8275d8de285be31d7b2437bc3ae69756.jpg",
"name": "Forest Park loop",
"distance": 40237,
"elevation_gain": 457
}
],
"file": {
"name": "day1.pdf",
"filename": "day1.pdf",
"content_type": "application/pdf",
"size": 1093417
},
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}
/api/v1/experiences/{experience_id}/guide_pages.json
Adds a guide page to the experience. Without parent_id and position, the page goes last at the top level.
Content is a list of blocks: Markdown text, photos, route cards and elevation profiles. Photos and routes must belong to the organization. See Guide page blocks for every block type and the Markdown text blocks accept.
PDF pages: send multipart/form-data with guide_page[title] and guide_page[file] instead of blocks.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
guide_page
object
required
title
string
header
boolean
live
boolean
parent_id
integer
or null
position
integer
blocks
array of objects
type
string
required
text, photo, route, elevation_profile
markdown
string
text blocks.photo_id
integer
photo blocks. A photo owned by the organization; upload one with POST /api/v1/photos.on_tap
string
photo blocks. What tapping the photo does. Defaults to none.none, enlarge, open_link
link_url
string
or null
photo blocks with on_tap: open_link.route_id
integer
route and elevation_profile blocks. A route owned by the organization.url
string
or null
photo blocks.name
string
route card.distance
number
route card.elevation_gain
number
route card.file
file
guide_page
object
id
integer
url
string
experience_id
integer
parent_id
integer
or null
position
integer
title
string
header
boolean
live
boolean
blocks
array of objects
type
string
text, photo, route, elevation_profile
markdown
string
text blocks.photo_id
integer
photo blocks. A photo owned by the organization; upload one with POST /api/v1/photos.on_tap
string
photo blocks. What tapping the photo does. Defaults to none.none, enlarge, open_link
link_url
string
or null
photo blocks with on_tap: open_link.route_id
integer
route and elevation_profile blocks. A route owned by the organization.url
string
or null
photo blocks.name
string
route card.distance
number
route card.elevation_gain
number
route card.file
object
or null
name
string
filename
string
content_type
string
size
integer
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"guide_page": {
"title": "Day 1: Portland to Tillamook",
"header": false,
"live": false,
"parent_id": 123,
"position": 1,
"blocks": [
{
"type": "text",
"markdown": "Welcome to the tour! Today we ride from Portland to the coast.",
"photo_id": 123,
"on_tap": "none",
"link_url": "https://example.com",
"route_id": 123,
"url": "https://ridewithgps.com/api/v1/photos/123/8275d8de285be31d7b2437bc3ae69756.jpg",
"name": "Forest Park loop",
"distance": 40237,
"elevation_gain": 457
}
]
}
}' \
https://ridewithgps.com/api/v1/experiences/123/guide_pages.json
{
"guide_page": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/guide_pages/123.json",
"experience_id": 123,
"parent_id": 123,
"position": 1,
"title": "Day 1: Portland to Tillamook",
"header": false,
"live": false,
"blocks": [
{
"type": "text",
"markdown": "Welcome to the tour! Today we ride from Portland to the coast.",
"photo_id": 123,
"on_tap": "none",
"link_url": "https://example.com",
"route_id": 123,
"url": "https://ridewithgps.com/api/v1/photos/123/8275d8de285be31d7b2437bc3ae69756.jpg",
"name": "Forest Park loop",
"distance": 40237,
"elevation_gain": 457
}
],
"file": {
"name": "day1.pdf",
"filename": "day1.pdf",
"content_type": "application/pdf",
"size": 1093417
},
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}
/api/v1/experiences/{experience_id}/guide_pages/{id}.json
Updates a guide page. Only the fields sent are changed. blocks replaces the whole content. See Guide page blocks.
Send parent_id and/or position to move the page; the other pages are renumbered.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
id
integer
path
required
guide_page
object
required
title
string
header
boolean
live
boolean
parent_id
integer
or null
position
integer
blocks
array of objects
type
string
required
text, photo, route, elevation_profile
markdown
string
text blocks.photo_id
integer
photo blocks. A photo owned by the organization; upload one with POST /api/v1/photos.on_tap
string
photo blocks. What tapping the photo does. Defaults to none.none, enlarge, open_link
link_url
string
or null
photo blocks with on_tap: open_link.route_id
integer
route and elevation_profile blocks. A route owned by the organization.url
string
or null
photo blocks.name
string
route card.distance
number
route card.elevation_gain
number
route card.file
file
guide_page
object
id
integer
url
string
experience_id
integer
parent_id
integer
or null
position
integer
title
string
header
boolean
live
boolean
blocks
array of objects
type
string
text, photo, route, elevation_profile
markdown
string
text blocks.photo_id
integer
photo blocks. A photo owned by the organization; upload one with POST /api/v1/photos.on_tap
string
photo blocks. What tapping the photo does. Defaults to none.none, enlarge, open_link
link_url
string
or null
photo blocks with on_tap: open_link.route_id
integer
route and elevation_profile blocks. A route owned by the organization.url
string
or null
photo blocks.name
string
route card.distance
number
route card.elevation_gain
number
route card.file
object
or null
name
string
filename
string
content_type
string
size
integer
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X PATCH \
-H "Content-Type: application/json" \
-d '{
"guide_page": {
"title": "Day 1: Portland to Tillamook",
"header": false,
"live": false,
"parent_id": 123,
"position": 1,
"blocks": [
{
"type": "text",
"markdown": "Welcome to the tour! Today we ride from Portland to the coast.",
"photo_id": 123,
"on_tap": "none",
"link_url": "https://example.com",
"route_id": 123,
"url": "https://ridewithgps.com/api/v1/photos/123/8275d8de285be31d7b2437bc3ae69756.jpg",
"name": "Forest Park loop",
"distance": 40237,
"elevation_gain": 457
}
]
}
}' \
https://ridewithgps.com/api/v1/experiences/123/guide_pages/123.json
{
"guide_page": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/guide_pages/123.json",
"experience_id": 123,
"parent_id": 123,
"position": 1,
"title": "Day 1: Portland to Tillamook",
"header": false,
"live": false,
"blocks": [
{
"type": "text",
"markdown": "Welcome to the tour! Today we ride from Portland to the coast.",
"photo_id": 123,
"on_tap": "none",
"link_url": "https://example.com",
"route_id": 123,
"url": "https://ridewithgps.com/api/v1/photos/123/8275d8de285be31d7b2437bc3ae69756.jpg",
"name": "Forest Park loop",
"distance": 40237,
"elevation_gain": 457
}
],
"file": {
"name": "day1.pdf",
"filename": "day1.pdf",
"content_type": "application/pdf",
"size": 1093417
},
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}
/api/v1/experiences/{experience_id}/guide_pages/{id}.json
Deletes a guide page. Deleting a header also deletes the pages under it.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
id
integer
path
required
Guide page deleted
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X DELETE \
https://ridewithgps.com/api/v1/experiences/123/guide_pages/123.json
// Guide page deleted
/api/v1/experiences/{experience_id}/packages.json
Returns the packages built for the experience, newest first. Guests download the newest package.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
page
integer
query
page_size
integer
query
packages
array of objects
id
integer
url
string
experience_id
integer
status
string
failed means the last build of the experience failed; the task of the publish request reports it too.queued, processing, ready, failed
file_size
integer
or null
created_at
date-time
updated_at
date-time
meta
object
pagination
object
record_count
integer
page_count
integer
page_size
integer
next_page_url
string
or null
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123/packages.json
{
"packages": [
{
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/packages/123.json",
"experience_id": 123,
"status": "queued",
"file_size": 26381512,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
],
"meta": {
"pagination": {
"record_count": 45,
"page_count": 3,
"page_size": 20,
"next_page_url": "https://ridewithgps.com/api/v1/experiences/123/packages.json?page=2"
}
}
}
/api/v1/experiences/{experience_id}/packages/{id}.json
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
id
integer
path
required
package
object
id
integer
url
string
experience_id
integer
status
string
failed means the last build of the experience failed; the task of the publish request reports it too.queued, processing, ready, failed
file_size
integer
or null
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123/packages/123.json
{
"package": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/packages/123.json",
"experience_id": 123,
"status": "queued",
"file_size": 26381512,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}
/api/v1/experiences/{experience_id}/packages.json
Makes the experience available to guests and builds a new package with its current routes and guide pages. The build runs in the background.
Returns a task. Poll the task URL, also given in the Location header, until its status is completed. A finished build lists the package in items; a failed one reports a build_failed error. Refused with a 409 while a build is queued or running, or when nothing changed since the last build.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
task
object
id
integer
user_id
integer
url
string
type
string
gps_file_upload for uploads, experience_package for experience packagesstatus
string
pending until the task has run, then completedcreated_at
date-time
updated_at
date-time
items
array of objects
item_type
string
route or trip for uploads, experience_package for experience packagesitem_id
integer
item_url
string
or null
errors
array of objects
code
string
duplicate, time_data_missing, no_tracks, empty_file, parse_failed, failed_to_process, weigh_in_failed, build_failed, errormessage
string
item_type
string
or null
item_id
integer
or null
item_url
string
or null
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X POST \
https://ridewithgps.com/api/v1/experiences/123/packages.json
{
"task": {
"id": 123,
"user_id": 123,
"url": "https://ridewithgps.com/api/v1/tasks/123.json",
"type": "gps_file_upload",
"status": "completed",
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z",
"items": [
{
"item_type": "route",
"item_id": 123,
"item_url": "https://ridewithgps.com/api/v1/routes/123.json"
}
],
"errors": [
{
"code": "duplicate",
"message": "This route already exists",
"item_type": "route",
"item_id": 123,
"item_url": "https://ridewithgps.com/api/v1/routes/123.json"
}
]
}
}
/api/v1/experiences/{experience_id}/codes.json
Returns every code of the experience, active or not, newest first.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
codes
array of objects
id
integer
url
string
code
string
kind
string
guest: the shared code of an unlimited experience. guide: for guides, whose access never expires. limited: a code with an access_limit, for experiences whose unlimited is false.guest, guide, limited
active
boolean
access_limit
integer
or null
limited code.times_used
integer
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123/codes.json
{
"codes": [
{
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/codes/123.json",
"code": "COAST2000",
"kind": "guest",
"active": false,
"access_limit": 20,
"times_used": 3,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
]
}
/api/v1/experiences/{experience_id}/codes/{id}.json
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
id
integer
path
required
code
object
id
integer
url
string
code
string
kind
string
guest: the shared code of an unlimited experience. guide: for guides, whose access never expires. limited: a code with an access_limit, for experiences whose unlimited is false.guest, guide, limited
active
boolean
access_limit
integer
or null
limited code.times_used
integer
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123/codes/123.json
{
"code": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/codes/123.json",
"code": "COAST2000",
"kind": "guest",
"active": false,
"access_limit": 20,
"times_used": 3,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}
/api/v1/experiences/{experience_id}/codes.json
Creates a code guests enter in the app to join the experience. Omit code to get a random one.
A new guest or guide code replaces the active code of the same kind: guests who already joined keep their access, and the old code stops working. A replaced code nobody used is deleted.
guest codes are for experiences whose unlimited is true. limited codes are for experiences whose unlimited is false; they add to the existing ones and need an access_limit. guide codes need the guide shortcut in the organization's plan.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
code
object
required
kind
string
required
guest, guide, limited
code
string
access_limit
integer
limited codes only.code
object
id
integer
url
string
code
string
kind
string
guest: the shared code of an unlimited experience. guide: for guides, whose access never expires. limited: a code with an access_limit, for experiences whose unlimited is false.guest, guide, limited
active
boolean
access_limit
integer
or null
limited code.times_used
integer
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"code": {
"kind": "guest",
"code": "SMITH2000",
"access_limit": 20
}
}' \
https://ridewithgps.com/api/v1/experiences/123/codes.json
{
"code": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/codes/123.json",
"code": "COAST2000",
"kind": "guest",
"active": false,
"access_limit": 20,
"times_used": 3,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}
/api/v1/experiences/{experience_id}/codes/{id}.json
Turns a code on or off, or changes the access_limit of a limited code. The limit cannot go below the times the code was used.
Turning a guest or guide code back on makes it the experience's code of that kind again. The active guest code cannot be turned off, and neither can the active guide code when the plan includes the guide shortcut: create a new code to replace it.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
id
integer
path
required
code
object
required
active
boolean
access_limit
integer
code
object
id
integer
url
string
code
string
kind
string
guest: the shared code of an unlimited experience. guide: for guides, whose access never expires. limited: a code with an access_limit, for experiences whose unlimited is false.guest, guide, limited
active
boolean
access_limit
integer
or null
limited code.times_used
integer
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X PATCH \
-H "Content-Type: application/json" \
-d '{
"code": {
"active": false,
"access_limit": 20
}
}' \
https://ridewithgps.com/api/v1/experiences/123/codes/123.json
{
"code": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/codes/123.json",
"code": "COAST2000",
"kind": "guest",
"active": false,
"access_limit": 20,
"times_used": 3,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}
/api/v1/experiences/{experience_id}/guests.json
Returns the guests who joined the experience with a code and downloaded it, newest first.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
page
integer
query
page_size
integer
query
guests
array of objects
id
integer
url
string
code
string
code_kind
string
guest, guide, limited
details
object
require_name, require_email, ...).name
string
email
string
phone
string
zip_code
string
reference_id
string
can_email
boolean
download_count
integer
expires_at
date-time
or null
removed_by_guest
boolean
joined_at
date-time
updated_at
date-time
meta
object
pagination
object
record_count
integer
page_count
integer
page_size
integer
next_page_url
string
or null
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123/guests.json
{
"guests": [
{
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/guests/123.json",
"code": "COAST2000",
"code_kind": "guest",
"details": {
"name": "Alex Rider",
"email": "alex@example.com",
"phone": "+1 503 555 0100",
"zip_code": "97209",
"reference_id": "BOOKING-1234"
},
"can_email": false,
"download_count": 1,
"expires_at": "2000-01-01T12:00:00Z",
"removed_by_guest": false,
"joined_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
],
"meta": {
"pagination": {
"record_count": 45,
"page_count": 3,
"page_size": 20,
"next_page_url": "https://ridewithgps.com/api/v1/experiences/123/guests.json?page=2"
}
}
}
/api/v1/experiences/{experience_id}/guests/{id}.json
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
id
integer
path
required
guest
object
id
integer
url
string
code
string
code_kind
string
guest, guide, limited
details
object
require_name, require_email, ...).name
string
email
string
phone
string
zip_code
string
reference_id
string
can_email
boolean
download_count
integer
expires_at
date-time
or null
removed_by_guest
boolean
joined_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123/guests/123.json
{
"guest": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/guests/123.json",
"code": "COAST2000",
"code_kind": "guest",
"details": {
"name": "Alex Rider",
"email": "alex@example.com",
"phone": "+1 503 555 0100",
"zip_code": "97209",
"reference_id": "BOOKING-1234"
},
"can_email": false,
"download_count": 1,
"expires_at": "2000-01-01T12:00:00Z",
"removed_by_guest": false,
"joined_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}
/api/v1/experiences/{experience_id}/guests/{id}.json
Sets when the guest loses access. Send a past time to end access now, or null so it never expires. Unless the organization has unlimited expiry, the time can be at most expire_after_days days from now, and null is refused when the experience sets expire_after_days.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
id
integer
path
required
guest
object
required
expires_at
date-time
or null
guest
object
id
integer
url
string
code
string
code_kind
string
guest, guide, limited
details
object
require_name, require_email, ...).name
string
email
string
phone
string
zip_code
string
reference_id
string
can_email
boolean
download_count
integer
expires_at
date-time
or null
removed_by_guest
boolean
joined_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X PATCH \
-H "Content-Type: application/json" \
-d '{
"guest": {
"expires_at": "2000-01-01T12:00:00Z"
}
}' \
https://ridewithgps.com/api/v1/experiences/123/guests/123.json
{
"guest": {
"id": 123,
"url": "https://ridewithgps.com/api/v1/experiences/123/guests/123.json",
"code": "COAST2000",
"code_kind": "guest",
"details": {
"name": "Alex Rider",
"email": "alex@example.com",
"phone": "+1 503 555 0100",
"zip_code": "97209",
"reference_id": "BOOKING-1234"
},
"can_email": false,
"download_count": 1,
"expires_at": "2000-01-01T12:00:00Z",
"removed_by_guest": false,
"joined_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}
/api/v1/experiences/{experience_id}/messages.json
Returns the messages sent to the guests of the experience, newest first. Requires messaging for the organization.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
page
integer
query
page_size
integer
query
messages
array of objects
id
integer
content
string
created_at
date-time
updated_at
date-time
meta
object
pagination
object
record_count
integer
page_count
integer
page_size
integer
next_page_url
string
or null
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/experiences/123/messages.json
{
"messages": [
{
"id": 123,
"content": "Meet in the hotel lobby at 8:00 for the day 2 briefing.",
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
],
"meta": {
"pagination": {
"record_count": 45,
"page_count": 3,
"page_size": 20,
"next_page_url": "https://ridewithgps.com/api/v1/experiences/123/messages.json?page=2"
}
}
}
/api/v1/experiences/{experience_id}/messages.json
Sends a message to the experience's guests. Guests get a push notification and find the message in the app.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
experience_id
integer
path
required
message
object
required
content
string
required
message
object
id
integer
content
string
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"message": {
"content": "Rain tomorrow: we start at 10:00 instead of 8:30."
}
}' \
https://ridewithgps.com/api/v1/experiences/123/messages.json
{
"message": {
"id": 123,
"content": "Meet in the hotel lobby at 8:00 for the day 2 briefing.",
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
}