Onshape Metadata API

Access and modify metadata.

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).
Business capability
Product Lifecycle Management BC-820

Operations 11

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 /metadata/d/{did}/{wvm}/{wvmid}/e Get metadata for every element in a document · Get the metadata for all elements in a document #
Ask an LLM
“Can I pull metadata for all elements in a document at once?”
“Is there a way to include computed properties when getting document element metadata?”
Tell an agent
Get metadata for all elements in document {did} at {wvm} {wvmid}.
Fetch every element's metadata in {did} at {wvm} {wvmid} with computed properties set to {includeComputedProperties}.
GET /metadata/d/{did}/{wvm}/{wvmid}/e/{eid} Get metadata for one element in a document · Get the metadata for an element #
Ask an LLM
“What metadata is stored on a single part or feature in a document?”
“Can I get element metadata for a specific configuration?”
Tell an agent
Get metadata for element {eid} in document {did} at {wvm} {wvmid}.
Fetch element {eid} metadata in {did} at {wvm} {wvmid} for configuration {configuration}.
POST /metadata/d/{did}/{wvm}/{wvmid}/e/{eid} Update metadata for an element · Update the metadata for an element #
Ask an LLM
“How do I change the metadata on a part or feature?”
“Can I update element metadata through the API?”
Tell an agent
Update metadata for element {eid} in document {did} at {wvm} {wvmid}.
Set the metadata on element {eid} in {did} at {wvm} {wvmid} for configuration {configuration}.
GET /metadata/d/{did}/{wvm}/{wvmid}/e/{eid}/assembly-debug Get an assembly's metadata with supporting data · Get the metadata for an assembly, including supporting metadata #
Ask an LLM
“Can I get an assembly's metadata along with its supporting metadata?”
“What does the full assembly metadata call return?”
Tell an agent
Get full assembly metadata for element {eid} in document {did} at {wvm} {wvmid}.
Fetch the assembly metadata of {eid} in {did} at {wvm} {wvmid} with supporting metadata.
GET /metadata/d/{did}/{wvm}/{wvmid}/e/{eid}/p Get metadata for all parts in a part studio or assembly · Get the metadata for all parts in a document #
Ask an LLM
“How do I get metadata for every part in a part studio?”
“Can I include computed properties when fetching part metadata?”
Tell an agent
Get metadata for all parts in {wvm} {wvmid} of document {did} (element {eid}).
Fetch part metadata in doc {did} for element {eid}, configuration {configuration}, including computed properties {includeComputedProperties}.
GET /metadata/d/{did}/{wvm}/{wvmid}/e/{eid}/{iden}/{pid} Get metadata for one part in a document · Get the metadata for a part #
Ask an LLM
“What metadata is stored on a single part in a document?”
“Can I get part metadata for a specific configuration?”
Tell an agent
Get metadata for part {pid} of type {iden} on element {eid} in document {did} at {wvm} {wvmid}.
Fetch part {pid} metadata on {eid} in {did} at {wvm} {wvmid} for configuration {configuration}.
POST /metadata/d/{did}/{wvm}/{wvmid}/e/{eid}/{iden}/{pid} Update metadata for a part · Update the metadata for a part #
Ask an LLM
“How do I change the metadata on a single part?”
“Can I update part metadata through the API?”
Tell an agent
Update metadata for part {pid} of type {iden} on element {eid} in document {did} at {wvm} {wvmid}.
Set the metadata on part {pid} on {eid} in {did} at {wvm} {wvmid} for configuration {configuration}.
GET /metadata/d/{did}/{wv}/{wvid} Get metadata for a workspace or version · Get the metadata for a workspace or version #
Ask an LLM
“What metadata is stored on a workspace or version?”
“Can I get metadata for a version at a specific depth?”
Tell an agent
Get metadata for {wv} {wvid} in document {did}.
Fetch {wv} {wvid} metadata in {did} at depth {depth}.
POST /metadata/d/{did}/{wv}/{wvid} Update metadata for a workspace or version · Update the metadata for a workspace or version #
Ask an LLM
“How do I change the metadata on a workspace or version?”
“Can I update workspace or version metadata through the API?”
Tell an agent
Update metadata for {wv} {wvid} in document {did}.
Set the metadata on {wv} {wvid} in {did}.
POST /metadata/standardcontent/d/{did} Update metadata for a standard content part · Update the metadata for a standard content part #
Ask an LLM
“How do I update metadata on a standard content part?”
“Can I change the metadata of a standard content part I inserted?”
Tell an agent
Update metadata for standard content part in document {did}.
Set standard content part metadata in {did} for company {companyId}.
GET /metadata/standardcontent/d/{did}/v/{vid}/e/{eid}/p/{pid} Get metadata for a standard content part · Get the metadata for a standard content part #
Ask an LLM
“What metadata is stored on a standard content part?”
“Can I get standard content part metadata for a specific configuration?”
Tell an agent
Get metadata for standard content part {pid} in document {did} version {vid} element {eid}.
Fetch standard content part {pid} metadata in {did} v{vid} on {eid} for configuration {configuration}.

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-metadata-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-metadata-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onshape REST Metadata 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 (36 KB total) ---
# Full source: https://artifacts.apis.io/onshape/openapi/onshape-metadata-api-openapi.yml