---
agentTools:
  projectIndex: https://aptranet.readme.io/llms.txt
---

# Get Origin Group Details

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Aptranet CDN",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.aptranet.com/cdn"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      },
      "sec1": {
        "type": "apiKey",
        "in": "header",
        "name": "Aptranet-Secret"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/origin_groups/details": {
      "get": {
        "summary": "Get Origin Group Details",
        "description": "",
        "operationId": "get-origin-group-details",
        "parameters": [
          {
            "name": "origin_group",
            "in": "query",
            "description": "The ID from the Origin Group you want to get the details of.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"id\": 1234,\n  \"name\": \"<Origin Group Name>\",\n  \"use_next_upstream\": false,\n  \"next_upstream_cases\": {\n    \"on_error\": false,\n    \"on_timeout\": false,\n    \"on_invalid_header\": false,\n    \"on_http_403\": false,\n    \"on_http_404\": false,\n    \"on_http_429\": false,\n    \"on_http_500\": false,\n    \"on_http_502\": false,\n    \"on_http_503\": false,\n    \"on_http_504\": false\n  },\n  \"origins\": [\n    {\n      \"source\": \"<hostname>\",\n      \"enabled\": true,\n      \"backup_only\": false\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 1234,
                      "default": 0
                    },
                    "name": {
                      "type": "string",
                      "example": "<Origin Group Name>"
                    },
                    "use_next_upstream": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "next_upstream_cases": {
                      "type": "object",
                      "properties": {
                        "on_error": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "on_timeout": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "on_invalid_header": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "on_http_403": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "on_http_404": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "on_http_429": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "on_http_500": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "on_http_502": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "on_http_503": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "on_http_504": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        }
                      }
                    },
                    "origins": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "source": {
                            "type": "string",
                            "example": "<hostname>"
                          },
                          "enabled": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "backup_only": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "677264bad266c77252efec21:6784efb02edc340011184f06"
}
```