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

# Get Approval Request Step

> Get a single step for an approval request.



## OpenAPI

````yaml /sections/api-reference/openapi-spec-v2.yaml get /v2/approval-requests/{approval_request_id}/steps/{step_id}
openapi: 3.1.0
info:
  title: Serval Public API
  description: Serval Public API
  contact:
    name: Serval
    url: https://serval.com
    email: support@serval.com
  license:
    name: Serval License
    url: https://serval.com/license
  version: 2.0.0
servers:
  - url: https://public.api.serval.com
security:
  - BearerAuth: []
tags:
  - name: Access Policy API
  - name: Access Policy Approval Procedure API
  - name: Access Profile API
  - name: Access Relationship API
  - name: Access Request API
  - name: Agent API
  - name: App Instance API
  - name: App Resource API
  - name: App Resource Role API
  - name: Approval Delegation API
  - name: Approval Request API
  - name: Audit Log API
  - name: Change Blackout API
  - name: Change Model API
  - name: Custom Field API
  - name: Custom Service API
  - name: Entity API
  - name: Entity Field Mapping API
  - name: Entity Ingestion Config API
  - name: Entity Type API
  - name: Folder API
  - name: Group API
  - name: Guidance API
  - name: Help Agent API
  - name: Journey API
  - name: Knowledge API
  - name: Knowledge Base API
  - name: Report API
  - name: SLA API
  - name: Schedule API
  - name: Tag API
  - name: Team API
  - name: Team User API
  - name: Ticket API
  - name: Topic API
  - name: User API
  - name: User Relationship API
  - name: Workflow API
  - name: Workflow Approval Procedure API
  - name: Workflow Run API
paths:
  /v2/approval-requests/{approval_request_id}/steps/{step_id}:
    get:
      tags:
        - Approval Request API
      summary: Get Approval Request Step
      description: Get a single step for an approval request.
      operationId: svrelay.publicv2.PublicAPIServiceV2.GetApprovalRequestStep
      parameters:
        - name: approval_request_id
          in: path
          required: true
          schema:
            type: string
            title: approval_request_id
            description: The ID of the approval request.
        - name: step_id
          in: path
          required: true
          schema:
            type: string
            title: step_id
            description: The ID of the approval step.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/svflow.publicapi.GetApprovalRequestStepResponse
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/connect.error'
      security:
        - BearerAuth: []
components:
  schemas:
    svflow.publicapi.GetApprovalRequestStepResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/svflow.pubapimodels.ApprovalRequestStep'
          title: data
          x-stainless-terraform-configurability: optional
      title: GetApprovalRequestStepResponse
      additionalProperties: false
    connect.error:
      type: object
      properties:
        code:
          type: string
          examples:
            - not_found
          enum:
            - canceled
            - unknown
            - invalid_argument
            - deadline_exceeded
            - not_found
            - already_exists
            - permission_denied
            - resource_exhausted
            - failed_precondition
            - aborted
            - out_of_range
            - unimplemented
            - internal
            - unavailable
            - data_loss
            - unauthenticated
          description: >-
            The status code, which should be an enum value of
            [google.rpc.Code][google.rpc.Code].
          x-stainless-terraform-configurability: optional
        message:
          type: string
          description: >-
            A developer-facing error message, which should be in English. Any
            user-facing error message should be localized and sent in the
            [google.rpc.Status.details][google.rpc.Status.details] field, or
            localized by the client.
          x-stainless-terraform-configurability: optional
        detail:
          $ref: '#/components/schemas/google.protobuf.Any'
          x-stainless-terraform-configurability: optional
      title: Connect Error
      additionalProperties: true
      description: >-
        Error type returned by Connect:
        https://connectrpc.com/docs/go/errors/#http-representation
    svflow.pubapimodels.ApprovalRequestStep:
      type: object
      properties:
        id:
          type: string
          title: id
          description: The ID of the approval step.
          readOnly: true
          x-stainless-terraform-configurability: computed
        stepNumber:
          type: integer
          title: step_number
          format: int32
          description: The step number (1-indexed, ordered).
          readOnly: true
          x-stainless-terraform-configurability: computed
        result:
          $ref: '#/components/schemas/svflow.common.models.ApprovalRequestResult'
          title: result
          description: The result of the step.
          readOnly: true
          x-stainless-terraform-configurability: computed
        resolutions:
          type: array
          items:
            $ref: >-
              #/components/schemas/svflow.pubapimodels.ApprovalRequestStepResolution
          title: resolutions
          description: |-
            Approver resolutions. Populated once the step is activated and
             approvers are known (either from configured sources or assigned
             by a custom workflow).
          readOnly: true
          x-stainless-terraform-configurability: computed
        configuredApproverSources:
          type: array
          items:
            $ref: '#/components/schemas/svflow.common.models.ConfiguredApproverSource'
          title: configured_approver_sources
          description: Configured approver sources for steps not yet activated.
          readOnly: true
          x-stainless-terraform-configurability: computed
        customWorkflowRun:
          $ref: >-
            #/components/schemas/svflow.pubapimodels.ApprovalRequestStepCustomWorkflowRun
          title: custom_workflow_run
          description: Present if this step uses a custom approval workflow.
          nullable: true
          readOnly: true
          x-stainless-terraform-configurability: computed
      title: ApprovalRequestStep
      additionalProperties: false
      description: A runtime approval step with inline approver resolutions.
    google.protobuf.Any:
      type: object
      properties:
        type:
          type: string
          x-stainless-terraform-configurability: optional
        value:
          type: string
          format: binary
          x-stainless-terraform-configurability: optional
        debug:
          type: object
          additionalProperties: true
          x-stainless-terraform-configurability: optional
      additionalProperties: true
      description: >-
        Contains an arbitrary serialized message along with a @type that
        describes the type of the serialized message.
    svflow.common.models.ApprovalRequestResult:
      type: string
      title: ApprovalRequestResult
      enum:
        - APPROVAL_REQUEST_RESULT_UNSPECIFIED
        - PENDING
        - APPROVED
        - DENIED
        - TIMEDOUT
        - CANCELED
    svflow.pubapimodels.ApprovalRequestStepResolution:
      type: object
      properties:
        id:
          type: string
          title: id
          description: The ID of this resolution.
          readOnly: true
          x-stainless-terraform-configurability: computed
        approverUserId:
          type: string
          title: approver_user_id
          description: The ID of the user who is the approver for this resolution.
          readOnly: true
          x-stainless-terraform-configurability: computed
        approverType:
          $ref: '#/components/schemas/svflow.common.models.ApprovalRequestUserType'
          title: approver_type
          description: >-
            Whether this approver is a primary or secondary approver for the
            step.
          readOnly: true
          x-stainless-terraform-configurability: computed
        result:
          $ref: '#/components/schemas/svflow.common.models.ApprovalRequestResult'
          title: result
          description: The result of the approver's decision.
          readOnly: true
          x-stainless-terraform-configurability: computed
        resultSetAt:
          $ref: '#/components/schemas/google.protobuf.Timestamp'
          title: result_set_at
          description: When the result was set. Null if the approver hasn't acted yet.
          nullable: true
          readOnly: true
          x-stainless-terraform-configurability: computed
        autoApproved:
          type: boolean
          title: auto_approved
          description: Whether this resolution was auto-approved.
          readOnly: true
          x-stainless-terraform-configurability: computed
        justification:
          type: string
          title: justification
          description: >-
            Free-text justification supplied by this approver alongside their
            decision.
          nullable: true
          readOnly: true
          x-stainless-terraform-configurability: computed
        delegatedFromUserId:
          type: string
          title: delegated_from_user_id
          description: >-
            If this approver was assigned by a delegation rule, the ID of the
            user the
             approval was originally routed to (the start of the delegation chain).
          nullable: true
          readOnly: true
          x-stainless-terraform-configurability: computed
      title: ApprovalRequestStepResolution
      additionalProperties: false
      description: An individual approver's resolution within an approval step.
    svflow.common.models.ConfiguredApproverSource:
      type: object
      properties:
        type:
          $ref: >-
            #/components/schemas/svflow.common.models.ConfiguredApproverSourceType
          title: type
          x-stainless-terraform-configurability: optional
        id:
          type: string
          title: id
          description: group_id for GROUP type; empty for MANAGER/APP_OWNER
          x-stainless-terraform-configurability: optional
      title: ConfiguredApproverSource
      additionalProperties: false
    svflow.pubapimodels.ApprovalRequestStepCustomWorkflowRun:
      type: object
      oneOf:
        - $ref: >-
            #/components/schemas/svflow.pubapimodels.ApprovalRequestStepCustomWorkflowRun.ApproverAssignment
        - $ref: >-
            #/components/schemas/svflow.pubapimodels.ApprovalRequestStepCustomWorkflowRun.AutoResolution
      title: ApprovalRequestStepCustomWorkflowRun
      description: Information about a custom workflow run used for approval.
    svflow.common.models.ApprovalRequestUserType:
      type: string
      title: ApprovalRequestUserType
      enum:
        - APPROVAL_REQUEST_USER_TYPE_UNSPECIFIED
        - PRIMARY
        - SECONDARY
        - OVERRIDE
    google.protobuf.Timestamp:
      type: string
      format: date-time
      description: A timestamp in RFC 3339 format (e.g., "2025-01-15T01:30:15Z").
    svflow.common.models.ConfiguredApproverSourceType:
      type: string
      title: ConfiguredApproverSourceType
      enum:
        - CONFIGURED_APPROVER_SOURCE_TYPE_UNSPECIFIED
        - CONFIGURED_APPROVER_SOURCE_TYPE_GROUP
        - CONFIGURED_APPROVER_SOURCE_TYPE_MANAGER
        - CONFIGURED_APPROVER_SOURCE_TYPE_APP_OWNER
        - CONFIGURED_APPROVER_SOURCE_TYPE_TEAM_OWNER
        - CONFIGURED_APPROVER_SOURCE_TYPE_RESOURCE_OWNER
        - CONFIGURED_APPROVER_SOURCE_TYPE_ROLE_OWNER
    svflow.pubapimodels.ApprovalRequestStepCustomWorkflowRun.ApproverAssignment:
      type: object
      title: Approver Assignment
      properties:
        approverAssignment:
          $ref: '#/components/schemas/svflow.pubapimodels.ApproverAssignment'
          title: approver_assignment
          description: |-
            The workflow defined the approvers. Their decisions appear
             in the parent ApprovalRequestStep's resolutions field.
          x-stainless-terraform-configurability: optional
        runId:
          type: string
          title: run_id
          description: The ID of the workflow run.
          readOnly: true
          x-stainless-terraform-configurability: computed
        status:
          $ref: '#/components/schemas/svflow.common.models.WorkflowRunStatus'
          title: status
          description: The status of the workflow run.
          readOnly: true
          x-stainless-terraform-configurability: computed
      required:
        - approverAssignment
      additionalProperties: false
      description: |-
        The workflow defined the approvers. Their decisions appear
         in the parent ApprovalRequestStep's resolutions field.
    svflow.pubapimodels.ApprovalRequestStepCustomWorkflowRun.AutoResolution:
      type: object
      title: Auto Resolution
      properties:
        autoResolution:
          $ref: '#/components/schemas/svflow.pubapimodels.AutoResolution'
          title: auto_resolution
          description: The workflow auto-resolved the step (approved/denied directly).
          x-stainless-terraform-configurability: optional
        runId:
          type: string
          title: run_id
          description: The ID of the workflow run.
          readOnly: true
          x-stainless-terraform-configurability: computed
        status:
          $ref: '#/components/schemas/svflow.common.models.WorkflowRunStatus'
          title: status
          description: The status of the workflow run.
          readOnly: true
          x-stainless-terraform-configurability: computed
      required:
        - autoResolution
      additionalProperties: false
      description: The workflow auto-resolved the step (approved/denied directly).
    svflow.pubapimodels.ApproverAssignment:
      type: object
      properties:
        reason:
          type: string
          title: reason
          description: The reason or context the workflow provided for this assignment.
          nullable: true
          readOnly: true
          x-stainless-terraform-configurability: computed
      title: ApproverAssignment
      additionalProperties: false
      description: The custom workflow determined who should approve.
    svflow.common.models.WorkflowRunStatus:
      type: string
      title: WorkflowRunStatus
      enum:
        - WORKFLOW_RUN_STATUS_UNSPECIFIED
        - WORKFLOW_RUN_STATUS_PENDING
        - WORKFLOW_RUN_STATUS_RUNNING
        - WORKFLOW_RUN_STATUS_COMPLETED
        - WORKFLOW_RUN_STATUS_FAILED
        - WORKFLOW_RUN_STATUS_DENIED
        - WORKFLOW_RUN_STATUS_CANCELED
    svflow.pubapimodels.AutoResolution:
      type: object
      properties:
        result:
          $ref: '#/components/schemas/svflow.common.models.ApprovalRequestResult'
          title: result
          description: The result the workflow set.
          readOnly: true
          x-stainless-terraform-configurability: computed
        reason:
          type: string
          title: reason
          description: The reason provided by the workflow.
          nullable: true
          readOnly: true
          x-stainless-terraform-configurability: computed
      title: AutoResolution
      additionalProperties: false
      description: The custom workflow directly approved or denied the step.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````