> ## 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 v1projects gas policies safety actionsprepare



## OpenAPI

````yaml /openapi/platform.json post /v1/projects/{projectId}/gas-policies/{gasPolicyId}/safety-actions/prepare
openapi: 3.1.0
info:
  title: GOL Platform API
  description: >-
    Public API for GOL developer projects, credentials, owner gas policies,
    hosted gas executions, and webhooks.
  version: 0.3.0
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/{gasPolicyId}/safety-actions/prepare:
    post:
      tags:
        - gas-policies
      operationId: prepareGasPolicySafetyAction
      parameters:
        - schema:
            format: uuid
            type: string
          in: path
          name: projectId
          required: true
        - schema:
            pattern: ^0x[0-9a-fA-F]{64}$
            type: string
          in: path
          name: gasPolicyId
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              additionalProperties: false
              type: object
              required:
                - action
              properties:
                action:
                  anyOf:
                    - type: string
                      enum:
                        - pause
                    - type: string
                      enum:
                        - resume
                deadline:
                  minimum: 1
                  maximum: 281474976710655
                  type: integer
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - gasPolicyId
                  - mandateId
                  - account
                  - family
                  - chainId
                  - core
                  - action
                  - actionCode
                  - nonce
                  - deadline
                  - digest
                  - directOwnerCall
                  - relayed
                  - observedBlockNumber
                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:
                      - type: string
                        enum:
                          - safe
                      - type: string
                        enum:
                          - nexus
                      - type: string
                        enum:
                          - kernel
                      - type: string
                        enum:
                          - alchemy
                  chainId:
                    type: number
                    enum:
                      - 84532
                  core:
                    pattern: ^0x[0-9a-fA-F]{40}$
                    type: string
                  action:
                    anyOf:
                      - type: string
                        enum:
                          - pause
                      - type: string
                        enum:
                          - resume
                  actionCode:
                    anyOf:
                      - type: number
                        enum:
                          - 1
                      - type: number
                        enum:
                          - 2
                  nonce:
                    pattern: ^(0|[1-9][0-9]{0,77})$
                    type: string
                  deadline:
                    type: integer
                  digest:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
                  directOwnerCall:
                    additionalProperties: false
                    type: object
                    required:
                      - to
                      - data
                    properties:
                      to:
                        pattern: ^0x[0-9a-fA-F]{40}$
                        type: string
                      data:
                        type: string
                  relayed:
                    additionalProperties: false
                    type: object
                    required:
                      - signing
                      - functionName
                    properties:
                      signing:
                        $ref: '#/components/schemas/def-5'
                      functionName:
                        type: string
                        enum:
                          - safetyAction
                  observedBlockNumber:
                    pattern: ^(0|[1-9][0-9]{0,77})$
                    type: string
        '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-5:
      additionalProperties: false
      type: object
      required:
        - family
        - method
        - typedData
        - expectedHash
        - digest
        - signatureFormat
      properties:
        family:
          anyOf:
            - type: string
              enum:
                - safe
            - type: string
              enum:
                - nexus
            - type: string
              enum:
                - kernel
            - type: string
              enum:
                - alchemy
        method:
          type: string
          enum:
            - eth_signTypedData_v4
        typedData:
          additionalProperties: false
          type: object
          required:
            - domain
            - types
            - primaryType
            - message
          properties:
            domain:
              type: object
              additionalProperties: {}
            types:
              type: object
              additionalProperties:
                type: array
                items:
                  type: object
                  required:
                    - name
                    - type
                  properties:
                    name:
                      type: string
                    type:
                      type: string
            primaryType:
              type: string
            message:
              type: object
              additionalProperties: {}
        expectedHash:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        digest:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        signatureFormat:
          anyOf:
            - type: string
              enum:
                - safe_threshold
            - type: string
              enum:
                - nexus_k1
            - type: string
              enum:
                - kernel_root
            - type: string
              enum:
                - alchemy_entity_zero
      title: WalletSigningPayload
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````