Create a Skill
Creates a Skill in your organization. AdCrunch makes the slug from the name. To set a different slug, send one. The answer is 409 if the slug already exists in your organization.
/context/skills/AuthorizationBearer token · headerrequiredSend Authorization: Bearer <credential>. Two credentials work.
An API key (acr_…) is what a server integration uses. Create one in the AdCrunch console under Settings → API keys — see https://docs.adcrunch.dev/account/api-keys. A key is bound to the organization that was active when you created it, and it keeps acting on that organization whatever you do later. It carries the permissions of the member who created it.
A session issued by the AdCrunch sign-in flow also works, which is how the console calls this service from the browser.
Either way the organization comes from the credential. There is no organization parameter.
application/jsonbodystringrequiredThe playbook instructions (markdown).
descriptionstringrequiredWhen to use this Skill — what agents read to discover it.
namestringrequiredDisplay name.
slugstringOptional explicit slug handle; normalized to kebab-case. Defaults to one derived from the name.
The Skill as created.
bodystringrequiredThe agent instructions themselves — the SKILL.md-equivalent, in markdown.
createdAtnumberrequiredMilliseconds since the Unix epoch, UTC.
createdBystringrequireddescriptionstringrequiredidstringrequirednamestringrequiredrevisionnumberrequiredIncrements on every write. Send it back as base_revision to edit; a stale one answers 409.
slugstringrequiredupdatedAtnumber | nullrequiredMilliseconds since the Unix epoch, UTC.
No credential, or one that does not resolve. Send an API key or a session. See the security scheme. error is unauthorized.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
unauthorizedmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
The caller does not hold skill:write. error is forbidden.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
forbiddenmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
Another Skill in this organization already holds that slug. error is slug_conflict.
slugstringrequiredThe slug that is already taken.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
slug_conflictmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
The name and slug together contain no letter or digit, so no handle can be derived. error is invalid_slug. A body that fails the schema answers with the framework shape instead.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
messagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.