API Reference

Programmatically manage your blueprints and keep them in sync with your codebase. Available to all users.

Available to All Users

API access is available to all users.Generate your API token to get started.

Quick Start

1

Generate an API Token

Go to Settings → API Tokens and create a new token with the appropriate role.

2

Make Your First Request

Use curl or your favorite HTTP client with Bearer authentication:

curl -H "Authorization: Bearer lp_your_token_here" \
     https://lynxprompt.com/api/v1/blueprints
3

Sync from Your CI/CD

Use the wizard's "Auto update via API" feature to automatically include sync instructions in your downloaded files.

Base URL

All API requests should be made to:

https://lynxprompt.com/api/v1

Token Roles

API tokens can be created with different roles that determine what actions they can perform:

RolePermissions
BLUEPRINTS_FULLRead, create, update, and delete blueprints
BLUEPRINTS_READONLYRead-only access to blueprints
PROFILE_FULLRead and update user profile
FULLAll permissions (blueprints + profile)

Token Expiration

Tokens expire after the duration you set (default: 1 week, max: 1 year). Expired tokens return a 401 Unauthorized response with details:

{
  "error": "Token expired",
  "expired_at": "2025-01-15T10:30:00.000Z"
}

Ready to integrate?

Generate your first API token and start syncing.

Go to Settings