/v1/extensions/createCreate an extension
Creates a private extension for the authenticated organization. The optional presets array currently supports openclaw.
| Field | Location | Required | Description |
|---|---|---|---|
| type | body | yes | Extension type. Currently only agent is supported. |
| name | body | yes | Human-readable extension name. |
| description | body | no | Optional extension description. |
| prompt | body | yes | Base agent prompt used whenever the extension runs. |
| presets | body | no | Optional list of preset configurations. Currently supports openclaw. |
curl -X POST "https://api.driftstone.ai/v1/extensions/create" \
-H "Authorization: Bearer dk-..." \
-H "Content-Type: application/json" \
-d '{
"type": "agent",
"name": "README reviewer",
"description": "Reviews README updates before publishing.",
"prompt": "Inspect the README and suggest concise release-note updates.",
"presets": ["openclaw"]
}'