> ## 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 v1sign requests build

> Browser owner only. Builds from the immutable stored intent through existing public builders and durably freezes the exact unsigned operation before returning it. Concurrent builds return the original winner.



## OpenAPI

````yaml /openapi/platform.json post /v1/sign-requests/{id}/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/sign-requests/{id}/build:
    post:
      tags:
        - Sign requests
      description: >-
        Browser owner only. Builds from the immutable stored intent through
        existing public builders and durably freezes the exact unsigned
        operation before returning it. Concurrent builds return the original
        winner.
      operationId: buildSignRequest
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuildSignRequest'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignRequestPreparation'
        '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'
        '409':
          description: capability_unavailable or conflict 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'
        '503':
          description: error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsumerError'
      security:
        - bearerAuth: []
components:
  schemas:
    BuildSignRequest:
      type: object
      properties: {}
      required: []
      additionalProperties: false
    SignRequestPreparation:
      type: object
      properties:
        schemaVersion:
          type: integer
          enum:
            - 1
        preparationId:
          format: uuid
          type: string
        requestId:
          type: string
          pattern: ^sr_[0-9a-f]{32}$
        opIndex:
          type: integer
          enum:
            - 0
        intentHash:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        signerAddress:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        anchorAccountId:
          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
            index:
              type: integer
            purpose:
              type: string
          required:
            - id
            - address
            - chainId
            - index
            - purpose
        preparedAt:
          format: date-time
          type: string
        relayRoute:
          type: string
          enum:
            - /userops
            - /delegations
        operation:
          $ref: '#/components/schemas/SignRequestPreparedOperation'
        grant:
          $ref: '#/components/schemas/GrantBuild'
      required:
        - schemaVersion
        - preparationId
        - requestId
        - opIndex
        - intentHash
        - signerAddress
        - anchorAccountId
        - account
        - preparedAt
        - relayRoute
        - operation
    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
    SignRequestPreparedOperation:
      type: object
      properties:
        intentType:
          type: string
          enum:
            - send
            - swap
            - device_add
            - device_remove
            - device_threshold
            - rules_update
            - delegation_enable
            - delegation_freeze
            - delegation_unfreeze
            - delegation_revoke
        userOp:
          allOf:
            - $ref: '#/components/schemas/UnsignedOwnerUserOp'
            - type: object
              properties:
                signature:
                  type: string
                  enum:
                    - 0x
              required:
                - signature
        userOpHash:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        humanSummary:
          oneOf:
            - type: string
            - type: 'null'
        riskReducing:
          type: boolean
        instant:
          type: boolean
        gasless:
          type: boolean
        simulation:
          oneOf:
            - type: object
              properties:
                willSucceed:
                  type: boolean
                declineReason:
                  oneOf:
                    - type: string
                    - type: 'null'
              required:
                - willSucceed
            - type: 'null'
        swapQuote:
          type: object
          properties:
            chainId:
              type: integer
              enum:
                - 8453
                - 84532
            toChainId:
              type: integer
              enum:
                - 8453
                - 84532
            accountAddress:
              pattern: ^0x[0-9a-fA-F]{40}$
              type: string
            inputAsset:
              pattern: ^0x[0-9a-fA-F]{40}$
              type: string
            outputAsset:
              pattern: ^0x[0-9a-fA-F]{40}$
              type: string
            amountInRaw:
              type: string
            estimatedOutRaw:
              type: string
            minimumOutRaw:
              type: string
          required:
            - chainId
            - toChainId
            - accountAddress
            - inputAsset
            - outputAsset
            - amountInRaw
            - estimatedOutRaw
            - minimumOutRaw
        gasPermit:
          oneOf:
            - type: object
              properties:
                estimatedFee:
                  type: number
              required:
                - estimatedFee
            - type: 'null'
        usdtApproval: {}
      required:
        - intentType
        - userOp
        - userOpHash
        - riskReducing
        - instant
        - gasless
    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
    UnsignedOwnerUserOp:
      type: object
      properties:
        chainId:
          type: integer
          enum:
            - 8453
            - 84532
        sender:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        nonce:
          type: string
          pattern: ^(0|[1-9][0-9]*|0x[0-9a-fA-F]+)$
        callData:
          type: string
          pattern: ^0x(?:[0-9a-fA-F]{2})*$
        signature:
          type: string
          pattern: ^0x(?:[0-9a-fA-F]{2})*$
        entryPoint:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        factory:
          oneOf:
            - pattern: ^0x[0-9a-fA-F]{40}$
              type: string
            - type: 'null'
        factoryData:
          oneOf:
            - type: string
              pattern: ^0x(?:[0-9a-fA-F]{2})*$
            - type: 'null'
        paymaster:
          oneOf:
            - pattern: ^0x[0-9a-fA-F]{40}$
              type: string
            - type: 'null'
        paymasterData:
          oneOf:
            - type: string
              pattern: ^0x(?:[0-9a-fA-F]{2})*$
            - type: 'null'
        callGasLimit:
          type: string
          pattern: ^(0|[1-9][0-9]*|0x[0-9a-fA-F]+)$
        verificationGasLimit:
          type: string
          pattern: ^(0|[1-9][0-9]*|0x[0-9a-fA-F]+)$
        preVerificationGas:
          type: string
          pattern: ^(0|[1-9][0-9]*|0x[0-9a-fA-F]+)$
        paymasterVerificationGasLimit:
          oneOf:
            - type: string
              pattern: ^(0|[1-9][0-9]*|0x[0-9a-fA-F]+)$
            - type: 'null'
        paymasterPostOpGasLimit:
          oneOf:
            - type: string
              pattern: ^(0|[1-9][0-9]*|0x[0-9a-fA-F]+)$
            - type: 'null'
        maxFeePerGas:
          type: string
          pattern: ^(0|[1-9][0-9]*|0x[0-9a-fA-F]+)$
        maxPriorityFeePerGas:
          type: string
          pattern: ^(0|[1-9][0-9]*|0x[0-9a-fA-F]+)$
      required:
        - chainId
        - sender
        - nonce
        - callData
        - signature
        - entryPoint
        - callGasLimit
        - verificationGasLimit
        - preVerificationGas
        - maxFeePerGas
        - maxPriorityFeePerGas
    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.