Skip to content

Get an entity

GET
/instances/{instanceId}/entities/{entityId}
curl --request GET \
--url https://api.hiddendoor.co/experience/v1/instances/da1cc53b-9d9e-4edb-83e4-d5a9ee713130/entities/79a3af39-c171-4dfb-b51b-5a684f61525d \
--header 'Authorization: Bearer <token>'

Read a character, item or location in this instance, including its descriptive detail, relationships and gameplay state.

instanceId
required
string format: uuid

Example

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

GET /instances/:instanceId/entities/:entityId Parameter

entityId
required
string format: uuid

Example

79a3af39-c171-4dfb-b51b-5a684f61525d

GET /instances/:instanceId/entities/:entityId Parameter

GET /instances/:instanceId/entities/:entityId Positive response

Media type application/json
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>

Example

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