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

# Get a single HIP-4 question JSON Schema

> Get a single HIP-4 question JSON Schema contract. Includes route metadata, request parameters, response statuses, examples, and JSON fields for implementation.

Source OpenAPI: 0xArchive API 1.6.1; 147 paths; 128 component schemas.

Get one HIP-4 question grouping by question ID.

## Route Metadata

| Field                | Value                                          |
| -------------------- | ---------------------------------------------- |
| Method               | `GET`                                          |
| Path                 | `/v1/hyperliquid/hip4/questions/{question_id}` |
| operationId          | `getHip4Question`                              |
| Tag                  | HIP-4 Outcomes - Questions                     |
| Family               | HIP-4                                          |
| Deprecated or legacy | no                                             |

## Request Parameters

### Path Parameters

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4Question path parameters",
  "type": "object",
  "required": [
    "question_id"
  ],
  "properties": {
    "question_id": {
      "description": "Numeric HIP-4 question ID.",
      "type": "integer",
      "format": "int64",
      "example": 0,
      "x-parameter-location": "path"
    }
  }
}
```

## Response Contracts

### Status 200

HIP-4 question

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4Question response 200",
  "description": "API response containing one HIP-4 question.",
  "type": "object",
  "properties": {
    "data": {
      "description": "HIP-4 question: multi-choice resolver that groups N binary outcomes under one ballot. One named outcome per choice plus a fallback outcome that wins when no named choice resolves.",
      "type": "object",
      "required": [
        "description",
        "fallback_outcome_id",
        "first_seen_at",
        "last_updated_at",
        "name",
        "named_outcome_ids",
        "question_id",
        "settled_named_outcomes"
      ],
      "properties": {
        "description": {
          "description": "Pipe-delimited question metadata (class, underlying, expiry, price thresholds, period).",
          "type": "string",
          "example": "class:priceBucket|underlying:BTC|expiry:20260508-0600|priceThresholds:79303,82540|period:1d"
        },
        "fallback_outcome_id": {
          "description": "Outcome ID that resolves Yes when no named outcome does.",
          "type": "integer",
          "format": "int64",
          "example": 6
        },
        "first_seen_at": {
          "description": "When this question was first observed by the ingester (UTC).",
          "type": "string",
          "format": "date-time",
          "example": "2026-05-08T05:57:28.326Z"
        },
        "last_updated_at": {
          "description": "When this question row was last updated (UTC).",
          "type": "string",
          "format": "date-time",
          "example": "2026-05-08T05:57:28.326Z"
        },
        "name": {
          "description": "Question name as published on-chain (recurring markets use a generic name such as `Recurring`).",
          "type": "string",
          "example": "Recurring"
        },
        "named_outcome_ids": {
          "description": "Outcome IDs of the named choices grouped under this question.",
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int64"
          },
          "example": [
            7,
            8,
            9
          ]
        },
        "question_id": {
          "description": "Question identifier.",
          "type": "integer",
          "format": "int64",
          "example": 0
        },
        "settled_named_outcomes": {
          "description": "Subset of `named_outcome_ids` that have already settled.",
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int64"
          },
          "example": []
        }
      },
      "additionalProperties": true
    },
    "meta": {
      "description": "Response metadata",
      "type": "object",
      "properties": {
        "count": {
          "description": "Number of records returned",
          "type": "integer"
        },
        "coverage_from": {
          "description": "Earliest coverage for the requested symbol and data type. Present only when the requested window ends before coverage begins.",
          "type": "string",
          "format": "date-time"
        },
        "next_cursor": {
          "description": "Cursor for pagination (timestamp). Use this value as the `cursor` parameter to fetch the next page of results.",
          "type": "string",
          "nullable": true
        },
        "notice": {
          "description": "Human-readable advisory about the response. Currently used when the requested window ends before coverage begins for the symbol; may carry other advisories in future.",
          "type": "string"
        },
        "request_id": {
          "description": "Unique request ID for support",
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": true
    }
  }
}
```

### Status 400

Invalid request

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4Question response 400",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    },
    "error_code": {
      "description": "Machine-readable error code. Common values: `invalid_query_params` (a query parameter failed to parse or validate) and `invalid_path_params` (a path parameter failed to parse). Other endpoint-specific codes exist; treat unknown codes as generic errors of the given HTTP status.",
      "type": "string"
    },
    "request_id": {
      "description": "Unique request ID for support",
      "type": "string",
      "format": "uuid"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 400,
  "error": "Failed to deserialize query string: limit: invalid digit found in string",
  "error_code": "invalid_query_params",
  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
}
```

### Status 401

Authentication required

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4Question response 401",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    },
    "error_code": {
      "description": "Machine-readable error code. Common values: `invalid_query_params` (a query parameter failed to parse or validate) and `invalid_path_params` (a path parameter failed to parse). Other endpoint-specific codes exist; treat unknown codes as generic errors of the given HTTP status.",
      "type": "string"
    },
    "request_id": {
      "description": "Unique request ID for support",
      "type": "string",
      "format": "uuid"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 401,
  "error": "Missing or invalid API key. Provide X-API-Key header."
}
```

### Status 429

Rate limit exceeded

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getHip4Question response 429",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    },
    "error_code": {
      "description": "Machine-readable error code. Common values: `invalid_query_params` (a query parameter failed to parse or validate) and `invalid_path_params` (a path parameter failed to parse). Other endpoint-specific codes exist; treat unknown codes as generic errors of the given HTTP status.",
      "type": "string"
    },
    "request_id": {
      "description": "Unique request ID for support",
      "type": "string",
      "format": "uuid"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 429,
  "error": "Rate limit exceeded"
}
```
