Skip to content

Get outstanding story input

GET
/instances/{instanceId}/stories/{storyId}/inputs
curl --request GET \
--url https://api.hiddendoor.co/experience/v1/instances/da1cc53b-9d9e-4edb-83e4-d5a9ee713130/stories/b79d72ef-92fb-4bcd-917a-9886e62d41d8/inputs \
--header 'Authorization: Bearer <token>'

Read the durable input requests currently blocking this story, including prompts, eligible entities or offered choices. Requests are identified by their persisted begin event and do not expire with story options or conversations. An empty list means no input is outstanding.

instanceId
required
string format: uuid

Example

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

GET /instances/:instanceId/stories/:storyId/inputs Parameter

storyId
required
string format: uuid

Example

b79d72ef-92fb-4bcd-917a-9886e62d41d8

GET /instances/:instanceId/stories/:storyId/inputs Parameter

GET /instances/:instanceId/stories/:storyId/inputs Positive response

Media type application/json
object
inputRequests
required
Array
One of: discriminator: type
object
eventId
required
string format: uuid
storyId
required
string format: uuid
prompt
required
string
type
required
string
Allowed value: entity
entityType
required
string
Allowed values: character item location
eligibleEntityIds
required
Array<string>
highConceptTerms
Array<string>
narrativeRole
string
inputs
required

Generation prompts for the requested entity.

Array<string>

Example

{
"inputRequests": [
{
"eventId": "81563a95-1576-49c2-af93-9e7c9cb4709e",
"storyId": "b79d72ef-92fb-4bcd-917a-9886e62d41d8",
"type": "entity",
"entityType": "character",
"eligibleEntityIds": [
"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"
}