/
SP
sphireinc
/
Foundry API
Search skmtc…
⌘K
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Subscribe
v1
latest
OpenAPI 3.1.0
2026-07-17
46
42
32.6 KB
auth
Authenticate and create a session
post
/login
Request body
LoginRequest
required
username
string
required
password
string
required
totp_code
string
Response
Session created
AuthSession
required
authenticated
boolean
required
username
string
required
name
string
email
string
role
string
capabilities
string[]
required
mfa_complete
boolean
csrf_token
string
ttl_seconds
integer
All 46 operations
post
Authenticate and create a session
post
Destroy the current session
get
Get current session information
get
List active sessions
post
Revoke specific sessions
post
Initialize TOTP setup
post
Enable TOTP after verification
post
Disable TOTP for a user
get
Get system status and health information
get
Get capabilities and available features
get
List documents with pagination and filtering
get
Get detailed document information
post
Create a new document
post
Save changes to an existing document
post
Lock a document for exclusive editing
post
Release a document lock
get
Get document revision history
get
List documents in trash
post
Restore a document from trash
post
Move document to trash
get
List media files with pagination
post
Upload a new media file
post
Move media file to trash
get
List available backups
post
Create a new backup
get
Get operations status
post
Trigger site rebuild
get
Get available settings sections
get
Get settings form for a section
post
Save settings for a section
get
Get custom fields configuration
post
Save custom fields configuration
get
List all users
post
Create or update a user
post
Delete a user
get
List available themes
post
Install a new theme
post
Switch to a different theme
get
List available plugins
post
Enable a plugin
get
Get audit log entries
get
Get basic site information
get
Get content by path or ID
get
Get paginated content collections
get
Get AI Writer plugin settings
post
Generate content using AI