Skip to content

API Overview

The VisiHub API is a RESTful JSON API for managing spreadsheets, users, and collaboration features programmatically.

https://api.visihub.com/v1

All API requests require a valid JWT token in the Authorization header:

Authorization: Bearer <token>

See the Authentication guide for details on obtaining tokens.

  • All request bodies must be JSON with Content-Type: application/json (except file uploads which use multipart/form-data).
  • Query parameters are used for filtering and pagination.

All responses return JSON. Successful responses include the requested data:

{
"id": "file_abc123",
"name": "quarterly-report.sheet",
"created_at": "2026-01-15T10:30:00Z"
}

Error responses include an error code and message:

{
"error": {
"code": "not_found",
"message": "The requested file does not exist."
}
}

See Errors for the full list of error codes.

List endpoints return paginated results. Use the page and per_page query parameters:

GET /v1/files?page=2&per_page=25

Responses include pagination metadata in the headers:

HeaderDescription
X-Total-CountTotal number of records
X-Total-PagesTotal number of pages
X-PageCurrent page number
X-Per-PageRecords per page

API requests are rate-limited per account. Current limits are returned in response headers:

HeaderDescription
X-RateLimit-LimitMaximum requests per window
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp when the window resets
  • Endpoints — full listing of all available endpoints.
  • Errors — error codes and how to handle them.