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

# Create a Service Line

> Creates a new Service Line within the specified workspace.



## OpenAPI

````yaml POST /service-lines
openapi: 3.1.0
info:
  title: Scrums.com API
  version: 1.0.0
  description: >-
    The Scrums.com Software Engineering Orchestration Platform (SEOP) REST API.
    Every capability — talent, managed delivery, ODS, infrastructure,
    intelligence, and agents — operates through a Service Line (LIN-*). Base
    URL: https://api.scrums.com/v1
servers:
  - url: https://api.scrums.com/v1
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Service Lines
    description: Manage SEOP Service Lines (LIN-*) across all product types.
  - name: Organizations
    description: Top-level account containers (ORG-*).
  - name: Workspaces
    description: Team workspaces nested within an organization (WS-*).
  - name: AI Agent Gateway
    description: Trigger and monitor AI agent runs (AGT-*, RUN-*).
  - name: Observability & Metrics
    description: Health scores, risk signals, and delivery metrics.
  - name: ODS
    description: On-Demand Solutions scoping and request management.
  - name: Talent Marketplace
    description: Submit and manage vetted talent placement requests.
paths:
  /service-lines:
    post:
      tags:
        - Service Lines
      summary: Create a new service line
      description: Creates a new Service Line within the specified workspace.
      operationId: createServiceLine
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceLineInput'
            example:
              name: Mobile Engineering Squad
              workspace_id: WS-26-000021
              product_line: managed_services
              execution_model: ongoing_sla
              billing_model: monthly_retainer
              subscription_id: SUB-26-001122
              project_tags:
                - PROJ-26-004281
              config:
                sprint_length_days: 14
              starts_at: '2026-05-01T00:00:00Z'
      responses:
        '200':
          description: The newly created service line.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ServiceLine'
              example:
                data:
                  id: LIN-26-091844
                  name: Mobile Engineering Squad
                  workspace_id: WS-26-000021
                  organization_id: ORG-26-090500
                  product_line: managed_services
                  execution_model: ongoing_sla
                  billing_model: monthly_retainer
                  status: draft
                  project_tags:
                    - PROJ-26-004281
                  subscription_id: SUB-26-001122
                  config:
                    sprint_length_days: 14
                  started_at: null
                  ends_at: null
                  created_at: '2026-04-15T10:00:00Z'
                  updated_at: '2026-04-15T10:00:00Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    ServiceLineInput:
      type: object
      required:
        - name
        - workspace_id
        - product_line
        - execution_model
        - billing_model
        - subscription_id
      properties:
        name:
          type: string
          example: Mobile Engineering Squad
        workspace_id:
          type: string
          example: WS-26-000021
        product_line:
          type: string
          enum:
            - talent
            - managed_services
            - ods
            - infrastructure
            - intelligence
            - agent_gateway
          example: managed_services
        execution_model:
          type: string
          enum:
            - capacity
            - ongoing_sla
            - timeboxed_outcome
            - infra_managed
            - observability
            - agent_runtime
          example: ongoing_sla
        billing_model:
          type: string
          enum:
            - monthly_retainer
            - milestone
            - usage_based
            - seat_based
          example: monthly_retainer
        subscription_id:
          type: string
          example: SUB-26-001122
        project_tags:
          type: array
          items:
            type: string
          example:
            - PROJ-26-004281
        config:
          type: object
          example:
            sprint_length_days: 14
        starts_at:
          type: string
          format: date-time
          example: '2026-05-01T00:00:00Z'
    ServiceLine:
      type: object
      properties:
        id:
          type: string
          pattern: ^LIN-
          example: LIN-26-084729
        name:
          type: string
          example: Core Platform Squad
        workspace_id:
          type: string
          pattern: ^WS-
          example: WS-26-000021
        organization_id:
          type: string
          pattern: ^ORG-
          example: ORG-26-090500
        product_line:
          type: string
          enum:
            - talent
            - managed_services
            - ods
            - infrastructure
            - intelligence
            - agent_gateway
          example: talent
        execution_model:
          type: string
          enum:
            - capacity
            - ongoing_sla
            - timeboxed_outcome
            - infra_managed
            - observability
            - agent_runtime
          example: capacity
        billing_model:
          type: string
          enum:
            - monthly_retainer
            - milestone
            - usage_based
            - seat_based
          example: monthly_retainer
        status:
          type: string
          enum:
            - draft
            - active
            - paused
            - closed
            - terminated
          example: active
        project_tags:
          type: array
          items:
            type: string
            pattern: ^PROJ-
          example:
            - PROJ-26-004281
        subscription_id:
          type: string
          pattern: ^SUB-
          example: SUB-26-001122
        config:
          type: object
          example:
            timezone: UTC
            sprint_length_days: 14
        started_at:
          type: string
          format: date-time
          example: '2026-01-15T09:00:00Z'
        ends_at:
          type: string
          format: date-time
          nullable: true
          example: null
        created_at:
          type: string
          format: date-time
          example: '2026-01-10T08:30:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-04-01T11:00:00Z'
    Error:
      type: object
      required:
        - code
        - message
        - status
      properties:
        code:
          type: string
          example: not_found
        message:
          type: string
          example: The requested resource was not found.
        status:
          type: integer
          example: 404
  responses:
    BadRequest:
      description: The request was malformed or contained invalid parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: invalid_request
            message: workspace_id is required.
            status: 400
    Unauthorized:
      description: Missing or invalid authentication token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: unauthorized
            message: Bearer token is missing or expired.
            status: 401
    Forbidden:
      description: >-
        The authenticated principal does not have permission to perform this
        action.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: forbidden
            message: You do not have access to this resource.
            status: 403
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````