AIStoryHub World API

World-building entries (characters, locations, lore, etc.).

Operations 5

GET /stories/{id}/world List world-building entries #
POST /stories/{id}/world Create a world-building entry #
GET /stories/{id}/world/{nodeId} Fetch a world-building entry #
PATCH /stories/{id}/world/{nodeId} Update a world-building entry #
DELETE /stories/{id}/world/{nodeId} Delete a world-building entry #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aistoryhub-co:aistoryhub-co-world-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aistoryhub-co-world-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AIStoryHub World API
  version: 1.0.0
  description: A REST API for reading and creating stories and chapters on AIStoryHub outside the app. Authenticate with a scoped bearer token created under Settings, Developer API. Scopes are explicit, so write access does not imply read access.
  contact:
    url: https://aistoryhub.co/developers
  termsOfService: https://aistoryhub.co/terms
servers:
- url: https://aistoryhub.co/api/v1
security:
- bearerAuth: []
tags:
- name: world
  description: World-building entries (characters, locations, lore, etc.).
paths:
  /stories/{id}/world:
    get:
      operationId: listWorld
      tags:
      - world
      summary: List world-building entries
      x-required-scope: world:read
      parameters:
      - $ref: '#/components/parameters/StoryId'
      - name: type
        in: query
        description: Filter by world type.
        schema:
          type: string
          enum:
          - character
          - species
          - faction
          - location
          - item
          - lore
          - timeline
      responses:
        '200':
          description: World entries.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/WorldNode'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      operationId: createWorld
      tags:
      - world
      summary: Create a world-building entry
      x-required-scope: world:write
      parameters:
      - $ref: '#/components/parameters/StoryId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorldNodeCreate'
      responses:
        '201':
          description: The created world entry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorldNode'
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
  /stories/{id}/world/{nodeId}:
    get:
      operationId: getWorldNode
      tags:
      - world
      summary: Fetch a world-building entry
      x-required-scope: world:read
      parameters:
      - $ref: '#/components/parameters/StoryId'
      - name: nodeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The world entry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorldNode'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
    patch:
      operationId: updateWorldNode
      tags:
      - world
      summary: Update a world-building entry
      x-required-scope: world:write
      parameters:
      - $ref: '#/components/parameters/StoryId'
      - name: nodeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                content:
                  type: string
                tags:
                  type: array
                  items:
                    type: string
                metadata:
                  type: object
                  additionalProperties: true
      responses:
        '200':
          description: The updated world entry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorldNode'
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
    delete:
      operationId: deleteWorldNode
      tags:
      - world
      summary: Delete a world-building entry
      x-required-scope: world:write
      parameters:
      - $ref: '#/components/parameters/StoryId'
      - name: nodeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    WorldNodeCreate:
      type: object
      required:
      - type
      - title
      properties:
        type:
          type: string
          enum:
          - character
          - species
          - faction
          - location
          - item
          - lore
          - timeline
        title:
          type: string
        content:
          type: string
        tags:
          type: array
          items:
            type: string
        metadata:
          type: object
          additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - unauthorized
              - forbidden
              - invalid_request
              - not_found
              - rate_limited
              - internal_error
            message:
              type: string
    WorldNode:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          enum:
          - character
          - species
          - faction
          - location
          - item
          - lore
          - timeline
        title:
          type: string
        content:
          type: string
        tags:
          type: array
          items:
            type: string
        metadata:
          type: object
          additionalProperties: true
        order:
          type: integer
        created_at:
          type:
          - string
          - 'null'
          format: date-time
        updated_at:
          type:
          - string
          - 'null'
          format: date-time
  responses:
    InvalidRequest:
      description: The request body or parameters are invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The token lacks the scope this endpoint requires.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, malformed, invalid, revoked, or expired token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too many requests. Retry after the delay in the `Retry-After` header.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The resource does not exist or you do not own it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    StoryId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ash_...
      description: 'Create a token under Settings, Developer API and send it as `Authorization: Bearer ash_...`. Each endpoint requires one scope, listed per-operation via the `x-required-scope` extension; see https://aistoryhub.co/developers for the full scope list.'