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

# Post v1delegationsbuild

> Owner session required. Builds an unsigned operation only after mandate provenance and live chain checks.



## OpenAPI

````yaml /openapi/platform.json post /v1/delegations/build
openapi: 3.1.0
info:
  title: GOL Platform API
  description: >-
    Versioned GOL developer and consumer API. Consumer routes are mounted when
    their runtime integrations are configured.
  version: 0.8.0-rc.1
servers:
  - url: http://localhost:4100
    description: Local development
security: []
tags:
  - name: system
  - name: authentication
  - name: projects
  - name: api-keys
  - name: audit
  - name: gas-executions
  - name: gas-policies
  - name: webhooks
paths:
  /v1/delegations/build:
    post:
      tags:
        - Delegations
      description: >-
        Owner session required. Builds an unsigned operation only after mandate
        provenance and live chain checks.
      operationId: buildGrant
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GrantIntent'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GrantBuild'
        '400':
          description: invalid_request response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '401':
          description: unauthorized response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '403':
          description: forbidden response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '404':
          description: not_found response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '429':
          description: rate_limited response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
        '500':
          description: internal_error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
      security:
        - bearerAuth: []
components:
  schemas:
    GrantIntent:
      type: object
      properties:
        kind:
          type: string
          enum:
            - grant
        mandateId:
          type: string
        mandateVersion:
          type: integer
        name:
          type: string
        delegateeAddress:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        chainId:
          type: integer
          enum:
            - 8453
            - 84532
        budgets:
          type: array
          items:
            type: object
            properties:
              token:
                type: object
                properties:
                  symbol:
                    type: string
                required:
                  - symbol
              amount:
                type: number
            required:
              - token
              - amount
        perActionMax:
          type: number
        recipientAllowlist:
          type: array
          items:
            type: object
            properties:
              address:
                pattern: ^0x[0-9a-fA-F]{40}$
                type: string
            required:
              - address
        expiresAt:
          format: date-time
          type: string
      required:
        - kind
        - mandateId
        - mandateVersion
        - name
        - delegateeAddress
        - chainId
        - budgets
    GrantBuild:
      type: object
      properties:
        permissionId:
          type: string
        account:
          type: object
          properties:
            id:
              type: string
            address:
              pattern: ^0x[0-9a-fA-F]{40}$
              type: string
            chainId:
              type: integer
              enum:
                - 8453
                - 84532
          required:
            - id
            - address
            - chainId
        humanSummary:
          type: string
        enableUserOp:
          $ref: '#/components/schemas/GrantUnsignedUserOp'
        userOpHash:
          type: string
      required:
        - permissionId
        - account
        - humanSummary
        - enableUserOp
        - userOpHash
    ConsumerError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - invalid_request
                - unauthorized
                - forbidden
                - not_found
                - rate_limited
                - service_unavailable
                - internal_error
                - capability_unavailable
                - conflict
            message:
              type: string
            correlationId:
              type: string
          required:
            - code
            - message
            - correlationId
      required:
        - error
    GrantUnsignedUserOp:
      type: object
      properties:
        chainId:
          type: integer
          enum:
            - 8453
            - 84532
        sender:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        nonce:
          type: string
        factory:
          oneOf:
            - pattern: ^0x[0-9a-fA-F]{40}$
              type: string
            - type: 'null'
        factoryData:
          oneOf:
            - type: string
            - type: 'null'
        callData:
          type: string
        callGasLimit:
          type: string
        verificationGasLimit:
          type: string
        preVerificationGas:
          type: string
        maxFeePerGas:
          type: string
        maxPriorityFeePerGas:
          type: string
        paymaster:
          oneOf:
            - pattern: ^0x[0-9a-fA-F]{40}$
              type: string
            - type: 'null'
        paymasterVerificationGasLimit:
          oneOf:
            - type: string
            - type: 'null'
        paymasterPostOpGasLimit:
          oneOf:
            - type: string
            - type: 'null'
        paymasterData:
          oneOf:
            - type: string
            - type: 'null'
        signature:
          type: string
          enum:
            - 0x
        entryPoint:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
      required:
        - chainId
        - sender
        - nonce
        - callData
        - callGasLimit
        - verificationGasLimit
        - preVerificationGas
        - maxFeePerGas
        - maxPriorityFeePerGas
        - signature
        - entryPoint
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Opaque owner, CLI, or agent session token. Agent tokens are accepted
        only where marked.

````

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