Skip to content

Create a world instance

POST
/instances
curl --request POST \
--url https://api.hiddendoor.co/experience/v1/instances \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "worldSeedName": "oz" }'

Creates a persistent, evolving instance from a published world seed, without creating characters or starting a story. Returns metadata and a Location header pointing to /experience/v1/instances/{instanceId}. Each successful call creates a new instance; creation is not idempotent. Profile preferences and world-access checks apply. A missing account profile or creation access returns 403; an unknown seed returns 404.

POST /instances Request body

Media type application/json
object
worldSeedName
required
string
>= 1 characters <= 200 characters

Example

oz

Example

{
"worldSeedName": "oz"
}

POST /instances Positive response

Media type application/json
object
instanceId
required
string format: uuid
worldSeedName
required

The name used to address the seed at creation.

string
createdAt
required

When this instance was created, in UTC.

string format: date-time

Example

{
"instanceId": "da1cc53b-9d9e-4edb-83e4-d5a9ee713130",
"worldSeedName": "oz",
"createdAt": "2026-11-11T12:00:00Z"
}

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 account cannot create an instance from this world seed, or has no Hidden Door account profile.

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 account cannot create an instance from this world seed, or has no Hidden Door account profile."
}

The world seed does not exist.

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 world seed does not exist."
}

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