Developers
Steps N Sights Guide API
Create tours, add route stops, upload images, attach PDF guides and publish listings to the live site on a guide's behalf. Built so ChatGPT (or any tool) can do it with a guide's API key.
Connect ChatGPT (Custom GPT Action)
ChatGPT often cannot fetch a spec from a URL. Paste the schema instead. This does not need ChatGPT to reach this site until a call is made.
- A guide signs in, opens Guide Settings → Developer API and creates an API key. The key is shown once.
- In ChatGPT, open your GPT's Configure → Actions → Create new action.
- Click Copy on the schema below and paste it into the Schema box (do not use Import from URL).
- Under Authentication choose API Key, set Auth Type to Bearer, and paste the key (starts with
sns_). - Optional: paste the GPT instructions below, then ask the GPT to build a tour.
Server URL and reconnect steps
Server URL: https://stepsnsigh5691.builtwithrocket.new (the API lives under /api/v1). Use this one host only; do not mix it with any other domain.
- Copy the OpenAPI schema below and paste it into the Action's Schema box (do not use Import from URL).
- Authentication: choose API Key, then Bearer, and paste your key starting with sns_.
- Paste the GPT instructions below, then Save and Update the GPT.
- Test with listTours. If it fails, run checkConnection and send the requestId from the error.
OpenAPI schema (paste into the Action editor)
In Actions, ignore "Import from URL" and paste this straight into the Schema box.
GPT instructions
Paste into the GPT's Instructions field.
Other auth settings also work: Basic, Custom header X-API-Key, or Bearer.
Authentication
Every request needs the guide's API key. Send it in the Authorization header. Keys start with sns_, are tied to one guide and can only touch that guide's own tours. Revoke a key at any time in Guide Settings.
Authorization: Bearer sns_your_key_hereBase URL: https://stepsnsigh5691.builtwithrocket.new. All bodies are JSON unless noted. Errors look like {"error":{"code":"...","message":"..."}}.
Endpoints
/api/v1/pingNetwork test (no key, no database)/api/v1/auth-checkTest connection and API key/api/v1/toursList your tours (compact summaries)/api/v1/toursCreate a tour (unpublished)/api/v1/tours/{tourId}Get a tour with stops and media/api/v1/tours/{tourId}Update tour details/api/v1/tours/{tourId}/stopsAdd a route stop/api/v1/tours/{tourId}/stops/{stopId}Update a stop/api/v1/tours/{tourId}/stops/{stopId}Remove a stop/api/v1/tours/{tourId}/mediaUpload an image or PDF and attach it/api/v1/tours/{tourId}/publishPublish to the live site (or unpublish)/api/v1/self-testPost-deployment self-test (schema + upload checks)1. Create a tour
Tours are created unpublished. Only title is required, but publishing needs title, city, description and one stop.
curl -X POST https://stepsnsigh5691.builtwithrocket.new/api/v1/tours \
-H "Authorization: Bearer sns_your_key_here" -H"Content-Type: application/json" \
-d '{
"title": "Hidden Courtyards of the Old Town",
"city": "Lisbon",
"country": "Portugal",
"description": "A relaxed walk through quiet courtyards and viewpoints.",
"categories": ["History", "Architecture"],
"difficulty": "Easy",
"durationHours": 2.5,
"distanceMiles": 1.8,
"priceUsd": 4.99,
"startLocation": "Praça do Comércio, Lisbon",
"endLocation": "Miradouro de Santa Luzia, Lisbon"
}'The response contains tour.id. Use it in every following call.
2. Add route stops
Stops are appended in order. Add position (1-based) to insert somewhere else. The response returns every stop with its id.
curl -X POST https://stepsnsigh5691.builtwithrocket.new/api/v1/tours/TOUR_ID/stops \
-H "Authorization: Bearer sns_your_key_here" -H"Content-Type: application/json" \
-d '{
"name": "Miradouro das Portas do Sol",
"description": "Panoramic view over Alfama rooftops.",
"address": "Largo Portas do Sol, Lisbon",
"coords": "38.7119,-9.1297",
"tips": "Come early to avoid crowds."
}'3. Upload images
kind is cover, gallery or stop_image (with stopId). JPEG, PNG, WebP or GIF, up to 10 MB. In ChatGPT, files you attach or that ChatGPT generates are sent directly through openaiFileIdRefs, so no public URL is needed. Otherwise give the file as a public https sourceUrl, as contentBase64, or as a multipart upload.
curl -X POST https://stepsnsigh5691.builtwithrocket.new/api/v1/tours/TOUR_ID/media \
-H "Authorization: Bearer sns_your_key_here" -H"Content-Type: application/json" \
-d '{
"kind": "cover",
"sourceUrl": "https://example.com/lisbon-cover.jpg",
"alt": "Sunlit courtyard in Alfama, Lisbon"
}'
# multipart alternative
curl -X POST https://stepsnsigh5691.builtwithrocket.new/api/v1/tours/TOUR_ID/media \
-H "Authorization: Bearer sns_your_key_here" \
-F kind=stop_image -F stopId=STOP_ID -F file=@./stop1.jpg4. Attach a PDF guide
Use kind: "guide". PDF, DOC or DOCX up to 25 MB. Travelers can download it from the tour page.
curl -X POST https://stepsnsigh5691.builtwithrocket.new/api/v1/tours/TOUR_ID/media \
-H "Authorization: Bearer sns_your_key_here" -H"Content-Type: application/json" \
-d '{ "kind": "guide", "sourceUrl": "https://example.com/lisbon-guide.pdf" }'5. Publish to the live site
Publishing makes the tour visible to everyone straight away and returns liveUrl. Send {"published": false} to take it down. An incomplete tour returns HTTP 422.
curl -X POST https://stepsnsigh5691.builtwithrocket.new/api/v1/tours/TOUR_ID/publish \
-H "Authorization: Bearer sns_your_key_here"Status codes
- 400 invalid request or validation error
- 401 missing, invalid or revoked API key
- 404 tour or stop not found (or not owned by the key holder)
- 413 / 415 file too large or unsupported file type
- 422 tour is incomplete and cannot be published
- 429 / 502 / 503 / 504 temporary problem: retry after the
Retry-Afterseconds
Every failure includes status, requestId, category (authentication, network, upstream, validation, not_found, server), retryable and retryAfterSeconds.
Questions? Email info@stepsnsights.com.
Post-deployment self-test
Run this after each deployment. It compares the live schema with the expected actions (including syncStops and createToursBatch), checks the database functions are installed, and uploads and re-downloads a tiny image and PDF.
The key is only sent to this site for this one request and is not saved. The test never creates, changes or publishes a tour.
With a tour id, the test uploads one small PNG as a gallery image on that tour and reports the HTTP status, stored URL and any error. The tour is not recreated, deleted or published.