Skip to main content
GET
List Specs
List all specifications with support for pagination and filtering by status or endpoint type.

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
skip
  • Minimum: 0
  • Used for pagination (e.g., skip=20 for page 2 with limit=20)
endpoint
  • fast_spec - Only show Fast Spec generations
  • deep_spec - Only show Deep Spec generations
status
  • pending - Queued but not started
  • processing - Currently generating
  • completed - Successfully finished
  • failed - Generation failed

Response

Success Response

Response Fields

Spec Object Fields

Code Examples

cURL Examples

Get first 20 specs:
Get completed specs only:
Paginate through results:
Get all deep specs:
Get failed specs for debugging:
Combine filters:

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=completed for user-facing spec lists
  • Use status=failed for debugging/monitoring

Performance

  • Don’t fetch all specs at once if you have many
  • Use pagination for large datasets
  • Consider implementing infinite scroll with skip parameter

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

Authorization
string
header
default:YOUR_API_KEY
required

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

limit
integer
default:20

Number of results per page (1-100)

Required range: 1 <= x <= 100
Example:

20

skip
integer
default:0

Number of records to skip for pagination

Required range: x >= 0
Example:

0

endpoint
enum<string>

Filter by endpoint type

Available options:
fast_spec,
deep_spec
Example:

"fast_spec"

status
enum<string>

Filter by processing status

Available options:
pending,
processing,
completed,
failed
Example:

"completed"

Response

Specs retrieved successfully

specs
object[]
required

Array of spec objects matching the filters

total
integer
required

Total number of specs matching the filters

Example:

42

hasMore
boolean
required

Whether more pages are available

Example:

true