Pagination
Retrieve list results in batches using cursor-based pagination.
All list endpoints in the CAD ROOMS API use cursor-based pagination to return results in manageable batches. The only exception is List ECO files, which returns all files in a single response.
Endpoints such as GET /projects/{projectId}/files and GET /projects/{projectId}/ecos use the same pagination parameters and response format.
Query parameters
limit(integer, default 100): Maximum number of records to return per page. Accepts values from 1 to 1000.cursor(string, default None): Cursor indicating where to resume retrieving results. Omit this parameter when requesting the first page.
Response format
All paginated responses follow a consistent structure:
data: Array of records for the current page, returned in the endpoint’s defined sort order. Contains an empty array ([]) if no records are found.nextCursor: Cursor used to retrieve the next page. Returnsnullwhen no additional results are available.
Example: Retrieve all project files
Step 1: Request the first page
Send a request with the desired limit. Omit the cursor parameter when requesting the first page.
Example response:
Step 2: Request the next page
Use the nextCursor value from the previous response as the cursor parameter in your next request.
Step 3: Continue until all records are retrieved
Repeat this process until nextCursor is null, indicating that you have reached the last page.
Additional considerations
- Sort order: Each list endpoint has a predefined sort order, documented in its API reference.
- Cursor handling: Cursors are opaque strings. Pass them back exactly as received, without modifying or interpreting their contents.
- Filtering: Some endpoints support additional filters, such as
statusfor ECOs, andpath,authorId,since, anduntilfor contributions. These filters can be used alongside pagination parameters. - Total count: Some list endpoints support
include=totalCount. When specified, the response also includestotalCount, representing the total number of records that match the request across all pages. Counting is optional because it can be slower for large lists.