> ## 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.

# Get v1projects gas policiesdrafts



## OpenAPI

````yaml /openapi/platform.json get /v1/projects/{projectId}/gas-policies/drafts/{draftId}
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/projects/{projectId}/gas-policies/drafts/{draftId}:
    get:
      tags:
        - gas-policies
      operationId: observeGasPolicyDraft
      parameters:
        - schema:
            format: uuid
            type: string
          in: path
          name: projectId
          required: true
        - schema:
            format: uuid
            type: string
          in: path
          name: draftId
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - status
                  - draftId
                  - transactionHash
                  - policy
                properties:
                  status:
                    anyOf:
                      - type: string
                        enum:
                          - pending
                      - type: string
                        enum:
                          - observing
                      - type: string
                        enum:
                          - confirmed
                      - type: string
                        enum:
                          - expired
                  draftId:
                    format: uuid
                    type: string
                  transactionHash:
                    anyOf:
                      - pattern: ^0x[0-9a-fA-F]{64}$
                        type: string
                      - type: 'null'
                  policy:
                    anyOf:
                      - $ref: '#/components/schemas/def-6'
                      - type: 'null'
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
      security:
        - bearerAuth: []
components:
  schemas:
    def-6:
      additionalProperties: false
      type: object
      required:
        - gasPolicyId
        - mandateId
        - account
        - family
        - agent
        - status
        - maxPerActionWei
        - maxTotalWei
        - spentWei
        - remainingWei
        - expiresAt
        - chargeableOutcomesMask
        - recipient
        - attester
        - relayerMode
        - submitter
        - formulaVersion
        - maxDepth
        - maxActiveDescendants
        - activeDescendants
        - approvalTransactionHash
        - revocationTransactionHash
        - observedBlockNumber
        - createdAt
        - updatedAt
      properties:
        gasPolicyId:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        mandateId:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        account:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        family:
          anyOf:
            - anyOf:
                - type: string
                  enum:
                    - safe
                - type: string
                  enum:
                    - nexus
                - type: string
                  enum:
                    - kernel
                - type: string
                  enum:
                    - alchemy
                - type: string
                  enum:
                    - nexus7702
            - type: 'null'
        agent:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        status:
          anyOf:
            - type: string
              enum:
                - active
            - type: string
              enum:
                - paused
            - type: string
              enum:
                - revoked
            - type: string
              enum:
                - expired
            - type: string
              enum:
                - unavailable
        maxPerActionWei:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        maxTotalWei:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        spentWei:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        remainingWei:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        expiresAt:
          type: integer
        chargeableOutcomesMask:
          type: integer
        recipient:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        attester:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        relayerMode:
          anyOf:
            - type: string
              enum:
                - gol
            - type: string
              enum:
                - developer
        submitter:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        formulaVersion:
          type: integer
        maxDepth:
          type: integer
        maxActiveDescendants:
          type: integer
        activeDescendants:
          type: integer
        approvalTransactionHash:
          anyOf:
            - pattern: ^0x[0-9a-fA-F]{64}$
              type: string
            - type: 'null'
        revocationTransactionHash:
          anyOf:
            - pattern: ^0x[0-9a-fA-F]{64}$
              type: string
            - type: 'null'
        observedBlockNumber:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      title: GasPolicyRecord
  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.