Skip to content

Create a location

POST
/instances/{instanceId}/locations
curl --request POST \
--url https://api.hiddendoor.co/experience/v1/instances/da1cc53b-9d9e-4edb-83e4-d5a9ee713130/locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "The Wayside Workshop", "highConcept": "A tiny repair shop beside the Yellow Brick Road" }'

Generate a location and save it in this instance. All generation fields are optional, and the generated result may develop the supplied ideas. Each successful call creates a new entity. To use it for a pending story input, submit its identifier to that request; characters move there during play.

instanceId
required
string format: uuid

Example

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

POST /instances/:instanceId/locations Parameter

POST /instances/:instanceId/locations Request body

Media type application/json
object
name

Suggested name; free text is supported.

string
>= 1 characters
highConcept

A short concept to guide generation.

string
>= 1 characters
brief

Guidance for developing the generated entity.

string
>= 1 characters

Example

{
"name": "The Wayside Workshop",
"highConcept": "A tiny repair shop beside the Yellow Brick Road"
}

POST /instances/:instanceId/locations Positive response

Media type application/json
object
entity
required
object
id
required
string format: uuid
type
required
string
Allowed values: character item location
name
required
string
nickNames
required
Array<string>
description
required
string
pronoun
required
string
Allowed values: he she they it
personality
required
string | null
mind
required
number
body
required
number
heart
required
number
energy
required
number
maxEnergy
required
number
conditions
required
object
key
additional properties
object
description
required
string
duration
number
turns
number | null
storyIndex
number | null
properties
required
object
authored
boolean
canonId
string
narrativeRole
string
role
string
characterType
string
tropeNames
Array<string>
displayTropes
object
key
additional properties
string
emotionalState
string
goalsAndBeliefs
Array<string>
narrativeRoles
required
Array<object>
object
narrativeRoleId
required
string format: uuid
targetId
required
string format: uuid
narrativeRole
required
string
displayName
string | null
playerVisible
boolean | null
objective
required
Array<string>
sourceRelationships
Array<object>
object
relationshipId
required
string format: uuid
sourceId
required
string format: uuid
targetId
required
string format: uuid
type
required
string
strength
number | null
description
string | null
duration
number | null
targetRelationships
Array<object>
object
relationshipId
required
string format: uuid
sourceId
required
string format: uuid
targetId
required
string format: uuid
type
required
string
strength
number | null
description
string | null
duration
number | null
aspects
required
Array<object>
object
id
required
string
aspect
required
string
category
required
Array<string>
isHidden
required
boolean
isNotPlayable
required
boolean | null
isActive
required
boolean
containerId
required
string | null format: uuid
locationId
required
string | null format: uuid
contents
Array<object> recursive
originWorldSeed
required
string | null
createdInStoryId
required
string | null format: uuid
storyHistory
required
object
key
additional properties
string
backstory
string | null
lore
required
Array<string>
gameState
required
object
instanceId
required
string format: uuid
world
required
object
worldId
required
string format: uuid
worldSeed
required
string
name
required
string
displayName
required
string
description
required
string | null
characters
required
Array<object>
object
id
required
string format: uuid
type
required
string
Allowed values: character item location
name
required
string
nickNames
required
Array<string>
description
required
string
pronoun
required
string
Allowed values: he she they it
personality
required
string | null
mind
required
number
body
required
number
heart
required
number
energy
required
number
maxEnergy
required
number
conditions
required
object
key
additional properties
object
description
required
string
duration
number
turns
number | null
storyIndex
number | null
properties
required
object
authored
boolean
canonId
string
narrativeRole
string
role
string
characterType
string
tropeNames
Array<string>
displayTropes
object
key
additional properties
string
emotionalState
string
goalsAndBeliefs
Array<string>
narrativeRoles
required
Array<object>
object
narrativeRoleId
required
string format: uuid
targetId
required
string format: uuid
narrativeRole
required
string
displayName
string | null
playerVisible
boolean | null
objective
required
Array<string>
sourceRelationships
Array<object>
object
relationshipId
required
string format: uuid
sourceId
required
string format: uuid
targetId
required
string format: uuid
type
required
string
strength
number | null
description
string | null
duration
number | null
targetRelationships
Array<object>
object
relationshipId
required
string format: uuid
sourceId
required
string format: uuid
targetId
required
string format: uuid
type
required
string
strength
number | null
description
string | null
duration
number | null
aspects
required
Array<object>
object
id
required
string
aspect
required
string
category
required
Array<string>
isHidden
required
boolean
isNotPlayable
required
boolean | null
isActive
required
boolean
containerId
required
string | null format: uuid
locationId
required
string | null format: uuid
contents
Array<object> recursive
originWorldSeed
required
string | null
createdInStoryId
required
string | null format: uuid
storyHistory
required
object
key
additional properties
string
backstory
string | null
lore
required
Array<string>
items
required
Array<object>
object
id
required
string format: uuid
type
required
string
Allowed values: character item location
name
required
string
nickNames
required
Array<string>
description
required
string
pronoun
required
string
Allowed values: he she they it
personality
required
string | null
mind
required
number
body
required
number
heart
required
number
energy
required
number
maxEnergy
required
number
conditions
required
object
key
additional properties
object
description
required
string
duration
number
turns
number | null
storyIndex
number | null
properties
required
object
authored
boolean
canonId
string
narrativeRole
string
role
string
characterType
string
tropeNames
Array<string>
displayTropes
object
key
additional properties
string
emotionalState
string
goalsAndBeliefs
Array<string>
narrativeRoles
required
Array<object>
object
narrativeRoleId
required
string format: uuid
targetId
required
string format: uuid
narrativeRole
required
string
displayName
string | null
playerVisible
boolean | null
objective
required
Array<string>
sourceRelationships
Array<object>
object
relationshipId
required
string format: uuid
sourceId
required
string format: uuid
targetId
required
string format: uuid
type
required
string
strength
number | null
description
string | null
duration
number | null
targetRelationships
Array<object>
object
relationshipId
required
string format: uuid
sourceId
required
string format: uuid
targetId
required
string format: uuid
type
required
string
strength
number | null
description
string | null
duration
number | null
aspects
required
Array<object>
object
id
required
string
aspect
required
string
category
required
Array<string>
isHidden
required
boolean
isNotPlayable
required
boolean | null
isActive
required
boolean
containerId
required
string | null format: uuid
locationId
required
string | null format: uuid
contents
Array<object> recursive
originWorldSeed
required
string | null
createdInStoryId
required
string | null format: uuid
storyHistory
required
object
key
additional properties
string
backstory
string | null
lore
required
Array<string>
locations
required
Array<object>
object
id
required
string format: uuid
type
required
string
Allowed values: character item location
name
required
string
nickNames
required
Array<string>
description
required
string
pronoun
required
string
Allowed values: he she they it
personality
required
string | null
mind
required
number
body
required
number
heart
required
number
energy
required
number
maxEnergy
required
number
conditions
required
object
key
additional properties
object
description
required
string
duration
number
turns
number | null
storyIndex
number | null
properties
required
object
authored
boolean
canonId
string
narrativeRole
string
role
string
characterType
string
tropeNames
Array<string>
displayTropes
object
key
additional properties
string
emotionalState
string
goalsAndBeliefs
Array<string>
narrativeRoles
required
Array<object>
object
narrativeRoleId
required
string format: uuid
targetId
required
string format: uuid
narrativeRole
required
string
displayName
string | null
playerVisible
boolean | null
objective
required
Array<string>
sourceRelationships
Array<object>
object
relationshipId
required
string format: uuid
sourceId
required
string format: uuid
targetId
required
string format: uuid
type
required
string
strength
number | null
description
string | null
duration
number | null
targetRelationships
Array<object>
object
relationshipId
required
string format: uuid
sourceId
required
string format: uuid
targetId
required
string format: uuid
type
required
string
strength
number | null
description
string | null
duration
number | null
aspects
required
Array<object>
object
id
required
string
aspect
required
string
category
required
Array<string>
isHidden
required
boolean
isNotPlayable
required
boolean | null
isActive
required
boolean
containerId
required
string | null format: uuid
locationId
required
string | null format: uuid
contents
Array<object> recursive
originWorldSeed
required
string | null
createdInStoryId
required
string | null format: uuid
storyHistory
required
object
key
additional properties
string
backstory
string | null
lore
required
Array<string>
twistNames
required

Applied world modifiers, including seed defaults.

Array<string>
playerSelectedModifiers
required

The selected subset, excluding seed defaults.

Array<string>
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
storylines
object
key
additional properties
object
id
required
string format: uuid
worldId
required
string format: uuid
templateId
required
string
templateVersion
required
string | null
name
required
string
mcEntityId
required
string | null format: uuid
status
required
string
Allowed values: active completed cancelled
beats
required

The complete resolved beat sequence, including upcoming beats, in order.

Array<object>
object
beatId
required
string
source
required
string
Allowed values: authored inspired
name
required
string
description
required
string
teaser
required
string
entityIds

Canon identifiers, not instance entity UUIDs.

Array<string>
status
required
string
Allowed values: open hit skipped
fulfilledByStoryId
required
string | null format: uuid
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
availableUntil

The offering window end; does not expire an existing storyline.

string | null format: date-time
meta
required
object
currentLocale
string
contentRating

Instance-level override, not the resolved scene or story rating.

string
Allowed values: all_ages teen mature
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Example

{
"entity": {
"type": "character",
"pronoun": "he"
},
"gameState": {
"instanceId": "da1cc53b-9d9e-4edb-83e4-d5a9ee713130",
"world": {
"worldId": "51ca502e-b07b-4ad1-a43a-93d5434f59dc",
"worldSeed": "oz",
"name": "oz",
"displayName": "The Land of Oz",
"description": "A storybook fantasy filled with talking animals, witches, strange creatures, and more!",
"characters": [],
"items": [],
"locations": [],
"twistNames": [],
"playerSelectedModifiers": []
},
"stories": [],
"storylines": {},
"meta": {
"currentLocale": "en-US"
},
"createdAt": "2026-11-11T12:00:00Z",
"updatedAt": "2026-11-12T12:00:00.000Z"
}
}

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 operation conflicts with the current instance or story state. Read the current state before choosing the next action.

Media type application/json
object
error
required

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

string
Allowed value: Conflict
message
required

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

string

Example

{
"error": "Conflict",
"message": "The operation conflicts with the current instance or story state. Read the current state before choosing the next action."
}

The JSON request body exceeds 100 KB. Reduce its size before retrying.

Media type application/json
object
error
required

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

string
Allowed value: Payload Too Large
message
required

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

string

Example

{
"error": "Payload Too Large",
"message": "The JSON request body exceeds 100 KB. Reduce its size before retrying."
}

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