Storage
Upload and store files directly within your GitBook organization.
Was this helpful?
Upload and store files directly within your GitBook organization.
Was this helpful?
Was this helpful?
Whether you're hosting images, documents, or other assets, Storage endpoints allow you to integrate those files into your documentation and spaces seamlessly.
Generate a pre-signed URL that can be used to upload a file to storage
The unique id of the organization
Successfully generated signed URL for file upload
Bad Request
{
"object": "storage-signed-url",
"url": "https://example.com",
"key": "text"
}
POST /v1/orgs/{organizationId}/storage/upload HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"file": {
"name": "text",
"type": "text",
"size": 1
},
"kind": "customization_font"
}