Create a skill

post/v1/skills

Creates a reference or action skill. kind, name, body required; description, visibility optional. Optional source_thread relationship.

Requires a bearer token: Authorization: Bearer <token>.

Request

cURL
curl -X POST https://api.wellapp.ai/v1/skills \
  -H "Authorization: Bearer $WELL_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "data": {
    "type": "skill",
    "attributes": {
      "kind": "action",
      "name": "Monthly close in six steps",
      "body": "## Steps\n1. Lock the period\n2. Reconcile Mercury\n3. Match Stripe payouts\n4. Post accruals\n5. Review with Dani\n6. Ship the report",
      "visibility": "private"
    }
  }
}'
Request body
{
  "data": {
    "type": "skill",
    "attributes": {
      "kind": "action",
      "name": "Monthly close in six steps",
      "body": "## Steps\n1. Lock the period\n2. Reconcile Mercury\n3. Match Stripe payouts\n4. Post accruals\n5. Review with Dani\n6. Ship the report",
      "visibility": "private"
    }
  }
}

Responses

201Skill created (with body).

{
  "data": {
    "type": "skill",
    "id": "a1…",
    "attributes": {
      "kind": "action",
      "name": "Monthly close in six steps",
      "visibility": "private"
    },
    "relationships": {
      "source_thread": {
        "data": {
          "type": "ManyToOne",
          "id": "00000000-0000-4000-8000-000000000001"
        }
      },
      "created_by": {
        "data": {
          "type": "ManyToOne",
          "id": "00000000-0000-4000-8000-000000000001"
        }
      }
    }
  }
}

400Validation error.

{
  "code": "BAD_REQUEST",
  "status": 400,
  "title": "Bad Request",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}

401Unauthorized.

{
  "code": "UNAUTHORIZED",
  "status": 401,
  "title": "Unauthorized",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}