> ## 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 Managed Service

> Provision a managed service for an app.

Requires ADMIN scope because the response returns fresh credential material.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/apps/{app_id}/managed-services
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/managed-services:
    post:
      tags:
        - managed-services
      summary: Create Managed Service
      description: >-
        Provision a managed service for an app.


        Requires ADMIN scope because the response returns fresh credential
        material.
      operationId: managed_services_create_managed_service
      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/CreateManagedServiceRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedServiceDetailResponse'
        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:
    CreateManagedServiceRequest:
      properties:
        type:
          type: string
          enum:
            - postgres
            - redis
            - storage
          title: Type
          description: 'Service type: postgres, redis, or storage.'
        name:
          type: string
          maxLength: 63
          pattern: ^[a-z][a-z0-9_]*$
          title: Name
          description: Service name (lowercase, alphanumeric + underscores).
          default: default
        tier:
          type: string
          enum:
            - basic
            - standard
            - performance
          title: Tier
          description: 'Service tier: basic, standard, or performance.'
          default: basic
      type: object
      required:
        - type
      title: CreateManagedServiceRequest
      description: Request body for provisioning a managed service.
    ManagedServiceDetailResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        app_id:
          type: string
          format: uuid
          title: App Id
        type:
          type: string
          enum:
            - postgres
            - redis
            - storage
          title: Type
        name:
          type: string
          title: Name
        status:
          type: string
          title: Status
        env_var_keys:
          items:
            type: string
          type: array
          title: Env Var Keys
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        dev_deprovision_after:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Dev Deprovision After
        prod_deprovision_after:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Prod Deprovision After
        credentials:
          additionalProperties:
            type: string
          type: object
          title: Credentials
      type: object
      required:
        - id
        - app_id
        - type
        - name
        - status
        - env_var_keys
        - created_at
        - updated_at
        - credentials
      title: ManagedServiceDetailResponse
      description: Response for a managed service with credentials.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    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.