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

# Set up the onboarding repository

> Idempotently creates the user's project for a GitHub repo — project row, repo link, env vars, and skill indexing commit in one transaction. Repeat calls for the same repo return the already-linked project.



## OpenAPI

````yaml api-reference/openapi.account.json POST /profile/onboarding/repo
openapi: 3.1.0
info:
  title: Aether Account & Integrations API
  version: 0.1.0
  description: >-
    Account, billing, and integration-management endpoints used by the Aether
    web app and CLI. Root-mounted; NOT part of the versioned /v1 contract.
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /profile/onboarding/repo:
    post:
      tags:
        - profile
      summary: Set up the onboarding repository
      description: >-
        Idempotently creates the user's project for a GitHub repo — project row,
        repo link, env vars, and skill indexing commit in one transaction.
        Repeat calls for the same repo return the already-linked project.
      operationId: setupOnboardingRepo
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetupOnboardingRepoRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupOnboardingRepoResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Gateway
components:
  schemas:
    SetupOnboardingRepoRequest:
      additionalProperties: false
      properties:
        env_content:
          maxLength: 49152
          type: string
        installation_id:
          format: int64
          minimum: 1
          type: integer
        repo_url:
          minLength: 1
          type: string
      required:
        - repo_url
        - installation_id
      type: object
    SetupOnboardingRepoResponse:
      additionalProperties: false
      properties:
        already_linked:
          type: boolean
        project_id:
          format: uuid
          type: string
      required:
        - project_id
        - already_linked
      type: object
    ErrorResponse:
      additionalProperties: false
      properties:
        code:
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````