API Endpoints
The Precital API provides the following endpoints:Audio Analysis
Analyze audio files to extract musical characteristics:POST /v1/audio-analyses- Create a new audio analysisGET /v1/audio-analyses- List all audio analysesGET /v1/audio-analyses/{id}- Get a specific audio analysis
Lyric Analysis
Analyze song lyrics to extract themes, moods, and content indicators:POST /v1/lyric-analyses- Create a new lyric analysisGET /v1/lyric-analyses- List all lyric analysesGET /v1/lyric-analyses/{id}- Get a specific lyric analysis
Press Releases
Generate professional press releases for music releases:POST /v1/press-releases- Generate a new press releaseGET /v1/press-releases- List all press releasesGET /v1/press-releases/{id}- Get a specific press release
Credits
Manage and check your workspace’s credit balance:GET /v1/credits- Get credit balance and estimated remaining operations
Health
Check API availability:GET /v1/health- Health check endpoint (no authentication required)
Base URL
All API requests should be made to:Authentication
All endpoints except/health require authentication using an API key in the X-API-Key header.
Response Format
All responses are in JSON format. Successful responses return a200 status code, while errors return appropriate HTTP status codes (400, 401, 404, 429, 500, etc.).
Pagination
List endpoints support cursor-based pagination using thecursor and limit query parameters.
Rate Limits
API requests are subject to rate limiting. If you exceed the rate limit, you’ll receive a429 Too Many Requests response with a Retry-After header.

