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

# Generate Seo Strategy

> Kick off SEO-strategy generation (Pillar 5 PR D — queue-offloaded).

Synchronously flips ``seo_strategy_status`` to ``'generating'`` and
stashes the submitted form on ``agent_teams.seo_strategy`` so the
SEO page can render an in-flight indicator the moment this returns.
The 8k-token LLM call runs in the worker — the route does NOT hold
a Supavisor session across it. Returns ``{job_id, status:"queued"}``;
the client polls ``GET /api/v1/jobs/{job_id}`` for completion.



## OpenAPI

````yaml /openapi.json post /api/v1/teams/{team_id}/seo-strategy/generate
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/teams/{team_id}/seo-strategy/generate:
    post:
      tags:
        - Teams
      summary: Generate Seo Strategy
      description: |-
        Kick off SEO-strategy generation (Pillar 5 PR D — queue-offloaded).

        Synchronously flips ``seo_strategy_status`` to ``'generating'`` and
        stashes the submitted form on ``agent_teams.seo_strategy`` so the
        SEO page can render an in-flight indicator the moment this returns.
        The 8k-token LLM call runs in the worker — the route does NOT hold
        a Supavisor session across it. Returns ``{job_id, status:"queued"}``;
        the client polls ``GET /api/v1/jobs/{job_id}`` for completion.
      operationId: generate_seo_strategy_api_v1_teams__team_id__seo_strategy_generate_post
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SeoStrategyGenerateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    SeoStrategyGenerateRequest:
      properties:
        website_url:
          type: string
          maxLength: 500
          minLength: 5
          title: Website Url
          description: Target website URL
        target_keywords:
          type: string
          maxLength: 2000
          title: Target Keywords
          description: Target keywords (comma-separated)
          default: ''
        competitor_urls:
          type: string
          maxLength: 2000
          title: Competitor Urls
          description: Competitor URLs (comma-separated)
          default: ''
        goals:
          type: string
          maxLength: 2000
          title: Goals
          description: SEO goals and objectives
          default: ''
      type: object
      required:
        - website_url
      title: SeoStrategyGenerateRequest
      description: Request to generate an SEO strategy for a team.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````