Create a skill (as a draft)

POSThttps://api.floconnector.com/v1/skills
Scope
skills.write
Rate limit
the key's write budget, 60 a minute

The body and any files land together as version 1. name and description may be left out when the body opens with a frontmatter block that carries them; the block is stripped either way. The skill is a draft that no AI client can see until it is published: call POST /v1/skills/{id}/publish, or send publish: true here with a key that holds skills.publish.

Body

The fields it takes:

collectionstringrequired

The collection: its id or slug.

namestringoptional

Short and plain; becomes half the tool name. Taken from frontmatter if omitted.

Max length 80

descriptionstringoptional

WHEN to use the skill. Taken from frontmatter if omitted.

Max length 1024

bodystringrequired

The instructions, in markdown, up to 20480 bytes. A leading YAML frontmatter block is read and stripped.

iconstringoptional

A single emoji mark for the skill in the dashboard. Never shown to a model.

Max length 16

filesarray of objectoptional

Up to 25 files in references/, scripts/ or assets/.

Up to 25 items

ShowHide 2 fields of each item
pathstringrequired

"<folder>/<name>" with folder one of references, scripts, assets, e.g. references/tone.md

contentstringrequired

Text only, up to 32768 bytes.

changelogstringoptional

What v1 is and why it exists, for the history. Always send one.

Max length 200

publishbooleanoptional

Also publish it (needs skills.publish). Default false: it is a draft.

Responses

201Created
skillobject

The skill after the write.

ShowHide 14 fields
idstring

The skill's id.

tool_namestring

The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>.

slugstring

The skill's slug, the last part of its tool name. Renaming the skill does not change it.

namestring

The display name.

descriptionstring

When to use the skill. AI clients see it as the tool's description.

iconstringnullable

The emoji mark shown in the dashboard. Null for the default mark.

statusenum

draft = not visible to any AI client; active = published; archived = kept, but served to no one.

draftactivearchived
originenum

How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value.

dashboardmcplibrary
collectionobject

The collection the skill belongs to.

ShowHide 3 fields
idstring

The collection's id.

slugstring

The collection's slug, the middle part of the tool name of every skill in it.

namestring

The collection's display name.

libraryobjectnullable

The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library.

ShowHide 11 fields
library_idstring

The library entry's id.

slugstring

The library entry's slug.

namestring

The library entry's name.

modeenum

managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes.

managedcopy
read_onlyboolean

True for a managed install: its content cannot be edited here until it is made editable.

installed_versioninteger

The library version this skill carries. 0 when it was installed from an entry that was not published yet.

current_versioninteger

The latest version the library has published.

library_statusenum

The entry's state in the library. retired = FloConnector no longer maintains it.

draftpublishedretired
installed_atstringnullable

When the skill was installed from the library, ISO 8601.

detached_atstringnullable

When a managed install was made editable, ISO 8601. Null if that never happened.

update_availableboolean

True for a copy that sits behind the library's latest published version. Always false for a managed install.

versioninteger

The skill's current version number, or the version being shown when a past one was asked for.

filesarray of object

The skill's files, as paths.

ShowHide 3 fields of each item
folderenum

The folder the file sits in: references, scripts or assets.

referencesscriptsassets
namestring

The file name, extension included.

pathstring

<folder>/<name>: the path the body links to, and the one to send when changing the file.

created_atstring

When the skill was created, ISO 8601.

updated_atstring

When the skill last changed, ISO 8601.

changed_pathsarray of string

The documents this call changed: SKILL.md for the body, plus file paths. Empty when no new version was written.

changelog_recordedboolean

True when the call wrote a new version, which carries the changelog. False when nothing differed or only the name, description or icon changed: no version was written and the changelog was not kept.

dangling_linksarray of stringoptional

Paths under references/, scripts/ or assets/ that the body mentions but the skill does not carry. Advisory: the write still went through. Left out when there are none.

400validation: a field failed validation; field names it.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

401unauthorized: no key, or an unknown, revoked or expired key.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

404not_found: the thing is not in this workspace.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

Errors lists every error code and what to do about it.