Introduction
Using the Wispera API
Wispera provides an API to easily retrieve prompts and run them as part of your application. Prompts can then be managed independently of application code allowing you to continually enhance your AI features without code changes.
Authentication
All API endpoints are authenticated using Bearer tokens. To use the API, follow these steps:
1. Obtain Access Token
First, call the Wispera authorization endpoint to receive an access token:
2. Token Response
You will receive a response containing your access token:
3. Using the Access Token
Include the access token in the authorization header for all API requests:
API Object Types
The Wispera API provides access to the following main object types:
- Personas: Define AI personalities and their characteristics
- Audiences: Specify target user groups for AI interactions
- Prompts: Manage AI instruction templates
- Clauses: Handle reusable prompt components
- Assistants: Combine personas, audiences, and prompts with LLMs
- Packs: Organize and group related AI resources
- Playgrounds: Test and experiment with AI interactions
Each object type has its own set of endpoints for creating, reading, updating, and deleting resources. Refer to the specific sections in this documentation for detailed information about working with each type.