Skip to content
gist.link ↗

projectFiles

Query Deploy API — POST https://deploy.api.gist.link/graphql

Recursive file listing of the project’s sandbox working copy. Any org member.

deploy:query:projectFiles

The calling IAM key must hold this permission (or a wildcard that covers it: deploy:query:* or deploy:*) and the access token must have been minted with audience=deploy. See Permissions.

type Query {
projectFiles(projectId: Int!): [WorkspaceFile!]!
}
Argument Type Required Description
projectId Int! Yes —

[WorkspaceFile!]! — see the Deploy types reference.

Terminal window
curl https://deploy.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query ProjectFiles($projectId: Int!) { projectFiles(projectId: $projectId) { path type size } }",
"variables": {
"projectId": 10
}
}
JSON