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

# Create App

> Creates a new app and returns the generated API key. The full API key is **only returned in this response** — store it securely.



## OpenAPI

````yaml POST /apps
openapi: 3.1.0
info:
  title: Vela API
  description: Event ingestion, schema management, and notification rules for Vela.
  version: 1.0.0
  contact:
    name: Vela Support
    email: support@vela.dev
servers:
  - url: https://api.vela.dev/v1
    description: Production
  - url: http://localhost:3000/v1
    description: Local development
security:
  - clientSecret: []
paths:
  /apps:
    post:
      tags:
        - Apps
      summary: Create App
      description: >-
        Creates a new app and returns the generated API key. The full API key is
        **only returned in this response** — store it securely.
      operationId: create-app
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: App display name
                slug:
                  type: string
                  description: >-
                    URL-friendly identifier. Auto-generated from name if
                    omitted.
            example:
              name: Order Service
              slug: order-service
      responses:
        '201':
          description: App created with API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppWithApiKey'
              example:
                app:
                  id: 3f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c
                  accountId: acc-uuid
                  name: Order Service
                  slug: order-service
                  apiKeyPrefix: vela_live_abc
                  createdAt: '2024-06-01T12:00:00.000Z'
                  updatedAt: '2024-06-01T12:00:00.000Z'
                apiKey: vela_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      security:
        - clientSecret: []
components:
  schemas:
    AppWithApiKey:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/App'
        apiKey:
          type: string
          description: Full API key (only returned on creation or rotation)
    App:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: App identifier
        accountId:
          type: string
          format: uuid
          description: Associated account
        name:
          type: string
          description: App display name
        slug:
          type: string
          description: URL-friendly identifier
        apiKeyPrefix:
          type: string
          description: Prefix of the current API key
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    clientSecret:
      type: http
      scheme: bearer
      description: 'Client secret for management API access. Format: `vela_cs_...`'

````