Onshape Document API

Create and manage documents.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 37

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /documents Search my documents · Get a list of documents that meet the criteria you specify #
Ask an LLM
“How do I find documents I own or share?”
“Can I search documents by name or label?”
Tell an agent
Find documents matching {q}.
List documents in project {project}.
POST /documents Create a new document · Create and upload a document #
Ask an LLM
“How do I create a blank document?”
“Can I make a new document public or owned by a company?”
Tell an agent
Create a document named {name}.
Create document {name} owned by {ownerId} of type {ownerType}.
GET /documents/d/{did}/externaldata/{fid} Download an external data file · Download external data file(s) associated with the document #
Ask an LLM
“How do I download an external data file from a document?”
“Can I skip downloading if the file hasn't changed?”
Tell an agent
Download external data file {fid} from document {did}.
Download external data {fid} of document {did} unless it matches {etag}.
GET /documents/d/{did}/versions List a document's versions · Retrieve versions by document ID #
Ask an LLM
“What versions exist for a document?”
“Can I page through a document's versions?”
Tell an agent
List versions of document {did}.
Show {limit} versions of document {did} starting at {offset}.
POST /documents/d/{did}/versions Create a version of a document · Create version by document ID #
Ask an LLM
“How do I create a new version of a document?”
“Can I mark a version as a release?”
Tell an agent
Create a version named {name} on document {did}.
Create a release version {name} of document {did}.
GET /documents/d/{did}/versions/{vid} Get a document version · Retrieve version by document ID and version ID #
Ask an LLM
“How do I read one version of a document?”
“Can I include parent versions when fetching a document version?”
Tell an agent
Get version {vid} of document {did}.
Show version {vid} of document {did} with parents {parents}.
POST /documents/d/{did}/w/{wid}/e/{eid}/latestdocumentreferences Update external references to latest · Update external references to latest by document ID, workspace ID, and tab ID #
Ask an LLM
“How do I refresh external references to the latest documents?”
“Can I update references for specific elements only?”
Tell an agent
Update external references in document {did}, workspace {wid}, tab {eid}.
Update references for elements {elements} in {did}/{wid}/{eid}.
POST /documents/d/{did}/w/{wid}/moveelement Move tabs between documents · Move tab by document ID and workspace ID #
Ask an LLM
“How do I move tabs from one document workspace into another document?”
“Can I move elements from a named version of a document into a different document?”
Tell an agent
Move elements {elements} from workspace {wid} of document {did} into document {targetDocumentId}.
Move tabs from version {sourceVersionName} in workspace {wid} of document {did} to target workspace {targetWorkspaceId}.
POST /documents/d/{did}/w/{wid}/revertunchangedtorevisions Revert unchanged features to revisions · Revert unchanged to revisions #
Ask an LLM
“How do I turn features that were unchanged into revisions?”
“Can I revert only certain elements to revisions?”
Tell an agent
Revert unchanged features to revisions in document {did}, workspace {wid}.
Revert elements {elements} in {did}/{wid} to revisions.
POST /documents/d/{did}/w/{wid}/syncAppElements Sync app elements in a document · Sync app elements #
Ask an LLM
“How do I sync app elements in a document?”
“Can I sync only certain elements?”
Tell an agent
Sync app elements {elements} in document {did}, workspace {wid}.
Sync app elements {elements} in {did}/{wid} with description {description}.
GET /documents/d/{did}/workspaces List a document's workspaces · Retrieve workspaces by document ID #
Ask an LLM
“What workspaces exist in a document?”
“Can I list only the workspaces of a document?”
Tell an agent
List workspaces in document {did}.
Show all workspaces of document {did}.
POST /documents/d/{did}/workspaces Create a workspace in a document · Create workspace by document ID #
Ask an LLM
“How do I create a new workspace in a document?”
“Can I create a workspace from a history or microversion?”
Tell an agent
Create a workspace named {name} in document {did}.
Create a workspace {name} in {did} from history {fromHistory}.
DELETE /documents/d/{did}/workspaces/{wid} Delete a workspace · Delete workspace by document ID and workspace ID #
Ask an LLM
“How do I delete a workspace from a document?”
“Can I remove a workspace by its ID?”
Tell an agent destructive · confirm first
Delete workspace {wid} from document {did}.
Remove workspace {wid} in {did}.
GET /documents/d/{did}/{wm}/{wmid}/documenthistory Get the history of a version · Retrieve document history by document ID and workspace or microversion ID #
Ask an LLM
“Who made which edits in this version and when?”
“Can I see the document history for a microversion?”
Tell an agent
Get the history of {wm} microversion {wmid} in document {did}.
Show the edit history for version {wm} of document {did}.
GET /documents/d/{did}/{wvm}/{wvmid}/contents List tabs and folders in a document · Retrieve tabs and folders by document ID and workspace or version or… #
Ask an LLM
“How do I list the tabs and folders in a document?”
“Can I see the contents of a document at a specific version?”
Tell an agent
List tabs and folders in document {did} at {wvm} {wvmid}.
Show the contents of {did} at {wvm} {wvmid} as {elementType}.
GET /documents/d/{did}/{wvm}/{wvmid}/elements List tabs in a document · Retrieve tabs by document ID and workspace or version or microversion ID #
Ask an LLM
“How do I list only the tabs in a document?”
“Can I get thumbnails for the tabs in a document?”
Tell an agent
List tabs in document {did} at {wvm} {wvmid}.
Show tabs in {did} at {wvm} {wvmid} with thumbnails {withThumbnails}.
GET /documents/d/{did}/{wvm}/{wvmid}/unitinfo Get the units and precision of a document · Get the selected units and precision by document ID and workspace or version or… #
Ask an LLM
“What units and precision is a document using?”
“Can I check the units of a document at a specific version?”
Tell an agent
Get the units and precision of document {did} at {wvm} {wvmid}.
Show the units used in {did} at {wvm} {wvmid}.
GET /documents/d/{did}/{wv}/{wvid}/currentmicroversion Get the current microversion of a workspace or version · Retrieve current microversion by document ID and workspace or version ID #
Ask an LLM
“What is the current microversion of a workspace?”
“Can I read the latest microversion of a document version?”
Tell an agent
Get the current microversion of {wv} {wvid} in document {did}.
Show the latest microversion of {wv} {wvid} in {did}.
POST /documents/d/{did}/{wv}/{wvid}/e/{eid}/export Export a document to a file format · Export document by document ID, workspace or version ID, and tab ID #
Ask an LLM
“How do I export a document to STEP, STL or PDF?”
“Can I export only certain parts or configurations?”
Tell an agent
Export tab {eid} of {wv} {wvid} in document {did} to {format}.
Export parts {partIds} of {wv} {wvid} in {did} as {format}.
GET /documents/d/{did}/{wv}/{wvid}/insertables List elements available to insert into a document · Retrieve insertables by document ID and workspace or version ID #
Ask an LLM
“Which parts and assemblies can I insert into a document?”
“Can I include sketches and surfaces when listing insertables?”
Tell an agent
List insertable elements in {wv} {wvid} of document {did}.
List insertables in {wv} {wvid} of {did} including {includeAssemblies}.
GET /documents/{did} Get a document's details · Retrieve document by document ID #
Ask an LLM
“What are the details of a document by its ID?”
“Can I look up a document without knowing its name?”
Tell an agent
Get document {did}.
Show the details of document {did}.
POST /documents/{did} Rename or retag a document · Update document attributes by document ID #
Ask an LLM
“How do I rename a document or change its description?”
“Can I make a document public or change its tags?”
Tell an agent
Rename document {did} to {name}.
Set the description of document {did} to {description}.
DELETE /documents/{did} Delete a document · Delete document by document ID #
Ask an LLM
“How do I delete a document?”
“Can I delete a document permanently instead of moving it to trash?”
Tell an agent destructive · confirm first
Delete document {did}.
Permanently delete document {did} with forever {forever}.
GET /documents/{did}/acl Get a document's access control list · Retrieve access control list by document ID #
Ask an LLM
“Who has access to a document and with what permissions?”
“Can I see the access control list of a document?”
Tell an agent
Get the access control list for document {did}.
Show who can view document {did}.
POST /documents/{did}/acl/anonymousAccess Allow or deny anonymous access to a document · Allow or deny anonymous access to a document or publication #
Ask an LLM
“How do I let anonymous users view a document?”
“Can I stop anonymous users from exporting a document?”
Tell an agent
Allow anonymous access to document {did}: {anonymousAccessAllowed}.
Set anonymous export on document {did} to {anonymousAllowsExport}.
POST /documents/{did}/acl/public Make a document public or private · Make a document public or private #
Ask an LLM
“How do I let anonymous users view my design?”
“Can a free account make a document private again?”
Tell an agent
Make document {did} public with anonymous access {anonymousAccessAllowed}.
Set document {did} public: {public}.
POST /documents/{did}/notes Update a document's notes · Update document notes by document ID #
Ask an LLM
“How do I add or edit notes on a document?”
“Can I replace the notes on a document?”
Tell an agent
Set the notes on document {did} to {notes}.
Replace the notes of document {did} with {notes}.
GET /documents/{did}/permissionset Get a document's permission set · Retrieve Document permissions by document ID #
Ask an LLM
“What permission set does a document have?”
“Can I see the permission set of a document by ID?”
Tell an agent
Get the permission set for document {did}.
Show the permission set of document {did}.
POST /documents/{did}/share Share a document with users or companies · Share document by document ID #
Ask an LLM
“How do I share a document with a colleague?”
“Can I share a document with a company and set a permission level?”
Tell an agent
Share document {did} with {entries}.
Share document {did} with {entries} and send them a message: {message}.
DELETE /documents/{did}/share/{eid} Remove someone's view access to a document · Remove document View permissions from a user or other entity #
Ask an LLM
“How do I stop a colleague from viewing a design?”
“Can I revoke access to a company I shared a document with?”
Tell an agent destructive · confirm first
Unshare document {did} with {eid}.
Revoke {entryType} view access to document {did} for user {eid}.
POST /documents/{did}/shareWithSupport Share a document with Onshape support · Share document by document ID with Onshape support #
Ask an LLM
“How do I share a document with Onshape support for help?”
“Can I send a document to support without sharing it with anyone else?”
Tell an agent
Share document {did} with Onshape support.
Send document {did} to support for troubleshooting.
DELETE /documents/{did}/shareWithSupport Stop sharing a document with support · Unshare document with support #
Ask an LLM
“How do I stop sharing a document with Onshape support?”
“Can I withdraw a document from support?”
Tell an agent destructive · confirm first
Unshare document {did} with support.
Withdraw document {did} from support.
GET /documents/{did}/w/{wid}/mergePreview Preview a merge into a workspace · Merge preview of changes that will occur based on document ID, workspace ID and… #
Ask an LLM
“What would change if I merged a document into a workspace?”
“Can I preview a merge before applying it?”
Tell an agent
Preview merging {sourceType} {sourceId} into workspace {wid} of document {did}.
Show the merge preview for {sourceType} {sourceId} into {wid} on {did}.
POST /documents/{did}/w/{wid}/restore/{vm}/{vmid} Restore a version or microversion to a workspace · Restore version or microversion to workspace by document ID, workspace ID, and… #
Ask an LLM
“How do I restore an older version of a document to a workspace?”
“Can I restore a microversion to a workspace?”
Tell an agent
Restore {vm} {vmid} of document {did} to workspace {wid}.
Restore {vm} {vmid} of {did} into {wid} using strategy {defaultRestoreStrategy}.
POST /documents/{did}/workspaces/{wid}/copy Copy a workspace to a new document · Copy workspace by document ID and workspace ID #
Ask an LLM
“How do I copy a workspace into a new document?”
“Can I copy a workspace and make it public or owned by a company?”
Tell an agent
Copy workspace {wid} of document {did} into a new document named {newName}.
Copy workspace {wid} of {did} into a new document owned by {ownerId}.
POST /documents/{did}/workspaces/{wid}/merge Merge a document into a workspace · Merge into workspace by document ID and workspace ID #
Ask an LLM
“How do I merge a document into a workspace?”
“Can I set merge strategies for elements when merging?”
Tell an agent
Merge document {did} into workspace {wid}.
Merge {did} into {wid} using merge strategy {defaultMergeStrategy}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onshape:onshape-document-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onshape-document-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onshape REST Document API
  description: '## Welcome to the Onshape REST API Explorer


    **See the API Explorer Guide for help navigating this page.**


    ### Using this page

    1.'
  termsOfService: https://www.onshape.com/legal/terms-of-use
  contact:
    email: api-support@onshape.zendesk.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.218.84032-34acba44be17
  x-logo:
    url: images/logo-onshape-gray-green-nav-bar.svg
    backgroundColor: '#ffffff'
    altText: Onshape
    href: images/logo-onshape-gray-green-nav-bar.svg
  x-indeterministic-schemas:
  - BTDiffInfo
  - BTParameterSpecArray-2600
  - BTSplineDescription-2118
  - NodeModel
  - BTPFunctionDeclaration-246
  - BTPFunctionOrPredicateDeclaration-247
  - BTPExpression-9
  - SkinModel
  - BTMAnnotation-4664
  x-filter-info: ?restUserRole=PUBLIC
servers:
- url: https://cad.onshape.com/api/v16
  description: Current
security:
- BasicAuth: []
tags:


# --- truncated at 32 KB (109 KB total) ---
# Full source: https://artifacts.apis.io/onshape/openapi/onshape-document-api-openapi.yml