Skip to content
Get an API key

POST /skills/draft

Updated 16 Sep 20261 min read
POST/skills/draftTry it
Basehttps://api.mockflow.com/v1Scopesai:generate

Returns a draft (name, description, system prompt, placeholder, tags) for a description and an output type. Nothing is saved; send it to POST /skills when you are happy with it. Charged in AI credits.

Authorization

Authorizationstringheaderrequired

Bearer <key>. The key needs ai:generate scope. Create and manage keys in the developer console; what each scope unlocks is on the scopes page.

Body

application/json
descriptionstringrequired
outputTypestringrequired

Response

200 · application/json
namestringrequired
descriptionstring
outputTypestringrequired
categoryenum<string>

One of general, brainstorm, diagrams, planning or media. Defaults to general.

systemPromptstringrequired
placeholderstring
tagsstring[]
modelstring

Errors

402plan_limit

The workspace plan does not allow this, or AI credits are exhausted.

429rate_limited

Too many requests.

Was this page helpful?

Sign in to MockFlow

The same account you use in the app and on the API.

Forgot your password?
or
Continue with GoogleContinue with Microsoft