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

# Create Dev Session

> Create a dev session and return the caller's Neon-backed env vars.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/apps/{app_id}/dev-session
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/dev-session:
    post:
      tags:
        - dev-session
      summary: Create Dev Session
      description: Create a dev session and return the caller's Neon-backed env vars.
      operationId: dev_session_create_dev_session
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDevSessionRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateDevSessionResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    CreateDevSessionRequest:
      properties:
        services:
          items:
            $ref: '#/components/schemas/DevServiceInput'
          type: array
          title: Services
      type: object
      required:
        - services
      title: CreateDevSessionRequest
      description: Supply the services that share a new development session.
    CreateDevSessionResponse:
      properties:
        session_id:
          type: string
          title: Session Id
        services:
          additionalProperties:
            additionalProperties:
              type: string
            type: object
          type: object
          title: Services
        postgres_authorized:
          type: boolean
          title: Postgres Authorized
        withheld_secret_keys:
          items:
            type: string
          type: array
          title: Withheld Secret Keys
      type: object
      required:
        - session_id
        - services
        - postgres_authorized
      title: CreateDevSessionResponse
      description: >-
        Return session credentials, the legacy authorization field, and withheld
        secret names.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    DevServiceInput:
      properties:
        name:
          type: string
          title: Name
        port:
          anyOf:
            - type: integer
            - type: 'null'
          title: Port
        managed:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Managed
      type: object
      required:
        - name
      title: DevServiceInput
      description: >-
        Describe a local service with an optional listening port and managed
        attachments.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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