Skills
List skills
Newest first, without the content.
Required scope: skills:read.
path Parameters
id^agt_[0-9A-Za-z]{22}… · requiredThe id of the agent (agt_…).
query Parameters
limitcursorThe nextCursor of the previous page, with the same filters.
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
List skills › Responses
Create a skill
Writes know-how the agent loads only when the conversation needs it. In the prompt travels only the name and the description; the content is loaded by the agent when it is about to do that task, with a loading tool the agent receives on its own as soon as it has at least one skill. You do not grant it and it does not appear in the agent tools. An agent holds up to 30 skills.
Required scope: skills:write.
path Parameters
id^agt_[0-9A-Za-z]{22}… · requiredThe id of the agent (agt_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Idempotency-KeyMakes the request safe to retry. Once it starts running, its final response (2xx, 4xx or 5xx) is kept for 24 hours and the same key gets it back, without repeating the effect. A request rejected before it runs leaves the key free. A replayed create omits the secret. The same key with a different request is rejected with 409 idempotency_key_reused.
Create a skill › Request Body
name\S · requiredHow you see it.
description\S · requiredOne line that says WHEN to load it. It is the only part of the skill that travels in the prompt, in every message, so keep it short.
content\S · requiredThe full instructions, in Markdown. The agent loads them when it is about to do that task.
slug^[a-z0-9]+(-[a-z0-9]…The identifier the agent uses to load it. It cannot change. Defaults to the name in lowercase with hyphens. Creating again with the same slug and the same content returns the same skill; with different content it is a 409.
requiresSlugs of other skills of the same agent that the agent receives first, in full, every time it loads this one. One level only: a required skill cannot require another. Up to 5.
Create a skill › Responses
objectidslugnamedescriptionrequirescreatedAtupdatedAtcontentMarkdown.
Retrieve a skill
Includes the content.
Required scope: skills:read.
path Parameters
id^agt_[0-9A-Za-z]{22}… · requiredThe id of the agent (agt_…).
skillId^skl_[0-9A-Za-z]{22}… · requiredThe id of the skill (skl_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Retrieve a skill › Responses
objectidslugnamedescriptionrequirescreatedAtupdatedAtcontentMarkdown.
Delete a skill
Deletes the skill from your organization and removes it from every agent that had it, not only this one. Answers 409 while another skill requires it.
Required scope: skills:write.
path Parameters
id^agt_[0-9A-Za-z]{22}… · requiredThe id of the agent (agt_…).
skillId^skl_[0-9A-Za-z]{22}… · requiredThe id of the skill (skl_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Delete a skill › Responses
Deleted.
Update a skill
Changes only what you send. The slug cannot change. The change reaches every agent that has this skill.
Required scope: skills:write.
path Parameters
id^agt_[0-9A-Za-z]{22}… · requiredThe id of the agent (agt_…).
skillId^skl_[0-9A-Za-z]{22}… · requiredThe id of the skill (skl_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Update a skill › Request Body optional
name\Sdescription\Scontent\SrequiresSlugs of other skills of the same agent that the agent receives first, in full, every time it loads this one. One level only: a required skill cannot require another. Up to 5.
Update a skill › Responses
objectidslugnamedescriptionrequirescreatedAtupdatedAtcontentMarkdown.