> ## 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 v1agentsrequests decline

> Browser owner session only.



## OpenAPI

````yaml /openapi/platform.json post /v1/agents/requests/{id}/decline
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/agents/requests/{id}/decline:
    post:
      tags:
        - Agents
      description: Browser owner session only.
      operationId: declineAgentRequest
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentRequest'
        '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:
    AgentRequest:
      type: object
      properties:
        id:
          type: string
        accountId:
          type: string
        agentId:
          type: string
        nonce:
          type: string
        kind:
          type: string
          enum:
            - userop
        calls:
          type: array
          items:
            $ref: '#/components/schemas/AgentRequestCall'
        declineReason:
          type: string
          enum:
            - no_policies_set
            - malformed_call
            - cap_exceeded
            - recipient_not_allowed
            - action_not_allowed
            - approval_required
            - policy_expired
        reason:
          type: string
        raisedAt:
          format: date-time
          type: string
        expiresAt:
          format: date-time
          type: string
        status:
          type: string
          enum:
            - open
            - pending_approval
            - submitted
            - indeterminate
            - executed
            - failed
            - declined
            - expired
            - withdrawn
        draft:
          $ref: '#/components/schemas/AgentRequestOwnerDraft'
        userOpHash:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        userOpId:
          type: string
        txHash:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
      required:
        - id
        - accountId
        - agentId
        - nonce
        - kind
        - calls
        - declineReason
        - reason
        - raisedAt
        - expiresAt
        - status
    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
    AgentRequestCall:
      type: object
      properties:
        to:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        data:
          type: string
          pattern: ^0x(?:[0-9a-fA-F]{2})*$
        value:
          pattern: ^(0|[1-9][0-9]*)$
          type: string
        chainId:
          type: integer
          enum:
            - 8453
            - 84532
      required:
        - to
        - data
        - value
        - chainId
    AgentRequestOwnerDraft:
      type: object
      properties:
        intentType:
          type: string
          enum:
            - send
        userOp:
          $ref: '#/components/schemas/UnsignedOwnerUserOp'
        userOpHash:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        riskReducing:
          type: boolean
          enum:
            - false
        instant:
          type: boolean
          enum:
            - false
        gasless:
          type: boolean
          enum:
            - false
      required:
        - intentType
        - userOp
        - userOpHash
        - riskReducing
        - instant
        - gasless
    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
  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.