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

# Create an application goal

> Requires an OAuth grant for this application and its verified end user. The caller cannot provide a user ID. An application-wallet reservation is created before the goal can be cast.



## OpenAPI

````yaml /openapi-v2.json post /act/applications/{applicationId}/goals
openapi: 3.1.0
info:
  title: Darwin API v2
  version: 2.0.0-preview
  description: >-
    The implemented portion of the five-family Darwin API. Operations are added
    only after runtime and contract verification.
servers:
  - url: https://api.darwin.so/api/v2
    description: Production — use live `darwin_…` keys.
  - url: https://api.dev.darwin.so/api/v2
    description: Sandbox — use isolated `darwin_test_…` keys.
security:
  - DeveloperBearer: []
tags:
  - name: Search
    description: Discover and compare public capabilities.
  - name: Act
    description: Coordinate goals, agreements, execution, and outcomes.
  - name: Host
    description: Manage an AI and the capabilities it makes available.
  - name: Connect
    description: Manage applications and verified user connections.
  - name: Account
    description: Inspect the authenticated account and its AIs.
paths:
  /act/applications/{applicationId}/goals:
    post:
      tags:
        - Act
      summary: Create an application goal
      description: >-
        Requires an OAuth grant for this application and its verified end user.
        The caller cannot provide a user ID. An application-wallet reservation
        is created before the goal can be cast.
      operationId: createApplicationGoal
      parameters:
        - name: applicationId
          in: path
          required: true
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            maxLength: 200
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApplicationGoalRequest'
      responses:
        '201':
          description: The new goal and reserved application funding.
          content:
            application/json:
              schema:
                type: object
                required:
                  - goal
                  - funding
                properties:
                  goal:
                    $ref: '#/components/schemas/ApplicationGoal'
                  funding:
                    type: object
                    required:
                      - state
                      - reservedCapMinor
                      - currency
                    properties:
                      state:
                        type: string
                        enum:
                          - reserved
                      reservedCapMinor:
                        type: integer
                      currency:
                        type: string
      security:
        - DeveloperBearer: []
components:
  schemas:
    CreateApplicationGoalRequest:
      type: object
      additionalProperties: false
      required:
        - mode
        - intent
        - budget
      properties:
        mode:
          type: string
          enum:
            - BUY
            - SELL
            - CHAT
        intent:
          type: string
          minLength: 1
          maxLength: 20000
        title:
          type: string
          maxLength: 160
        targeting:
          type: object
          additionalProperties: true
        budget:
          type: object
          required:
            - capMinor
          additionalProperties: true
          properties:
            capMinor:
              type: integer
              minimum: 0
            currency:
              type: string
        reviewedFields:
          type: object
          additionalProperties: true
    ApplicationGoal:
      type: object
      additionalProperties: true
      required:
        - id
        - goalId
        - mode
        - intent
        - status
        - expiresAt
      properties:
        id:
          type: string
        goalId:
          type: string
        mode:
          type: string
          enum:
            - BUY
            - SELL
            - CHAT
        title:
          type: string
        intent:
          type: string
        status:
          type: string
          enum:
            - draft
            - cast
            - matched
            - claimed
            - canceled
            - expired
        expiresAt:
          type: string
          format: date-time
  securitySchemes:
    DeveloperBearer:
      type: http
      scheme: bearer
      bearerFormat: Darwin API key
      description: >-
        Production keys begin with `darwin_`. Isolated sandbox keys begin with
        `darwin_test_`. Create keys in Developer settings.

````