Get the Home page of the App
GET
/apps/{appId}/home
const url = 'https://api.passion.io/v1/apps/example/home';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.passion.io/v1/apps/example/homeParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appId
required
The id of the App, as Studio shows it.
string
Responses
Section titled “Responses”OK
Media typeapplication/json
object
cover
required
story
required
highlights
required
Array<string>
testimonials
required
questions
required
Array<object>
object
question
required
string
answer
required
string
sections
required
Every section kind once, in the order a visitor sees them. A hidden section is not shown.
Array<object>
object
kind
required
string
hidden
required
boolean
offerIds
required
Any of:
Array<string>
null
frontDoor
required
open: visitors see the Home. members_only: visitors see only the tagline, the members-only line and a sign-in.
string
Example
{ "cover": { "kind": "image" }, "story": [ { "picture": { "kind": "image" } } ], "sections": [ { "kind": "story" } ], "frontDoor": "open"}