clerk.create_machine
Create a machine in a connected Clerk instance for machine-to-machine authentication.
Sensitive — the response may include a machine secret_key on creation; do not log or expose it.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Cost = 10 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Machine display name (1–255 characters). | |
| scoped_machines | No | Machine ids (mch_...) this machine may access (max 150). | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. | |
| default_token_ttl | No | Default M2M token lifetime in seconds (minimum 1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| machine | No | Created machine object from the Backend API. |