Help
DevelopersReference

Hubs

Collections of tours for an account, with their tour ids.

Base URL https://api.showpilot.com/v1. Every call needs Authorization: Bearer <api key>; see Authentication.

List hubs, newest first

GET /hubs

Scope: hubs:read. Operation id: listHubs.

Parameters

NameInTypeMeaning
limitqueryintegerPage size, 1 to 200. Default 50.
cursorquerystringThe nextCursor from the previous page. Opaque; never build one.

Example request

curl "https://api.showpilot.com/v1/hubs?limit=50" \
  -H "Authorization: Bearer $SHOWPILOT_API_KEY"
Runs against your sandbox with a test key.

Response

One page of hubs.

FieldTypeAlwaysMeaning
itemsarray of Hubyes
nextCursorNextCursoryes

Hub

FieldTypeAlwaysMeaning
idstring (uuid)yes
publicIdstring or nullyes
namestringyes
descriptionstring or nullyes
statusstringyes
startTourIdstring or null (uuid)yes
tourCountintegeryes
publishedTourCountintegeryes
publishedAtstring or null (date-time)yes
createdAtstring (date-time)yes
updatedAtstring (date-time)yes

NextCursor

Pass as cursor for the next page; null on the last page.

Errors

StatusWhen
400A parameter is malformed, such as a cursor this API did not issue, a limit under 1, or an unknown status. Code invalid-request.
401No key, or an unknown or revoked key. Code unauthorized.
403A valid key without the operation's scope (code insufficient-scope), or a plan without API access (code plan-api-off).
429The key's bucket is empty. Code rate-limited; wait the Retry-After seconds.

One hub with its tour ids

GET /hubs/{id}

Scope: hubs:read. Operation id: getHub.

Parameters

NameInTypeMeaning
idpathstringThe hub's UUID or public id.

Example request

curl "https://api.showpilot.com/v1/hubs/h_2m8x1p" \
  -H "Authorization: Bearer $SHOWPILOT_API_KEY"
Runs against your sandbox with a test key.

Response

The hub and the ids of its tours.

Every field of Hub, plus:

FieldTypeAlwaysMeaning
tourIdsarray of string (uuid)yes

Hub

FieldTypeAlwaysMeaning
idstring (uuid)yes
publicIdstring or nullyes
namestringyes
descriptionstring or nullyes
statusstringyes
startTourIdstring or null (uuid)yes
tourCountintegeryes
publishedTourCountintegeryes
publishedAtstring or null (date-time)yes
createdAtstring (date-time)yes
updatedAtstring (date-time)yes

Errors

StatusWhen
401No key, or an unknown or revoked key. Code unauthorized.
403A valid key without the operation's scope (code insufficient-scope), or a plan without API access (code plan-api-off).
404No object with that id in this workspace. Code not-found.
429The key's bucket is empty. Code rate-limited; wait the Retry-After seconds.

On this page