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

# Get the layout

> The compiled company: buildings with policy, floors, intake and pipeline, and their offices.


## OpenAPI

```yaml openapi.json get /v1/companies/{campus}/layout
openapi: 3.1.0
info:
  title: Ocean One API
  version: 2.5.0
servers:
  - url: https://api.plungeai.com
paths:
  /v1/companies/{campus}/layout:
    get:
      operationId: get-v1-companies-campus-layout
      tags:
        - Companies
      summary: The compiled company
      description: "Where things stand: buildings (with `location`, `pipeline`, and `connected` for a local building) and their offices. Positions come from document order only, so a re-apply never reshuffles."
      security:
        - ozkBearer: []
      parameters:
        - name: campus
          in: path
          required: true
          schema:
            type: string
          description: The company’s slug (`plunge`), never a row id
        - name: format
          in: query
          schema:
            type: string
            enum:
              - json
              - yaml
              - markdown
              - text
          description: Response format; overrides Accept (an unknown value is 400 invalid_format)
      responses:
        "200":
          description: The compiled tree Response format negotiates via the `format` field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
          content:
            application/json:
              schema:
                type: object
                properties:
                  campus:
                    type: object
                    properties:
                      slug:
                        type: string
                      name:
                        type: string
                      mode:
                        type: string
                        enum:
                          - supervised
                          - tiered
                          - autonomous
                        description: The live mode (a PUT …/mode wins over the document)
                      manager:
                        type:
                          - object
                          - "null"
                        properties:
                          kind:
                            type: string
                            enum:
                              - user
                              - team
                          id:
                            type: string
                        required:
                          - kind
                          - id
                      workspace:
                        type: object
                        properties:
                          company:
                            type:
                              - string
                              - "null"
                    required:
                      - slug
                      - name
                      - mode
                  buildings:
                    type: array
                    items:
                      type: object
                      properties:
                        slug:
                          type: string
                        name:
                          type: string
                        campus:
                          type: string
                        order:
                          type: integer
                          description: "Document order: the plot it stands on"
                        location:
                          type: string
                          enum:
                            - cloud
                            - local
                        project:
                          type:
                            - string
                            - "null"
                        mode:
                          type: string
                          enum:
                            - supervised
                            - tiered
                            - autonomous
                        manager:
                          type:
                            - object
                            - "null"
                          properties:
                            kind:
                              type: string
                              enum:
                                - user
                                - team
                            id:
                              type: string
                          required:
                            - kind
                            - id
                        workspace:
                          type: object
                          properties:
                            project:
                              type:
                                - string
                                - "null"
                            team:
                              type:
                                - string
                                - "null"
                        policy:
                          type: object
                          properties:
                            rubric:
                              type: string
                            gates:
                              type: object
                              additionalProperties:
                                type: string
                            budget:
                              type: object
                              properties:
                                day_usd:
                                  type:
                                    - number
                                    - "null"
                                item_usd:
                                  type:
                                    - number
                                    - "null"
                        floors:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              team:
                                type:
                                  - string
                                  - "null"
                              offices:
                                type: array
                                items:
                                  type: string
                        intake:
                          type: array
                          items:
                            type: object
                            additionalProperties: true
                        pipeline:
                          type: array
                          items:
                            type: object
                            required:
                              - id
                              - kind
                            properties:
                              id:
                                type: string
                              kind:
                                type: string
                                enum:
                                  - office
                                  - parallel
                                  - sequential
                                  - gate
                                  - then
                              offices:
                                type: array
                                items:
                                  type: string
                                description: office, parallel, sequential
                              retry:
                                type:
                                  - string
                                  - "null"
                              skip:
                                type:
                                  - string
                                  - "null"
                              gate:
                                type: string
                                description: gate
                              building:
                                type: string
                                description: then
                        connected:
                          type: boolean
                          description: A cloud building is always connected
                      required:
                        - slug
                        - location
                        - pipeline
                        - connected
                    description: In document order
                  offices:
                    type: array
                    items:
                      type: object
                      properties:
                        building:
                          type: string
                        slug:
                          type: string
                        name:
                          type: string
                        floor:
                          type: string
                        order:
                          type: integer
                        source:
                          type: string
                          enum:
                            - ref
                            - inline
                            - runner
                      required:
                        - building
                        - slug
                        - floor
                        - order
                required:
                  - campus
                  - buildings
                  - offices
            text/yaml:
              schema:
                type: string
            text/markdown:
              schema:
                type: string
            text/plain:
              schema:
                type: string
        "400":
          description: invalid_format — format must be one of json, yaml, markdown, text
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: unauthorized — missing, invalid or revoked ozk_ key
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "404":
          description: "company_not_found — no company with that slug for this account (a foreign slug answers the same); not_found — no route for this method on this path: every other method answers it"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "502":
          description: upstream_error — the company service is unavailable; retry
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "503":
          description: not_enabled — the company service is not deployed on this tier
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  schemas:
    Error:
      type: object
      description: Standard error envelope. Every error response also carries an `X-Error-Code` response header equal to error.code, so a client branches on the header regardless of the negotiated body format (json | yaml | markdown | text). When the request created an execution, the `X-Execution-Id` response header is also set. Errors follow the negotiated format like success bodies.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            connect:
              type: object
              description: "On a 424 connection_required / credential_required: where the missing connection is made."
              properties:
                provider:
                  type: string
                method:
                  type: string
                  enum:
                    - oauth
                    - api_key
                    - wallet
                link:
                  type: string
                  example: POST /v1/connections/stripe/link
          required:
            - code
            - message
          additionalProperties: true
      required:
        - error
  securitySchemes:
    ozkBearer:
      type: http
      scheme: bearer
      description: "ozk_ platform API key (Authorization: Bearer ozk_…)"
```
