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

# Convert Source To Space

> Turn a source written in AGO into a space: each of its documents gets a path.



## OpenAPI

````yaml /openapi-v1.json post /api/v1/spaces/convert
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/spaces/convert:
    post:
      tags:
        - Spaces
      summary: Convert Source To Space
      description: >-
        Turn a source written in AGO into a space: each of its documents gets a
        path.
      operationId: core_api_v1_controllers_spaces_convert_source_to_space
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpaceConvertIn'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceOut'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    SpaceConvertIn:
      properties:
        source_id:
          description: UUID of a source written in AGO (not synced from another system).
          title: Source Id
          type: string
      required:
        - source_id
      title: SpaceConvertIn
      type: object
    SpaceOut:
      properties:
        object:
          default: space
          title: Object
          type: string
        id:
          title: Id
          type: string
        name:
          title: Name
          type: string
        address:
          title: Address
          type: string
        level:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Your access to this space: 'read', 'propose' (page changes become
            proposals) or 'write'.
          title: Level
        page_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Page Count
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      required:
        - id
        - name
        - address
      title: SpaceOut
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.