AIStoryHub Voice API
Voiceprints: reusable 33-dial Style Lab voice profiles, and the one pinned to a story.
Voiceprints: reusable 33-dial Style Lab voice profiles, and the one pinned to a story.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/aistoryhub-co:aistoryhub-co-voice-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: AIStoryHub Voice 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: Voice
description: 'Voiceprints: reusable 33-dial Style Lab voice profiles, and the one pinned to a story.'
paths:
/stories/{id}/voice:
get:
operationId: getStoryVoice
tags:
- Voice
summary: Fetch the story's pinned Voiceprint
x-required-scope: voice:read
parameters:
- $ref: '#/components/parameters/StoryId'
responses:
'200':
description: The pinned Voiceprint, or null if none is pinned.
content:
application/json:
schema:
type: object
properties:
voiceprint_id:
type:
- string
- 'null'
format: uuid
voiceprint:
anyOf:
- $ref: '#/components/schemas/Voiceprint'
- type: 'null'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
patch:
operationId: setStoryVoice
tags:
- Voice
summary: Pin or clear the story's Voiceprint
x-required-scope: voice:write
parameters:
- $ref: '#/components/parameters/StoryId'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- voiceprint_id
properties:
voiceprint_id:
type:
- string
- 'null'
format: uuid
description: A Voiceprint id you own, or null to clear the pin.
responses:
'200':
description: The pin's new state.
content:
application/json:
schema:
type: object
properties:
voiceprint_id:
type:
- string
- 'null'
format: uuid
'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'
/voiceprints:
get:
operationId: listVoiceprints
tags:
- Voice
summary: List your Voiceprint library
x-required-scope: voice:read
parameters:
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 25
- name: offset
in: query
schema:
type: integer
minimum: 0
default: 0
responses:
'200':
description: A page of Voiceprints.
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Voiceprint'
pagination:
$ref: '#/components/schemas/Pagination'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
post:
operationId: createVoiceprint
tags:
- Voice
summary: Create a Voiceprint
description: Unspecified dials default to 50 (neutral).
x-required-scope: voice:write
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VoiceprintCreate'
responses:
'201':
description: The created Voiceprint.
content:
application/json:
schema:
$ref: '#/components/schemas/Voiceprint'
'400':
$ref: '#/components/responses/InvalidRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
/voiceprints/{id}:
get:
operationId: getVoiceprint
tags:
- Voice
summary: Fetch a single Voiceprint
x-required-scope: voice:read
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The voiceprint.
content:
application/json:
schema:
$ref: '#/components/schemas/Voiceprint'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
patch:
operationId: updateVoiceprint
tags:
- Voice
summary: Update a Voiceprint's fields
x-required-scope: voice:write
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VoiceprintCreate'
responses:
'200':
description: The updated voiceprint.
content:
application/json:
schema:
$ref: '#/components/schemas/Voiceprint'
'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: deleteVoiceprint
tags:
- Voice
summary: Delete a Voiceprint
description: 'Irreversible. The first call always fails with `confirmation_required`; retry with `confirm: true` to actually delete.'
x-required-scope: voice:write
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
type: object
properties:
confirm:
type: boolean
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'
'409':
description: 'Needs `confirm: true` to proceed.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
components:
schemas:
Pagination:
type: object
properties:
limit:
type: integer
offset:
type: integer
total:
type: integer
Voiceprint:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
description:
type:
- string
- 'null'
is_default:
type: boolean
voice_fingerprint:
type:
- string
- 'null'
description: Freeform notes distilling this voice's signature quirks.
exemplar_prose:
type:
- string
- 'null'
description: A pasted passage exemplifying this voice.
dials:
$ref: '#/components/schemas/VoiceDials'
created_at:
type:
- string
- 'null'
format: date-time
updated_at:
type:
- string
- 'null'
format: date-time
VoiceDials:
type: object
description: The 33 Style Lab dials, each 0-100. Unspecified dials default to 50 (neutral) on create.
properties:
technical_influence:
type: integer
minimum: 0
maximum: 100
emotional_directness:
type: integer
minimum: 0
maximum: 100
sentence_complexity:
type: integer
minimum: 0
maximum: 100
metaphor_density:
type: integer
minimum: 0
maximum: 100
cynicism_hope:
type: integer
minimum: 0
maximum: 100
description: 0 = cynical, 100 = hopeful.
pacing:
type: integer
minimum: 0
maximum: 100
description: 0 = slow/deliberate, 100 = fast/propulsive.
action_heavy_opening:
type: integer
minimum: 0
maximum: 100
paragraph_length:
type: integer
minimum: 0
maximum: 100
dialogue_ratio:
type: integer
minimum: 0
maximum: 100
time_linearity:
type: integer
minimum: 0
maximum: 100
description: 0 = fragmented/nonlinear, 100 = strictly linear.
visual_emphasis:
type: integer
minimum: 0
maximum: 100
physical_detail_level:
type: integer
minimum: 0
maximum: 100
setting_detail:
type: integer
minimum: 0
maximum: 100
interiority_access:
type: integer
minimum: 0
maximum: 100
narrator_presence:
type: integer
minimum: 0
maximum: 100
humor_level:
type: integer
minimum: 0
maximum: 100
profanity_level:
type: integer
minimum: 0
maximum: 100
vocabulary_register:
type: integer
minimum: 0
maximum: 100
description: 0 = plain/colloquial, 100 = elevated/literary.
tactile_emphasis:
type: integer
minimum: 0
maximum: 100
auditory_emphasis:
type: integer
minimum: 0
maximum: 100
olfactory_emphasis:
type: integer
minimum: 0
maximum: 100
body_awareness:
type: integer
minimum: 0
maximum: 100
temperature_texture:
type: integer
minimum: 0
maximum: 100
fragmentation:
type: integer
minimum: 0
maximum: 100
repetition_effect:
type: integer
minimum: 0
maximum: 100
time_dilation:
type: integer
minimum: 0
maximum: 100
technical_accuracy:
type: integer
minimum: 0
maximum: 100
systemic_focus:
type: integer
minimum: 0
maximum: 100
description: 0 = individual-focused, 100 = systems/institution-focused.
ambiguity:
type: integer
minimum: 0
maximum: 100
description: 0 = resolved/clear, 100 = deliberately ambiguous.
power_dynamics_visibility:
type: integer
minimum: 0
maximum: 100
numeric_density:
type: integer
minimum: 0
maximum: 100
acronym_tolerance:
type: integer
minimum: 0
maximum: 100
mechanism_surface:
type: integer
minimum: 0
maximum: 100
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
VoiceprintCreate:
type: object
required:
- name
properties:
name:
type: string
description:
type: string
is_default:
type: boolean
description: Make this the writer's default Voiceprint. Unsets any other default.
voice_fingerprint:
type: string
exemplar_prose:
type: string
dials:
$ref: '#/components/schemas/VoiceDials'
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'
NotFound:
description: The resource does not exist or you do not own it.
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'
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.'