Create a Skill
Skills API
Create Skill
Create a new Skill in your workspace
POST
Create a Skill
Using our API via a dedicated deployment? Just replace
api.langdock.com with your deployment’s base URL: <deployment-url>/api/publicRequired Scopes
This endpoint requires theSKILL_API scope.
Requires the
createSkills workspace permission.Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Skill name. Maximum: 64 characters. |
slug | string | No | Stable Skill slug. Must use lowercase letters, numbers, and dashes. Maximum: 100 characters. |
description | string | No | Description used to explain when the Skill should apply. Maximum: 1024 characters. |
instructions | string | Yes | Skill instructions. Maximum: 50000 characters. |
integrationIds | string[] | No | Integration UUIDs to attach to the Skill. Each integration must be enabled in your workspace. |
Example
Response Format
Success Response (201 Created)
Error Handling
| Status Code | Description |
|---|---|
| 400 | Invalid request body or inaccessible integrationIds |
| 401 | Invalid or missing API key |
| 403 | Missing SKILL_API scope, Skills product access, or create permission |
| 409 | Skill slug conflict |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.
Authorizations
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Body
application/json
Skill name.
Required string length:
1 - 64Skill instructions.
Required string length:
1 - 50000Stable Skill slug.
Maximum string length:
100Pattern:
^[a-z0-9-]+$Description used to explain when the Skill should apply.
Maximum string length:
1024Integration IDs to attach to the Skill.
Response
Skill created successfully