Skip to content

archivistai/api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archivist API Examples

Code examples and usage patterns for the Archivist AI public REST API.

Getting Started

  1. Create an API key at app.myarchivist.ai/profile?section=dev
  2. Set your key as an environment variable:
    export ARCHIVIST_API_KEY="your-api-key-here"
  3. Browse the examples below or explore the full API reference

Examples

Example Language Description
quickstart.py Python List campaigns, characters, and sessions
quickstart.ts TypeScript Same flow using fetch
quests.py Python Create and manage quests
journals.py Python Create and list journal entries
ask.py Python RAG chat over campaign knowledge
pagination.py Python Iterate through all pages of large collections
error_handling.py Python Retry logic, rate limits, error parsing
types.ts TypeScript Importable response type definitions
curl/basics.sh cURL Common operations as shell commands

API Base URL

https://api.myarchivist.ai

All endpoints require the x-api-key header for authentication.

Resources

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors