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

# Get team automation setup context

> Returns enabled event types, team environment metadata, and whether default delivery is configured. No credential or destination values are included.



## OpenAPI

````yaml /openapi/v1.json get /teams/{teamSlug}/automations/setup
openapi: 3.1.0
info:
  title: Felan API
  description: >-
    Team-scoped access to Felan sessions, integrations, environments,
    environment variables, automations, skills, custom subagents, and inbound
    events.
  version: 1.0.0
  contact:
    name: Felan Support
    url: https://felan.ai
servers:
  - url: https://app.felan.ai/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Teams
  - name: Integrations
  - name: Environments
  - name: Environment Variables
  - name: Automations
  - name: Skills
  - name: Subagents
  - name: Sessions
  - name: Events
  - name: OpenAPI
paths:
  /teams/{teamSlug}/automations/setup:
    get:
      tags:
        - Automations
      summary: Get team automation setup context
      description: >-
        Returns enabled event types, team environment metadata, and whether
        default delivery is configured. No credential or destination values are
        included.
      operationId: getTeamAutomationSetupContext
      parameters:
        - $ref: '#/components/parameters/TeamSlug'
      responses:
        '200':
          description: Automation setup context
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutomationSetupContext'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    TeamSlug:
      name: teamSlug
      in: path
      required: true
      description: Felan team slug shown in dashboard URLs and Team Settings
      schema:
        type: string
        minLength: 1
  schemas:
    AutomationSetupContext:
      type: object
      required:
        - providers
        - environments
        - delivery
        - usage
        - permissions
      properties:
        providers:
          type: array
          items:
            type: object
            required:
              - provider
              - providerName
              - logoUrl
              - connected
              - eventTypes
            properties:
              provider:
                type: string
              providerName:
                type: string
              logoUrl:
                type:
                  - string
                  - 'null'
              connected:
                type: boolean
              eventTypes:
                type: array
                items:
                  type: object
                  required:
                    - eventTypeId
                    - eventType
                    - displayName
                  properties:
                    eventTypeId:
                      type: string
                      format: uuid
                    eventType:
                      type: string
                    displayName:
                      type: string
        environments:
          type: array
          items:
            type: object
            required:
              - id
              - name
              - slug
              - description
              - is_default
            properties:
              id:
                type: string
                format: uuid
              name:
                type: string
              slug:
                type: string
              description:
                type:
                  - string
                  - 'null'
              is_default:
                type: boolean
        delivery:
          type: object
          required:
            - configured
            - provider
          properties:
            configured:
              type: boolean
            provider:
              type:
                - string
                - 'null'
        usage:
          type: object
          required:
            - estimateAvailable
          properties:
            estimateAvailable:
              type: boolean
        permissions:
          type: object
          required:
            - readOnlyEnforced
          properties:
            readOnlyEnforced:
              type: boolean
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              examples:
                - VALIDATION_ERROR
                - UNAUTHORIZED
                - NOT_FOUND
                - SKILL_SOURCE_UNAVAILABLE
                - EXECUTION_DENIED
                - CONFLICT
                - RATE_LIMITED
                - SESSION_START_FAILED
                - SESSION_PUBLISH_FAILED
                - MESSAGE_PUBLISH_FAILED
                - INTERNAL_ERROR
            message:
              type: string
  responses:
    Unauthorized:
      description: Missing or invalid team API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource missing or outside the authenticated team
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Team API key rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: The server could not complete the request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Team API key. Current keys retain the bzy_team_ compatibility prefix.

````

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