List Specs
API Reference
List Specs
List all specs with pagination and filtering. Perfect for displaying user spec history, recent specs, or filtered views.
GET
List Specs
List all specifications with support for pagination and filtering by status or endpoint type.
Get completed specs only:
Paginate through results:
Get all deep specs:
Get failed specs for debugging:
Combine filters:
Overview
- Cost: Free (no credits required)
- Use Cases: Display spec history, build dashboards, monitor spec status
- Response Time: Instant
- Returns: Paginated array of specs with metadata
Endpoint
Headers
Query Parameters
Parameter Details
limit- Minimum: 1
- Maximum: 100
- Default: 20
- Controls how many specs are returned per request
- Minimum: 0
- Used for pagination (e.g., skip=20 for page 2 with limit=20)
fast_spec- Only show Fast Spec generationsdeep_spec- Only show Deep Spec generations
pending- Queued but not startedprocessing- Currently generatingcompleted- Successfully finishedfailed- Generation failed
Response
Success Response
Response Fields
Spec Object Fields
Code Examples
cURL Examples
Get first 20 specs:JavaScript/Node.js
TypeScript
Python
Common Use Cases
1. Display Recent Specs Dashboard
2. Monitor Failed Specs
3. Export Completed Specs
4. Build Pagination Component
Best Practices
Pagination
- Use reasonable page sizes (20-50 specs)
- Cache results when appropriate
- Show loading states while fetching
Filtering
- Combine filters to reduce result sets
- Use
status=completedfor user-facing spec lists - Use
status=failedfor debugging/monitoring
Performance
- Don’t fetch all specs at once if you have many
- Use pagination for large datasets
- Consider implementing infinite scroll with
skipparameter
Error Handling
- Always check response status codes
- Handle empty result sets gracefully
- Show appropriate messages when no specs match filters
Next: Find Specs (Search)
Search specs using regex patterns for advanced filtering.
Authorizations
API key for authentication. Get your API key from https://pre.dev/projects/key (Solo) or https://pre.dev/enterprise/dashboard?page=api (Enterprise). Use format: Bearer YOUR_API_KEY
Query Parameters
Number of results per page (1-100)
Required range:
1 <= x <= 100Example:
20
Number of records to skip for pagination
Required range:
x >= 0Example:
0
Filter by endpoint type
Available options:
fast_spec, deep_spec Example:
"fast_spec"
Filter by processing status
Available options:
pending, processing, completed, failed Example:
"completed"

