create_service
Create a Personal trip plan or a Video call, off.
/v1/servicesCreates the service as a draft that is off: travelers see it only once it is turned on (set_service_enabled, or the creator in the studio). kind trip_plan starts with the title Personal trip plan, a 7-day delivery time, five example lines of what you get and prices for 3, 7 and 14 days; kind video_call starts with the title Video call, 60 minutes and no price. Every field you pass replaces its starting value and is checked as update_service checks it; a refused field creates nothing. Prices are in the creator's currency (the response's currency): ask the creator for them rather than keeping the examples. Then add a main picture (set_service_main_picture) and hand the creator studioUrl to check it; turn it on with set_service_enabled only when they ask. At most 20 services per creator.
curl -X POST "https://sceniq.earth/api/v1/services" \
-H "Authorization: Bearer $SCENIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "trip_plan",
"title": "Your Yellowstone trip, planned",
"description": "Tell me your dates and how you like to travel. I plan your days around the light, the geyser basins and the quiet trails, with where to sleep and where to park.",
"includes": [
"A day by day route for your dates",
"Sunrise and sunset spots with parking",
"Where to sleep, with links to book",
"Free changes until you are happy"
],
"countries": [
"US"
],
"languages": [
"en",
"sv"
],
"tripPrices": [
{
"days": 3,
"priceMinor": 19900
},
{
"days": 7,
"priceMinor": 34900
}
],
"deliveryDays": 5
}'Body parameters
- kindstringrequired
trip_plan(a Personal trip plan the creator plans and sends) orvideo_call(a call with the traveler).trip_planvideo_call - callMinutesenumoptional
Video call only: the call's length, 30 or 60 minutes.
3060 - callUrlstringoptional
Video call only: the creator's standing Zoom, Google Meet, FaceTime or Teams link, sent to the traveler once paid. Never shown in public. An empty string clears it.
- countriesarray of stringsoptional
The countries the service covers, up to 20 ISO 3166-1 alpha-2 codes (IT, CH), in the order to show. The whole list; [] clears it.
- deliveryDaysnumberoptional
Trip plan only: days the creator takes to deliver the plan after the request is paid, 1 to 60.
- descriptionstringoptional
The short description on the service's page and under its title, at most 500 characters.
- includesarray of stringsoptional
What you get: up to 6 short lines of at most 80 characters each. The whole list; [] clears it.
- languagesarray of stringsoptional
The languages the creator offers it in, up to 10 codes (en, de, it), in the order to show. The whole list; [] clears it.
- ownPricesarray of objectsoptional
Video call only: the creator's own prices in the other two currencies (CHF, EUR, USD), [{ currency,
priceMinor}], each in place of the converted price. The whole list; [] clears it. Leave out unless the creator names them.Show 2 fieldsHide fields
- currencystringrequired
One of the two currencies the service is not priced in.
chfeurusd - priceMinornumberrequired
The price in that currency, in minor units.
- priceMinornumberoptional
Video call: its price in minor units of the creator's currency (100 to 1000000, 4900 is 49.00). Trip plan: shorthand for one price for every trip up to 90 days (0 clears the prices); never together with
tripPrices. - titlestringoptional
The title travelers see, at most 80 characters.
- tripPricesarray of objectsoptional
Trip plan only: its prices by trip length, 1 to 8 of { days,
priceMinor}. Each entry prices trips of up to days days, longer than the entry before it (3, 7, 14 is 1 to 3 days, 4 to 7, 8 to 14); trips longer than the longest entry cannot be requested. The whole list, each length once.Show 3 fieldsHide fields
- daysnumberrequired
The longest trip this price covers, 1 to 90 days.
- priceMinornumberrequired
The price in minor units of the creator's currency, 100 to 1000000.
- ownPricesarray of objectsoptional
The creator's own prices for this length in the other two currencies, as
ownPrices. Sent without, they are cleared.Show 2 fieldsHide fields
- currencystringrequired
One of the two currencies the service is not priced in.
chfeurusd - priceMinornumberrequired
The price in that currency, in minor units.
Returns
201 Created with this object.
- serviceIdstring · services idrequired
The service's id.
- kindstringrequired
trip_plan: a Personal trip plan;video_call: a Video call.trip_planvideo_call - titlestringrequired
The title travelers see.
- descriptionstringrequired
The short description.
- enabledbooleanrequired
True when the service is on: travelers see it and can request it (
set_service_enabled, with the publish option). - missingarray of stringsrequired
What the service still needs before it can be turned on (cover: a main picture or a thumbnail); empty when ready.
titledescriptioncoverpricedeliveryDayscallMinutescallUrl - currencystringrequired
The creator's currency, which every
priceMinoris in.chfeurusd - priceMinornumberrequired
The price in minor units: a video call's price, a trip plan's lowest price by trip length (0 without).
- tripPricesarray of objects or nullrequired
A trip plan's prices by trip length, shortest first; null on a video call.
Show 3 fieldsHide fields
- daysnumberrequired
The longest trip this price covers, in days.
- priceMinornumberrequired
The price in minor units.
- ownPricesarray of objectsrequired
The creator's own prices for this length in the other currencies ([] without).
Show 2 fieldsHide fields
- currencystringrequired
The currency of this own price.
chfeurusd - priceMinornumberrequired
The creator's own price in that currency, in minor units.
- ownPricesarray of objectsrequired
A video call's own prices in the other currencies ([] without, and on a trip plan).
Show 2 fieldsHide fields
- currencystringrequired
The currency of this own price.
chfeurusd - priceMinornumberrequired
The creator's own price in that currency, in minor units.
- deliveryDaysnumber or nullrequired
A trip plan's delivery time in days; null on a video call.
- callMinutesenum or nullrequired
A video call's length in minutes; null on a trip plan.
3060 - callUrlstring or nullrequired
A video call's standing call link; null without.
- includesarray of stringsrequired
What you get, line by line ([] without).
- countriesarray of stringsrequired
Countries, ISO 3166-1 alpha-2 codes ([] without).
- languagesarray of stringsrequired
Language codes ([] without).
- mainPictureobject or nullrequired
The picture the service's page opens on.
Show 3 fieldsHide fields
- urlstringrequired
The picture's URL.
- widthnumberrequired
Width in pixels.
- heightnumberrequired
Height in pixels.
- thumbnailobject or nullrequired
The picture the service's cards show: the main picture while
thumbnailLinked, else the creator's own thumbnail.Show 3 fieldsHide fields
- urlstringrequired
The picture's URL.
- widthnumberrequired
Width in pixels.
- heightnumberrequired
Height in pixels.
- thumbnailLinkedbooleanrequired
True when the thumbnail follows the main picture (the default);
set_service_covergives it a photo of its own andset_service_thumbnail_linkedlinks it again. - photosarray of objectsrequired
The photos on the service's page, in order.
Show 4 fieldsHide fields
- storageIdstring · stored file idrequired
The photo's file id, for
remove_service_photo. - urlstringrequired
The photo's URL.
- widthnumberrequired
Width in pixels.
- heightnumberrequired
Height in pixels.
- studioUrlstringrequired
The service's form in the studio, where the creator checks it and turns it on.
- createdAtnumberrequired
When the row was created (Unix time in milliseconds).
- updatedAtnumberrequired
When the row last changed (Unix time in milliseconds).
{
"serviceId": "kq73m5p7r9t1v3x5z7b9d1f3h5k7m9p1",
"kind": "trip_plan",
"title": "Your Yellowstone trip, planned",
"description": "Tell me your dates and how you like to travel. I plan your days around the light, the geyser basins and the quiet trails, with where to sleep and where to park.",
"includes": [
"A day by day route for your dates",
"Sunrise and sunset spots with parking",
"Where to sleep, with links to book",
"Free changes until you are happy"
],
"countries": [
"US"
],
"languages": [
"en",
"sv"
],
"enabled": false,
"missing": [
"cover"
],
"currency": "usd",
"priceMinor": 19900,
"tripPrices": [
{
"days": 3,
"priceMinor": 19900,
"ownPrices": []
},
{
"days": 7,
"priceMinor": 34900,
"ownPrices": []
}
],
"ownPrices": [],
"deliveryDays": 5,
"callMinutes": null,
"callUrl": null,
"mainPicture": null,
"thumbnail": null,
"thumbnailLinked": true,
"photos": [],
"studioUrl": "https://creators.sceniq.earth/services/kq73m5p7r9t1v3x5z7b9d1f3h5k7m9p1",
"createdAt": 1762000000000,
"updatedAt": 1762000000000
}Errors
Every error is { error: { code, message } }. Act on the code.
- 400invalid_argumentA required field is missing, a field is unknown, or a value does not match its type (the Convex validator's path and value are in the message).
- 400invalid_requestA writer refused a value: a map link on a host that is not allowed, a title that is too long, a date that does not exist, too many items in a list. The message is the writer's own sentence.
- 401unauthenticatedThe request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
- 401invalid_api_keyThe key is unknown, revoked or expired.
- 403api_scope_requiredA read-only key called a write operation, or a key without the publish option called publish_changes.
- 403forbiddenThe key belongs to a creator account that is no longer active.
- 409conflictThe request clashes with the row's current state. The message says what to change.
- 413payload_too_largeA JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.
- 429rate_limitedOver a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
- 500internal_errorAn unexpected failure. The message is hidden on purpose.