Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. 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.
openapi: 3.2.0
info:
title: AIStoryHub Skills 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: Skills
description: The prose-instruction skills catalog installable onto this connection.
paths:
/skills:
get:
operationId: listSkills
tags:
- Skills
summary: List the skills catalog
description: First-party prose-instruction skills plus any custom skills the token owner has written, flagged with which are installed on this connection.
x-required-scope: skills:read
responses:
'200':
description: The skills catalog.
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Skill'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
/skills/{slug}:
get:
operationId: loadSkill
tags:
- Skills
summary: Load a skill's prose instructions
description: Fails if the skill isn't installed on this connection.
x-required-scope: skills:read
parameters:
- name: slug
in: path
required: true
schema:
type: string
responses:
'200':
description: The skill's full instructions.
content:
application/json:
schema:
$ref: '#/components/schemas/Skill'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
/skills/{slug}/export:
get:
operationId: exportSkill
tags:
- Skills
summary: Download a skill as a Claude Code SKILL.md file
description: A snapshot of the revision installed at download time. Re-download after a skill is revised to pick up the current version.
x-required-scope: skills:read
parameters:
- name: slug
in: path
required: true
schema:
type: string
responses:
'200':
description: The SKILL.md file.
content:
text/markdown:
schema:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
components:
responses:
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'
schemas:
Skill:
type: object
properties:
slug:
type: string
name:
type: string
description:
type: string
installed:
type: boolean
instructions:
type: string
description: Present on the single-skill GET; omitted from the catalog list.
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
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.'