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: Sprixen Sequences API
description: Sprixen AI Game Asset Generator, REST API & MCP Server
version: '1.0'
contact: {}
servers:
- url: https://api.sprixen.com
description: Production
- url: http://localhost:8080
description: Local Development
tags:
- name: Sequences
paths:
/v1/sprites/{spriteId}/sequences:
post:
operationId: SequencesController_create
summary: Create a sequence for a sprite
description: Creates a composed animation sequence by ordering existing animations into clips. No credits are charged — manual composition is free. Only animations belonging to the same sprite may be referenced.
parameters:
- name: spriteId
required: true
in: path
description: Sprite ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSequenceDto'
responses:
'201':
description: Sequence created
'400':
description: Invalid input or clip animation not found/mismatched
'403':
description: Access denied to this sprite
'404':
description: Sprite not found
tags:
- Sequences
security:
- bearer: []
get:
operationId: SequencesController_findBySprite
summary: List sequences for a sprite
parameters:
- name: spriteId
required: true
in: path
description: Sprite ID
schema:
type: string
responses:
'200':
description: Sequences list returned
'403':
description: Access denied to this sprite
'404':
description: Sprite not found
tags:
- Sequences
security:
- bearer: []
/v1/sequences/{id}:
get:
operationId: SequencesController_findOne
summary: Get a sequence by ID (clips expanded)
description: 'Returns the sequence with each clip expanded to include its referenced Animation record. If an animation was deleted, that clip surfaces with animation: null and error: "animation_deleted".'
parameters:
- name: id
required: true
in: path
description: Sequence ID
schema:
type: string
responses:
'200':
description: Sequence returned with expanded clips
'403':
description: Access denied
'404':
description: Sequence not found
tags:
- Sequences
security:
- bearer: []
patch:
operationId: SequencesController_update
summary: Update a sequence
description: All fields are optional. Providing clips triggers full replacement of clipsJson and recomputes durationMs. Each clip's animationId is re-validated against the sprite.
parameters:
- name: id
required: true
in: path
description: Sequence ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateSequenceDto'
responses:
'200':
description: Sequence updated
'400':
description: Invalid input
'403':
description: Access denied
'404':
description: Sequence not found
tags:
- Sequences
security:
- bearer: []
delete:
operationId: SequencesController_remove
summary: Soft-delete a sequence
description: Sets deletedAt on the sequence record. The sequence disappears from listings but data is preserved for potential recovery.
parameters:
- name: id
required: true
in: path
description: Sequence ID
schema:
type: string
responses:
'204':
description: Sequence soft-deleted
'403':
description: Access denied
'404':
description: Sequence not found
tags:
- Sequences
security:
- bearer: []
components:
schemas:
UpdateSequenceDto:
type: object
properties:
name:
type: string
example: renamed-sequence
description: New name for the sequence
loopMode:
type: string
enum:
- forever
- once
- pingpong
description: 'How the sequence loops: forever, once, or pingpong'
clips:
description: Full replacement of clips array. If provided, all existing clips are replaced.
type: array
items:
$ref: '#/components/schemas/SequenceClipDto'
metadata:
type: object
description: Free-form metadata (tags, notes, etc.)
example:
tags:
- combat
- boss
TransitionOutDto:
type: object
properties:
type:
type: string
enum:
- cut
- hold
- crossfade
example: cut
description: 'Transition type: cut (instant), hold (freeze a frame), crossfade (opacity blend)'
durationMs:
type: number
example: 200
description: Duration in ms — required for hold and crossfade, ignored for cut
holdFrameIndex:
type: number
example: 7
description: 'For hold: which frame index to freeze (default: last frame)'
required:
- type
SequenceClipDto:
type: object
properties:
id:
type: string
example: c1
description: Local clip ID — stable across reorders (drag-drop key)
animationId:
type: string
example: clx_abc123
description: ID of the Animation record this clip references
repeat:
type: number
example: 2
description: How many times to repeat this clip. Use -1 for terminal infinite loop.
speedMultiplier:
type: number
example: 1
description: Speed multiplier for this clip. Default 1.0.
transitionOut:
description: Transition to play after this clip ends
allOf:
- $ref: '#/components/schemas/TransitionOutDto'
required:
- id
- animationId
- repeat
CreateSequenceDto:
type: object
properties:
name:
type: string
example: intro-to-attack
description: Human-readable name for the sequence
loopMode:
type: string
enum:
- forever
- once
- pingpong
default: forever
description: 'How the sequence loops: forever, once, or pingpong'
clips:
description: Ordered list of clips that make up the sequence
type: array
items:
$ref: '#/components/schemas/SequenceClipDto'
metadata:
type: object
description: Free-form metadata (tags, notes, etc.)
example:
tags:
- combat
- boss
required:
- name
- clips
securitySchemes:
api-key:
scheme: bearer
bearerFormat: JWT
type: http
description: Sprixen API key (spx_live_...)
name: Authorization
in: header
cookie:
type: apiKey
in: cookie
name: sprixen_session