Skip to content
Endless Documentation
Custom skills

Create custom skill

POST
/skills

Creates a custom skill and returns the created row.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: skills:write

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json
  1. body
organization_id*string
Match^org_
id?string
Formatuuid
name*string
Length1 <= length <= 120
description*string
Length1 <= length <= 1000
body*string
Length1 <= length
files?array<>
source?string
Value in"custom""community"
author?string
Lengthlength <= 200
project_id?string
Formatuuid
visibility?string
Value in"private""workspace"
workspace_role?string
Value in"viewer""editor"
grants?array<>
Itemsitems <= 100

Response Body

OK

application/json
  1. response
skill*
created*boolean
Example Request
curl -X POST 'https://api.endless.app/skills' \  -H 'Content-Type: application/json' \  -d '{  "organization_id": "string",  "name": "string",  "description": "string",  "body": "string"}'
Example Response
{  "skill": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "codename": "string",    "organization_id": "string",    "source": "built-in",    "name": "string",    "description": "string",    "body": "string",    "files": "string",    "author": "string",    "project_scoped": true,    "visibility": "private",    "workspace_role": "viewer",    "color": "red",    "created_by_id": "string",    "mod_shortcut_id": "string",    "listing_id": "5322d4a9-51d2-4408-82fb-01ffecfb8304",    "listing_version": -2147483648,    "listing_edited_at": "2019-08-24T14:15:22Z",    "copied_from_skill_id": "d0c7598b-b4c6-4427-9a7e-0034297c97e2",    "deleted_at": "2019-08-24T14:15:22Z",    "deleted_by_id": "string",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "created": true}