Skip to content

List stories

GET
/instances/{instanceId}/stories
curl --request GET \
--url 'https://api.hiddendoor.co/experience/v1/instances/da1cc53b-9d9e-4edb-83e4-d5a9ee713130/stories?offset=0&limit=20' \
--header 'Authorization: Bearer <token>'

Read stories in this instance, newest first, with their complete public turn histories and current objectives. Continue with nextOffset until it is null.

instanceId
required
string format: uuid

Example

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

GET /instances/:instanceId/stories Parameter

offset
integer
0 <= 9007199254740991

GET /instances/:instanceId/stories Parameter

limit
integer
default: 20 >= 1 <= 100

GET /instances/:instanceId/stories Parameter

GET /instances/:instanceId/stories Positive response

Media type application/json
object
stories
required
Array<object>
object
storyId
required
string format: uuid
isActive
required
boolean | null
name
required
string
summary
string | null
objectives
required
Array<object>
object
id
required
string format: uuid
parentId
required
string | null format: uuid
displayName
required
string | null
objective
required
string
outcome
required
string
ownerId
required
string | null format: uuid
isActive
required
boolean
activeModifiers
required
Array<string>
turns
required
Array<object>
object
turnId
required
string format: uuid
createdAt
required
string format: date-time
events
required

Public events in order, including the complete history of earlier turns.

Array
One of: discriminator: event
object
eventId
required
string format: uuid
event
required
string
Allowed value: IMPOSSIBLE
data
required
object
id
string
text
required
string
meta
object
sourceStat
string
sourceStatEntityId
string format: uuid
locationId
required
string | null format: uuid
playerCharacterId
required
string | null format: uuid
influenceEntityIds
required

Entities selected as influences when setting up the story.

Array<string>
activeEntityIds
required

Entities active in the story context.

Array<string>
artifact
required
object
storyName
required
string
storyLogline
required
string
storyHighlights
Array<string>
plotCardTitle
required
string | null
plotCardLogline
required
string | null
suggestedIntents
required
object
key
additional properties
Array<Array>
playerSelectedModifiers
required
Array<string>
storylineId
string | null format: uuid
storylineBeatId
string | null
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
nextOffset
required
integer | null
<= 9007199254740991

Example

{
"stories": [
{
"turns": [
{
"events": [
{
"event": "IMPOSSIBLE"
}
]
}
]
}
]
}

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"
}