---
title: "RequestContext returns the request context"
method: GET
path: "/irismod/service/contexts/{request_context_id}"
tags: ["Query"]
---

# RequestContext returns the request context

`GET /irismod/service/contexts/{request_context_id}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `request_context_id` string, required

## Response `200`

A successful response.

- object
  - `request_context` object
    - `service_name` string
    - `providers` string[]
    - `consumer` string
    - `input` string
    - `service_fee_cap` object[]
      - `denom` string
      - `amount` string
    - `module_name` string
    - `timeout` string, int64
    - `repeated` boolean
    - `repeated_frequency` string, uint64
    - `repeated_total` string, int64
    - `batch_counter` string, uint64
    - `batch_request_count` integer
    - `batch_response_count` integer
    - `batch_response_threshold` integer
    - `response_threshold` integer
    - `batch_state` 'BATCH_RUNNING' | 'BATCH_COMPLETED': - BATCH_RUNNING: BATCH_RUNNING defines the running batch status. - BATCH_COMPLETED: BATCH_COMPLETED defines the completed batch status.
    - `state` 'RUNNING' | 'PAUSED' | 'COMPLETED': - RUNNING: RUNNING defines the running request context status - PAUSED: PAUSED defines the paused request context status - COMPLETED: COMPLETED defines the completed request context status

## Other responses

- `default`: An unexpected error response.

## Changes

- **2020-11-24** `e074680272ae`: 1 info
  - endpoint added
- **2020-04-20** `55279958f492`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/bianjieai/apis/irita-legacy-rest-and-grpc-gateway-docs/changes/irismod/service/contexts/:request_context_id/get.md)

---

[API](https://skmtc.dev/bianjieai/apis/irita-legacy-rest-and-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/bianjieai/apis/irita-legacy-rest-and-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/bianjieai/apis/irita-legacy-rest-and-grpc-gateway-docs/revisions/dcc6f688c291?raw)
