Skip to main content
Returns a paginated list of all extracted file entities belonging to a project. Each file represents a source document (PDF, drawing set, spec book, etc.) that Plangrep has ingested and processed. Use the filtering parameters to narrow results by name, classification, or processing status.

Endpoint

GET https://plangrep.com/api/open/v1/projects/{projectId}/files

Path Parameters

projectId
string
required
The unique identifier of the project whose files you want to list.

Query Parameters

limit
integer
default:"100"
Maximum number of records to return per page. Must be between 1 and 500.
cursor
string
Pagination cursor returned as nextCursor from a previous response. Omit to fetch the first page.
compact
boolean
When true, artifact URL fields are stripped from each entity, reducing payload size. Useful when you only need metadata.
sheets
string
Comma-separated list of sheet IDs to restrict results to files that contain those sheets.
fileId
string
Filter to a specific file by its ID.
fileName
string
Case-insensitive substring match against the file name.
classification
string
Filter by file classification. One of: plans, specifications, documents, addenda, mixed, other.
status
string
Filter by processing status string (e.g. complete, processing, failed).

Response

Returns a ProjectFileEntityListResponse object.

Pagination Fields

total
integer
Total number of files matching the current filters across all pages.
limit
integer
The page size limit that was applied to this response.
cursor
string
The cursor value used for this page (echoed back from the request).
nextCursor
string
Opaque cursor to pass as cursor to retrieve the next page. null when there are no more pages.
returnedCount
integer
Number of file entities actually returned in this response.
hasMore
boolean
true if additional pages are available beyond this response.
pageInfo
object
Relay-style page info object.

Data Fields

files
ProjectFileEntity[]
Array of extracted file entities.

Example Request

curl -X GET "https://plangrep.com/api/open/v1/projects/proj_abc123/files?limit=25&classification=plans&compact=false" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Example Response

{
  "total": 42,
  "limit": 25,
  "cursor": null,
  "nextCursor": "eyJvZmZzZXQiOjI1fQ==",
  "returnedCount": 25,
  "hasMore": true,
  "pageInfo": {
    "startCursor": "eyJvZmZzZXQiOjB9",
    "endCursor": "eyJvZmZzZXQiOjI0fQ==",
    "hasPreviousPage": false,
    "hasNextPage": true
  },
  "files": [
    {
      "fileId": "file_001",
      "fileName": "Architectural_Plans_SetA.pdf",
      "classification": "plans",
      "status": "complete",
      "pageCount": 48,
      "artifacts": [
        { "type": "thumbnail", "url": "https://..." }
      ]
    }
  ]
}