# Shardflux Template drafts API

**Canonical:** https://apis.io/apis/shardflux-dev/shardflux-dev-template-drafts-api/  
**Provider:** Shardflux — https://apis.io/providers/shardflux-dev/  
**Base URL:** https://api.shardflux.dev  
**Documentation:** https://docs.shardflux.dev/reference/http-api.md

Shardflux Template drafts API is one of 18 APIs that [Shardflux](https://apis.io/providers/shardflux-dev/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 2 JSON Schema definitions. Tagged areas include Template Drafts. The published artifact set on APIs.io includes an OpenAPI specification and 2 JSON Schemas.

Draft templates: iterate on states and test instances, then publish a version.

## Operations (18)

| Method | Path | Summary |
|---|---|---|
| GET | `/v1/organizations/{organization_id}/templates/{slug}/draft` | Get the template’s draft |
| POST | `/v1/organizations/{organization_id}/templates/{slug}/draft` | Create the template’s draft (a layered workspace on the draft base) |
| DELETE | `/v1/organizations/{organization_id}/templates/{slug}/draft` | Discard the draft (delete it and end its live test instances) |
| GET | `/v1/templates/{slug}/draft` | Get the template’s draft |
| POST | `/v1/templates/{slug}/draft` | Create the template’s draft (a layered workspace on the draft base) |
| DELETE | `/v1/templates/{slug}/draft` | Discard the draft (delete it and end its live test instances) |
| GET | `/v1/organizations/{organization_id}/templates/{slug}/draft/states` | List the draft’s states, newest first |
| POST | `/v1/organizations/{organization_id}/templates/{slug}/draft/states` | Capture a draft state (disk-only layer_snapshot of the running draft) |
| GET | `/v1/templates/{slug}/draft/states` | List the draft’s states, newest first |
| POST | `/v1/templates/{slug}/draft/states` | Capture a draft state (disk-only layer_snapshot of the running draft) |
| GET | `/v1/organizations/{organization_id}/templates/{slug}/draft/test-instances` | List the draft’s test instances |
| POST | `/v1/organizations/{organization_id}/templates/{slug}/draft/test-instances` | Open a test instance of a draft state (a disposable session workspace) |
| GET | `/v1/templates/{slug}/draft/test-instances` | List the draft’s test instances |
| POST | `/v1/templates/{slug}/draft/test-instances` | Open a test instance of a draft state (a disposable session workspace) |
| POST | `/v1/organizations/{organization_id}/templates/{slug}/draft/publish` | Publish the draft as the template’s next version (save-as-template from the… |
| POST | `/v1/templates/{slug}/draft/publish` | Publish the draft as the template’s next version (save-as-template from the… |
| POST | `/v1/organizations/{organization_id}/templates/{slug}/versions/{version}/test-instances` | Open a test instance of a template version, published or not |
| POST | `/v1/templates/{slug}/versions/{version}/test-instances` | Open a test instance of a template version, published or not |

## Machine-readable artifacts (3)

- **OpenAPI** — https://artifacts.apis.io/shardflux-dev/openapi/shardflux-dev-template-drafts-api-openapi.yml
- **JSONSchema** — https://artifacts.apis.io/shardflux-dev/json-schema/shardflux-dev-workspace-schema.json
- **JSONSchema** — https://artifacts.apis.io/shardflux-dev/json-schema/shardflux-dev-operation-schema.json

## Other Shardflux APIs (12)

- [Shardflux Billing API](https://apis.io/apis/shardflux-dev/shardflux-dev-billing-api/)
- [Shardflux Browser profiles API](https://apis.io/apis/shardflux-dev/shardflux-dev-browser-profiles-api/)
- [Shardflux Client versions API](https://apis.io/apis/shardflux-dev/shardflux-dev-client-versions-api/)
- [Shardflux Egress policy API](https://apis.io/apis/shardflux-dev/shardflux-dev-egress-policy-api/)
- [Shardflux Entitlements API](https://apis.io/apis/shardflux-dev/shardflux-dev-entitlements-api/)
- [Shardflux Feedback API](https://apis.io/apis/shardflux-dev/shardflux-dev-feedback-api/)
- [Shardflux Operations API](https://apis.io/apis/shardflux-dev/shardflux-dev-operations-api/)
- [Shardflux Organizations API](https://apis.io/apis/shardflux-dev/shardflux-dev-organizations-api/)
- [Shardflux Principal API](https://apis.io/apis/shardflux-dev/shardflux-dev-principal-api/)
- [Shardflux Projects API](https://apis.io/apis/shardflux-dev/shardflux-dev-projects-api/)
- [Shardflux Secrets API](https://apis.io/apis/shardflux-dev/shardflux-dev-secrets-api/)
- [Shardflux Template builds API](https://apis.io/apis/shardflux-dev/shardflux-dev-template-builds-api/)

## Tags

Template Drafts

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/shardflux-dev` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/shardflux-dev/shardflux-dev-template-drafts-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/shardflux-dev/.
