| name | adaline-prompts |
| description | Create and manage prompts in Adaline via the v2 API or SDK clients. Use when programmatically creating prompts, updating prompt drafts, listing prompts, or reading prompt/playground data. |
Adaline Prompts
Concepts
Prompts are the central artifact in Adaline's Prompt surface. A prompt has metadata, a draft, optional playground data, and deployable snapshots.
Key terms:
- Prompt — a named artifact inside a project
- Draft — editable prompt config, messages, and tools
- Config — provider/model selection plus flexible
settings
- Messages — ordered role messages with structured
content arrays
- Tools — function definitions with optional HTTP request configuration
- Variables — derived from
{{variable}} placeholders and returned on prompt/draft resources
Configuration
Set these environment variables when credentials are available:
ADALINE_API_KEY — workspace API key from Admin > API Keys
ADALINE_PROJECT_ID — project to create/list prompts in
Base URL: https://api.adaline.ai/v2
Quick Triage
| Symptom | First Fix |
|---|
| List returns empty | Include the correct projectId query parameter |
| Pagination skips records | Use pagination.nextCursor, not legacy page-number pagination |
| Prompt creation fails | Ensure is an array of content objects |