Get a specific file from a space revision by its file ID
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$revisionIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$fileIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$Query parameters
metadatabooleanOptionalDefault:
If false is passed, "git" mutable metadata will not returned. Passing false can optimize performances of the lookup.
truecomputedbooleanOptionalDefault:
If false is passed, content will not be computed
trueResponses
200
OK
application/json
idstringRequired
namestringRequired
contentTypestringRequired
downloadURLstringRequired
sizenumberRequired
get/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
GET /v1/spaces/{spaceId}/revisions/{revisionId}/files/{fileId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"id": "text",
"name": "text",
"contentType": "text",
"downloadURL": "text",
"size": 1,
"dimensions": {
"width": 1,
"height": 1
},
"git": {
"oid": "text",
"path": "text"
}
}Last updated
Was this helpful?