Get a raw document from a space by its document ID
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$documentIdstringRequired
ID of the document in the space
Query parameters
schemastring · enumOptionalPossible values:
Version of the schema used for the document.
Responses
200
Document
application/json
objectstring · enumRequiredPossible values:
get/spaces/{spaceId}/documents/{documentId}
GET /v1/spaces/{spaceId}/documents/{documentId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Document
{
"object": "document",
"data": {},
"nodes": [
{
"object": "block",
"type": "paragraph",
"data": {},
"nodes": [
{
"object": "text",
"leaves": [
{
"object": "leaf",
"text": "Hello world",
"marks": []
}
]
}
]
}
]
}Last updated
Was this helpful?