---
updatedAt: 2025-08-05T22:03:05.000Z
agentTools:
  projectIndex: https://docs.ascerta.com/llms.txt
---

# Get a Resource version details

#### Additional applicable error codes:

| Code                           | Message                                                      |
| ------------------------------ | ------------------------------------------------------------ |
| category\_not\_found           | Category '\{0}' not found                                    |
| category\_resource\_not\_found | Category '\{0}' and resource '\{1}' not found                |
| resource\_id\_invalid          | Category or resource are not valid                           |
| category\_resource\_not\_found | Category '\{0}' and resource '\{1}' with ID '\{2}' not found |

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Pay-i",
    "description": "Pay-i API",
    "version": "v1"
  },
  "paths": {
    "/api/v1/categories/{category}/resources/{resource}/{resource_id}": {
      "get": {
        "tags": [
          "Resources"
        ],
        "summary": "Get a Resource version details",
        "operationId": "getResource",
        "parameters": [
          {
            "name": "category",
            "in": "path",
            "description": "Category",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "path",
            "description": "Resource",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource_id",
            "in": "path",
            "description": "Resource Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayI.Common.Models.CategoryResource.CategoryResourceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayI.Common.Models.ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayI.Common.Models.ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayI.Common.Models.ApiError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PayI.Common.Models.ApiError": {
        "required": [
          "message",
          "statusCode"
        ],
        "type": "object",
        "properties": {
          "message": {
            "minLength": 1,
            "type": "string"
          },
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "xproxy_error": {
            "$ref": "#/components/schemas/PayI.Common.Models.ProxyError"
          }
        },
        "additionalProperties": false
      },
      "PayI.Common.Models.CategoryResource.CategoryResourceResponse": {
        "required": [
          "active",
          "category",
          "proxy_allowed",
          "resource",
          "resource_id",
          "start_timestamp",
          "units"
        ],
        "type": "object",
        "properties": {
          "max_input_units": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "max_output_units": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "max_total_units": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/PayI.Common.Models.CategoryResource.ResourcePriceUnits"
            }
          },
          "resource_id": {
            "minLength": 1,
            "type": "string"
          },
          "start_timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "end_timestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "category": {
            "minLength": 1,
            "type": "string"
          },
          "resource": {
            "minLength": 1,
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "deprecated_timestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "proxy_allowed": {
            "type": "boolean"
          },
          "mapped_resource": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PayI.Common.Models.CategoryResource.MappedResourceResponse"
              }
            ],
            "nullable": true
          },
          "cost_per_hour": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "character_billing": {
            "type": "boolean",
            "nullable": true
          },
          "large_context_threshold": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "aliased_resource": {
            "type": "string",
            "nullable": true
          },
          "reservation_id": {
            "type": "string",
            "nullable": true
          },
          "azure_resource": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PayI.Common.Models.Reservation.AzureReservationResource"
              }
            ],
            "nullable": true
          },
          "aws_bedrock_resource": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PayI.Common.Models.Reservation.AwsBedrockReservationResource"
              }
            ],
            "nullable": true
          },
          "google_vertex_resource": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PayI.Common.Models.Reservation.GoogleVertexReservationResource"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayI.Common.Models.CategoryResource.MappedResourceResponse": {
        "required": [
          "category",
          "host_name",
          "mapping_name",
          "resource"
        ],
        "type": "object",
        "properties": {
          "host_name": {
            "type": "string",
            "nullable": true
          },
          "mapping_name": {
            "type": "string",
            "nullable": true
          },
          "resource": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PayI.Common.Models.CategoryResource.SystemResourceScope"
              }
            ],
            "nullable": true
          },
          "sub_scope": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayI.Common.Models.CategoryResource.ResourcePriceUnits": {
        "type": "object",
        "properties": {
          "input_price": {
            "type": "number",
            "format": "double"
          },
          "output_price": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PayI.Common.Models.CategoryResource.SystemResourceScope": {
        "enum": [
          "global",
          "datazone",
          "region"
        ],
        "type": "string"
      },
      "PayI.Common.Models.ProxyError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayI.Common.Models.Reservation.AwsBedrockReservationResource": {
        "required": [
          "model_units"
        ],
        "type": "object",
        "properties": {
          "model_units": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PayI.Common.Models.Reservation.AzureReservationResource": {
        "required": [
          "ptus"
        ],
        "type": "object",
        "properties": {
          "ptus": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PayI.Common.Models.Reservation.GoogleVertexReservationResource": {
        "required": [
          "gsus"
        ],
        "type": "object",
        "properties": {
          "gsus": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Pay_I_API_Key": {
        "type": "apiKey",
        "description": "Pay-I API Key. Example: \"{apikey}\"",
        "name": "xProxy-api-key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Pay_I_API_Key": []
    }
  ],
  "tags": [
    {
      "name": "Resources",
      "description": "Resources"
    }
  ],
  "servers": [
    {
      "url": "https://api.pay-i.com"
    }
  ]
}
```