Cloud storage
Box mock API
Stateful Box replica: folders, files (multipart upload, copy, download redirect), shared links, collaborations, comments, search and signed webhooks.
At a glance
- Operations
- 299
- Stateful operations
- 34
- Stateful resources
- 7
- Webhook events
- 0
- Vendor API version
- 2024.0
- Verification
- Spec-verified
How it works
Use Box without calling Box, Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer MockBoxToken0123456789 State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Folders | 10 |
| Files | 13 |
| Shared links | 0 |
| Collaborations | 5 |
| Comments | 3 |
| Search | 1 |
| Webhooks | 4 |
Webhooks
Events your handlers can receive
This API sends no webhooks.
Coverage
299 operations
34 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 263 |
| Files | 13 |
| Folders | 10 |
| Collaborations | 5 |
| Webhooks | 4 |
| Comments | 3 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
7 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Box, Inc. API description, licensed under Apache-2.0.
- Box, Inc. API documentation
- Source specification
Each collection holds up to 1 MiB of records per token; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Uploads are multipart on /2.0/files/content and also on the vendor upload path /api/2.0/files/content; the runtime rejects bodies above 1 MiB with 413 (VS_MAX_BODY_BYTES). File bytes are not stored: the sha1 is a stand-in (random 40-hex, not a content hash) and GET /files/{id}/content answers 302 to /dl/{id} on the same host, which serves stub bytes. Folders and files may be created under any parent id (an unknown parent is not rejected); a recursive folder delete removes only the folder record, not its descendants; folder and file copies are shallow. Webhooks (FILE.UPLOADED, FILE.DELETED, FILE.RENAMED, FOLDER.CREATED, COLLABORATION.CREATED, COMMENT.CREATED) are signed with box-signature-primary using the VS webhook setting as primary key and only fire for items directly under the webhook target (the item itself, its parent folder, or the root folder 0); the delivery event name carries the target, for example FILE.UPLOADED@<target id>, while the payload trigger stays FILE.UPLOADED. Other Box operations (enterprise, metadata, retention, sign, web links, ...) answer with schema-valid stateless responses; the GET /shared_items variants that Box documents as separate operations on one route are not individually reproducible.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Box, Inc. Box is a trademark of its owner.