Skip to content

List entities in an instance

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

Read characters, items and locations with their current narrative and gameplay detail. Relationships, inventory and location references use entity identifiers from this instance.

instanceId
required
string format: uuid

Example

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

GET /instances/:instanceId/entities Parameter

offset
integer
0 <= 9007199254740991

GET /instances/:instanceId/entities Parameter

limit
integer
default: 20 >= 1 <= 100

GET /instances/:instanceId/entities Parameter

type
string
Allowed values: character item location

GET /instances/:instanceId/entities Parameter

GET /instances/:instanceId/entities Positive response

Media type application/json
object
entities
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>
nextOffset
required
integer | null
<= 9007199254740991

Example

{
"entities": [
{
"type": "character",
"pronoun": "he"
}
]
}

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