> ## Documentation Index
> Fetch the complete documentation index at: https://docs.machina.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Skill

> Create a new skill record. Fails with an error if a skill with the same name already exists (optionally scoped to project_id).



## OpenAPI

````yaml POST /skill
openapi: 3.0.1
info:
  title: Machina Sports SDK
  description: >-
    Machina Sports API for seamless AI integration in sports, offering real-time
    insights, personalized content, and fan sentiment analysis.
  version: '1.0'
  termsOfService: http://machina.gg/tos/
  contact:
    email: support@machina.gg
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://{api-address}.org.machina.gg
    description: Production server
    variables:
      api-address:
        default: https://api.machina.gg
        description: Your api-address
  - url: http://local.machina:5001
    description: Local development server
security:
  - ApiToken: []
paths:
  /skill:
    post:
      tags:
        - skills
      summary: Create Skill
      description: >-
        Create a new skill record. Fails with an error if a skill with the same
        name already exists (optionally scoped to project_id).
      operationId: createSkill
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Unique identifier for the skill
                title:
                  type: string
                description:
                  type: string
                status:
                  type: string
                project_id:
                  type: string
                  description: Optional — scopes the uniqueness check to a project
      responses:
        '200':
          description: >-
            Skill created, or a status:false error (e.g. duplicate name) — this
            endpoint returns 200 even on failure, check the `status` field
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    description: Whether the operation succeeded
                    example: true
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                  message:
                    type: string
                    example: skill saved
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                      message:
                        type: string
        '401':
          description: Unauthorized
components:
  securitySchemes:
    ApiToken:
      type: apiKey
      name: x-api-token
      in: header
      description: API key authentication

````