Get a story
const url = 'https://api.hiddendoor.co/experience/v1/instances/da1cc53b-9d9e-4edb-83e4-d5a9ee713130/stories/b79d72ef-92fb-4bcd-917a-9886e62d41d8';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.hiddendoor.co/experience/v1/instances/da1cc53b-9d9e-4edb-83e4-d5a9ee713130/stories/b79d72ef-92fb-4bcd-917a-9886e62d41d8 \ --header 'Authorization: Bearer <token>'Read a story’s complete public turn history, current objectives, cast and storyline references. isActive is true while active, false when cancelled, and null when completed.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Example
da1cc53b-9d9e-4edb-83e4-d5a9ee713130GET /instances/:instanceId/stories/:storyId Parameter
Example
b79d72ef-92fb-4bcd-917a-9886e62d41d8GET /instances/:instanceId/stories/:storyId Parameter
Responses
Section titled “ Responses ”GET /instances/:instanceId/stories/:storyId Positive response
object
object
object
Public events in order, including the complete history of earlier turns.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Ending text, when present. The event marks the story ending even when text is absent.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Entities selected as influences when setting up the story.
Entities active in the story context.
object
object
Example
{ "turns": [ { "events": [ { "event": "IMPOSSIBLE" } ] } ]}Request parameters or the JSON body do not conform to this operation’s input schema. Correct the request before retrying.
object
The HTTP error category. Use the status code to handle failures.
A human-readable explanation. Do not parse this text for program logic.
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.
object
The HTTP error category. Use the status code to handle failures.
A human-readable explanation. Do not parse this text for program logic.
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.
object
The HTTP error category. Use the status code to handle failures.
A human-readable explanation. Do not parse this text for program logic.
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.
object
The HTTP error category. Use the status code to handle failures.
A human-readable explanation. Do not parse this text for program logic.
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.
object
The HTTP error category. Use the status code to handle failures.
A human-readable explanation. Do not parse this text for program logic.
Example
{ "error": "Internal Server Error", "message": "Internal server error"}