Store an Onshape API key pair
onshape_set_api_keyStore and verify an Onshape access key and secret key without a browser, then save the validated pair to keychain or file for authenticated CAD workflows.
Instructions
Store an Onshape access key and secret key directly, without a browser. Use when the user already has a key pair from https://cad.onshape.com/user/developer/apiKeys. The pair is verified against Onshape before it is saved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | No | Where to keep the credential: auto (keychain, else file), keychain, or file. | |
| base_url | No | Onshape API base URL (default https://cad.onshape.com). | |
| access_key | Yes | Onshape access key. | |
| secret_key | Yes | Onshape secret key. |