Skip to content

List storyline offers

GET
/instances/{instanceId}/storyline-offers
curl --request GET \
--url https://api.hiddendoor.co/experience/v1/instances/da1cc53b-9d9e-4edb-83e4-d5a9ee713130/storyline-offers \
--header 'Authorization: Bearer <token>'

Discover storylines this world can offer, their chapters, lead requirements and unlock conditions. An offer id is a template identifier, not the UUID of an instantiated storyline. Locked offers explain their requirements; they cannot be started. eligibleLeadIds names instance entities; canonLead provides creation details for an eligible canon lead.

instanceId
required
string format: uuid

Example

da1cc53b-9d9e-4edb-83e4-d5a9ee713130

GET /instances/:instanceId/storyline-offers Parameter

GET /instances/:instanceId/storyline-offers Positive response

Media type application/json
object
offers
required
Array<object>
object
id
required
string
name
required
string
beats
required
Array<object>
object
name
required
string
teaser
required
string
entities
Array<object>
object
id
required
string
name
required
string
teaser
string | null
tags
Array<string>
availableFrom
string | null
availableUntil
string | null
entities
Array<object>
object
id
required
string
name
required
string
defaultMcEntityId
string | null format: uuid
eligibleLeadIds
Array<string>
leadArchetypeName
string | null
isOrigin
required
boolean
locked
required
boolean
unlockHints
required
Array<object>
object
text
required
string
storylineTemplateId
required
string
storylineName
required
string
availableFrom
string | null
scope
string
Allowed values: global seed modifier
modifierName
string | null
canonLeadId
string | null
characterTied
boolean
canonLead
object
canonId
required
string
name
required
string
pronoun
required
string
Allowed values: he she they it
description
required
string
personality
required
string
backstoryLines
required
Array<object>
object
text
required
string
locked
required
boolean
continuingLeadIds
Array<string>

Example

{
"offers": [
{
"id": "oz_crossing",
"name": "Over the Rainbow",
"eligibleLeadIds": [
"79a3af39-c171-4dfb-b51b-5a684f61525d"
],
"scope": "global",
"canonLead": {
"pronoun": "he"
}
}
],
"continuingLeadIds": [
"79a3af39-c171-4dfb-b51b-5a684f61525d"
]
}

Request parameters or the JSON body do not conform to this operation’s input schema. Correct the request before retrying.

Media type application/json
object
error
required

The HTTP error category. Use the status code to handle failures.

string
Allowed value: Bad Request
message
required

A human-readable explanation. Do not parse this text for program logic.

string

Example

{
"error": "Bad Request",
"message": "Request parameters or the JSON body do not conform to this operation’s input schema. Correct the request before retrying."
}

Authentication is missing or invalid. Supply a valid API key in the Authorization: Bearer header.

Media type application/json
object
error
required

The HTTP error category. Use the status code to handle failures.

string
Allowed value: Unauthorized
message
required

A human-readable explanation. Do not parse this text for program logic.

string

Example

{
"error": "Unauthorized",
"message": "Authentication is missing or invalid. Supply a valid API key in the Authorization: Bearer header."
}

The authenticated account does not have access to the Experience API.

Media type application/json
object
error
required

The HTTP error category. Use the status code to handle failures.

string
Allowed value: Forbidden
message
required

A human-readable explanation. Do not parse this text for program logic.

string

Example

{
"error": "Forbidden",
"message": "The authenticated account does not have access to the Experience API."
}

The resource does not exist or is not accessible to your application.

Media type application/json
object
error
required

The HTTP error category. Use the status code to handle failures.

string
Allowed value: Not Found
message
required

A human-readable explanation. Do not parse this text for program logic.

string

Example

{
"error": "Not Found",
"message": "The resource does not exist or is not accessible to your application."
}

The server could not complete the request. Internal error details are not exposed.

Media type application/json
object
error
required

The HTTP error category. Use the status code to handle failures.

string
Allowed value: Internal Server Error
message
required

A human-readable explanation. Do not parse this text for program logic.

string

Example

{
"error": "Internal Server Error",
"message": "Internal server error"
}